redirects fix

This commit is contained in:
Henadii Sychevskyi 2025-06-03 13:27:16 +02:00 committed by Steven Achilles
parent 85ce4fd06e
commit b1e2276d02

View File

@ -10,7 +10,7 @@ server {
listen *:80;
server_name {{GITLAB_REGISTRY_HOST}};
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 {{GITLAB_LOG_DIR}}/nginx/gitlab_registry_access.log;
error_log {{GITLAB_LOG_DIR}}/nginx/gitlab_registry_error.log;
}