Merge pull request #952 from heximcz/master

fix http to https redirect
This commit is contained in:
Niclas Mietz 2016-11-05 21:36:30 +01:00 committed by GitHub
commit 6df4f5d03c

View File

@ -34,7 +34,7 @@ server {
listen [::]:80 ipv6only=on default_server;
server_name _; ## Replace this with something like gitlab.example.com
server_tokens off; ## Don't show the nginx version number, a security best practice
return 301 https://$http_host:{{GITLAB_PORT}}$request_uri;
return 301 https://$host:{{GITLAB_PORT}}$request_uri;
access_log {{GITLAB_LOG_DIR}}/nginx/gitlab_access.log;
error_log {{GITLAB_LOG_DIR}}/nginx/gitlab_error.log;
}