1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/gitlab_ynh.git synced 2024-09-03 18:36:35 +02:00
gitlab_ynh/conf/nginx.conf

28 lines
901 B
Nginx Configuration File
Raw Normal View History

location __PATH__/ {
2021-01-19 01:05:34 +01:00
# Adapted from https://gitlab.com/gitlab-org/gitlab-foss/-/blob/master/lib/support/nginx/gitlab-ssl
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;
2021-01-19 01:05:34 +01:00
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
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
}