From 4b7e4bf727a7d5d33ac84c0337a8590146f8983e Mon Sep 17 00:00:00 2001 From: hexim Date: Thu, 3 Nov 2016 21:29:42 +0100 Subject: [PATCH] fix http to https redirect --- assets/runtime/config/nginx/gitlab-ssl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/runtime/config/nginx/gitlab-ssl b/assets/runtime/config/nginx/gitlab-ssl index d55348c3..22ba6bb4 100644 --- a/assets/runtime/config/nginx/gitlab-ssl +++ b/assets/runtime/config/nginx/gitlab-ssl @@ -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; }