diff options
author | Grzegorz Bizon <grzegorz@gitlab.com> | 2017-08-09 17:41:20 +0000 |
---|---|---|
committer | Jose Ivan Vargas <jvargas@gitlab.com> | 2017-08-11 10:35:04 -0500 |
commit | f4ae59d1d3de4db1480a5e77d8d3d7d7bf43c1ef (patch) | |
tree | 3c0f24e6c91a98bc0a03449175730adea5e5f9ef | |
parent | ae7e3195d0bf8fb3c028286daf3d331e6c0f85b4 (diff) | |
download | gitlab-ce-f4ae59d1d3de4db1480a5e77d8d3d7d7bf43c1ef.tar.gz |
Merge branch 'fix-gitlab-pages-cache-config' into 'master'
Fix proxy config in Gitlab Pages nginx examples
See merge request !13375
-rw-r--r-- | lib/support/nginx/gitlab-pages | 5 | ||||
-rw-r--r-- | lib/support/nginx/gitlab-pages-ssl | 5 |
2 files changed, 8 insertions, 2 deletions
diff --git a/lib/support/nginx/gitlab-pages b/lib/support/nginx/gitlab-pages index d9746c5c1aa..875c8bcbf3c 100644 --- a/lib/support/nginx/gitlab-pages +++ b/lib/support/nginx/gitlab-pages @@ -18,8 +18,11 @@ server { proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; + + proxy_cache off; + # The same address as passed to GitLab Pages: `-listen-proxy` - proxy_pass http://localhost:8090/; + proxy_pass http://localhost:8090/; } # Define custom error pages diff --git a/lib/support/nginx/gitlab-pages-ssl b/lib/support/nginx/gitlab-pages-ssl index a1ccf266835..62ed482e2bf 100644 --- a/lib/support/nginx/gitlab-pages-ssl +++ b/lib/support/nginx/gitlab-pages-ssl @@ -67,8 +67,11 @@ server { proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; + + proxy_cache off; + # The same address as passed to GitLab Pages: `-listen-proxy` - proxy_pass http://localhost:8090/; + proxy_pass http://localhost:8090/; } # Define custom error pages |