diff --git a/assets/runtime/config/nginx/gitlab b/assets/runtime/config/nginx/gitlab index 316e061a..677f0829 100644 --- a/assets/runtime/config/nginx/gitlab +++ b/assets/runtime/config/nginx/gitlab @@ -195,7 +195,7 @@ server { ## See config/application.rb under "Relative url support" for the list of ## other files that need to be changed for relative url support location ~ ^/(assets)/ { - root {{GITLAB_INSTALL_DIR}}; + root {{GITLAB_INSTALL_DIR}}/public; gzip_static on; # to serve pre-gzipped version expires max; add_header Cache-Control public; diff --git a/assets/runtime/config/nginx/gitlab-ssl b/assets/runtime/config/nginx/gitlab-ssl index f4d6a2a0..9a9bb02d 100644 --- a/assets/runtime/config/nginx/gitlab-ssl +++ b/assets/runtime/config/nginx/gitlab-ssl @@ -245,7 +245,7 @@ server { ## See config/application.rb under "Relative url support" for the list of ## other files that need to be changed for relative url support location ~ ^/(assets)/ { - root {{GITLAB_INSTALL_DIR}}; + root {{GITLAB_INSTALL_DIR}}/public; gzip_static on; # to serve pre-gzipped version expires max; add_header Cache-Control public;