Add installation gitlab + gitlab redirection to http
This commit is contained in:
parent
f0f6f42578
commit
0411eda3f0
@ -13,8 +13,9 @@ server {
|
|||||||
server_name gitlab.c2a-systeme.fr;
|
server_name gitlab.c2a-systeme.fr;
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
|
proxy_pass http://127.0.0.1:8001;
|
||||||
# redirect everything to HTTPS
|
# 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;
|
proxy_set_header Connection $connection_upgrade;
|
||||||
|
|
||||||
location / {
|
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)
|
# 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_buffer_size 128k;
|
||||||
proxy_buffers 4 256k;
|
proxy_buffers 4 256k;
|
||||||
|
@ -20,6 +20,7 @@ apt-get install docker-ce docker-ce-cli containerd.io
|
|||||||
|
|
||||||
# Launch Install Script
|
# Launch Install Script
|
||||||
./docker/install-nginx.sh
|
./docker/install-nginx.sh
|
||||||
|
./docker/install-gitlab.sh
|
||||||
./docker/install-portainer.sh
|
./docker/install-portainer.sh
|
||||||
|
|
||||||
service nginx restart
|
service nginx restart
|
||||||
|
Loading…
Reference in New Issue
Block a user