Add attributes custom_gitlab_location_directives
Add attributes "custom_gitlab_location_directives" .
This attributes can add default location(maybe, "/" or relative_url) config (for Nginx).
ex)
/etc/gitlab/gitlab.rb
nginx['custom_gitlab_server_config_root_location'] = "deny all;"
/var/opt/gitlab/nginx/conf/gitlab-http.conf
location / {
## If you use HTTPS make sure you disable gzip compression
## to be safe against BREACH attack.
## https://github.com/gitlabhq/gitlabhq/issues/694
## Some requests take more than 30 seconds.
proxy_read_timeout 3600;
proxy_connect_timeout 300;
proxy_redirect off;
proxy_http_version 1.1;
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto http;
deny all; # This config
proxy_pass http://gitlab-workhorse;
}