2018-12-16 23:05:12 +01:00
|
|
|
location __PATH__/ {
|
2020-04-16 12:19:20 +02:00
|
|
|
# Adapted from https://gitlab.com/gitlab-org/gitlab-recipes/blob/master/web-server/nginx/gitlab-omnibus-ssl-nginx.conf
|
2017-06-10 10:10:31 +02:00
|
|
|
|
2019-03-29 22:18:08 +01:00
|
|
|
client_max_body_size __CLIENT_MAX_BODY_SIZE__;
|
2020-04-16 12:19:20 +02:00
|
|
|
gzip off;
|
|
|
|
|
|
|
|
## https://github.com/gitlabhq/gitlabhq/issues/694
|
|
|
|
## Some requests take more than 30 seconds.
|
|
|
|
proxy_read_timeout 300;
|
|
|
|
proxy_connect_timeout 300;
|
|
|
|
proxy_redirect off;
|
|
|
|
|
|
|
|
proxy_http_version 1.1;
|
|
|
|
|
|
|
|
proxy_pass http://localhost:__PORT__;
|
|
|
|
|
|
|
|
proxy_set_header Host $http_host;
|
|
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
|
|
proxy_set_header X-Forwarded-Ssl on;
|
|
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
|
|
proxy_set_header X-Forwarded-Proto $scheme;
|
2019-03-29 22:18:08 +01:00
|
|
|
|
2020-04-16 12:19:20 +02:00
|
|
|
# Include SSOWAT user panel.
|
2017-06-28 16:54:03 +02:00
|
|
|
include conf.d/yunohost_panel.conf.inc;
|
2017-06-10 10:10:31 +02:00
|
|
|
}
|