Merge branch 'fix-gitlab-registry-ssl-redirect' into 'master'
Fix: redirect non-SSL request for gitlab registry to valid URL See merge request gitlab-org/gitlab-ce!20824
This commit is contained in:
commit
309a3f1477
|
@ -10,7 +10,7 @@ server {
|
||||||
listen *:80;
|
listen *:80;
|
||||||
server_name registry.gitlab.example.com;
|
server_name registry.gitlab.example.com;
|
||||||
server_tokens off; ## Don't show the nginx version number, a security best practice
|
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;
|
access_log /var/log/nginx/gitlab_registry_access.log gitlab_access;
|
||||||
error_log /var/log/nginx/gitlab_registry_error.log;
|
error_log /var/log/nginx/gitlab_registry_error.log;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue