Add installation gitlab + gitlab redirection to http

This commit is contained in:
Mathieu Sanchez 2019-04-03 17:57:03 +09:00
parent f0f6f42578
commit 0411eda3f0
2 changed files with 4 additions and 1 deletions

View File

@ -13,8 +13,9 @@ server {
server_name gitlab.c2a-systeme.fr;
location / {
proxy_pass http://127.0.0.1:8001;
# redirect everything to HTTPS
return 301 https://$host$request_uri;
# return 301 https://$host$request_uri;
}
}
@ -78,6 +79,7 @@ server {
proxy_set_header Connection $connection_upgrade;
location / {
return 301 http://$host$request_uri;
# increase the proxy buffer sizes to not run into buffer issues (http://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_buffers)
proxy_buffer_size 128k;
proxy_buffers 4 256k;

View File

@ -20,6 +20,7 @@ apt-get install docker-ce docker-ce-cli containerd.io
# Launch Install Script
./docker/install-nginx.sh
./docker/install-gitlab.sh
./docker/install-portainer.sh
service nginx restart