diff options
author | Nick Thomas <nick@gitlab.com> | 2017-08-08 13:19:23 +0100 |
---|---|---|
committer | Nick Thomas <nick@gitlab.com> | 2017-08-08 13:19:23 +0100 |
commit | 94d9b545db0dda59020f00cfc17bb7f9d1e4e5a2 (patch) | |
tree | bae3af440471d12d4e4b9017ef71310a063f08e5 /lib/support | |
parent | ca2a2aea898d21ad06721e881eaec0d2831136bb (diff) | |
download | gitlab-ce-94d9b545db0dda59020f00cfc17bb7f9d1e4e5a2.tar.gz |
Fix proxy config in Gitlab Pages nginx examples
Diffstat (limited to 'lib/support')
-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 |