diff options
author | jelhan <jeldrik@systemli.org> | 2018-07-24 22:42:23 +0000 |
---|---|---|
committer | jelhan <jeldrik@systemli.org> | 2018-07-24 22:42:23 +0000 |
commit | 23f705f2d0f10ed765929afa923ee096d9f0e136 (patch) | |
tree | 805114dfc8c65f029cfccca6559ca6438027f8dd /lib/support | |
parent | d1148002416d1b5a21ebf7fdf2a71b201743033a (diff) | |
download | gitlab-ce-23f705f2d0f10ed765929afa923ee096d9f0e136.tar.gz |
Fix: redirect non-SSL request for gitlab registry to valid URL
HTTP host and URI should not be separated by a colon. Generated URLs was looking like http://registry.examples.com:/foo. That is throwing up let's encrypt cert requests for gitlab registry.
Diffstat (limited to 'lib/support')
-rw-r--r-- | lib/support/nginx/registry-ssl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/support/nginx/registry-ssl b/lib/support/nginx/registry-ssl index 92511e26861..908d26a0da2 100644 --- a/lib/support/nginx/registry-ssl +++ b/lib/support/nginx/registry-ssl @@ -10,7 +10,7 @@ server { listen *:80; server_name registry.gitlab.example.com; server_tokens off; ## Don't show the nginx version number, a security best practice - return 301 https://$http_host:$request_uri; + return 301 https://$http_host$request_uri; access_log /var/log/nginx/gitlab_registry_access.log gitlab_access; error_log /var/log/nginx/gitlab_registry_error.log; } |