diff --git a/stable/artifactory/files/nginx-artifactory-conf.yaml b/stable/artifactory/files/nginx-artifactory-conf.yaml index 705ec789c..935c5f429 100644 --- a/stable/artifactory/files/nginx-artifactory-conf.yaml +++ b/stable/artifactory/files/nginx-artifactory-conf.yaml @@ -69,7 +69,6 @@ if ( $scheme = "http" ) { ## Application specific logs ## access_log /var/log/nginx/artifactory-access.log timing; ## error_log /var/log/nginx/artifactory-error.log; -rewrite ^/artifactory/?$ / redirect; if ( $repo != "" ) { rewrite ^/(v1|v2)/(.*) /artifactory/api/docker/$repo/$1/$2 break; } @@ -107,7 +106,7 @@ location / { proxy_buffering off; {{- end }} add_header Strict-Transport-Security "max-age=31536000; includeSubDomains" always; - location /artifactory/ { + location /artifactory { {{- if .Values.rtfs.enabled }} if ($request_uri ~ ^/artifactory/service/rtfs/(.*)$ ) { proxy_pass http://router/artifactory/service/rtfs/$1; @@ -131,4 +130,4 @@ location / { {{- end }} } } -} \ No newline at end of file +}