summaryrefslogtreecommitdiff
path: root/lib/support
diff options
context:
space:
mode:
authorKamil Trzcinski <ayufan@ayufan.eu>2015-09-16 20:45:58 +0200
committerKamil Trzcinski <ayufan@ayufan.eu>2015-09-16 20:45:58 +0200
commit50e5950947490b58cea1a50a5be137d45d0a334c (patch)
tree730bfd08db0b35c5f6e4ae8b77b1b139d53d1221 /lib/support
parenta0aa6453bd0099a0e1d0bfd6725fff8aaa9d29a9 (diff)
downloadgitlab-ce-50e5950947490b58cea1a50a5be137d45d0a334c.tar.gz
Add missing proxy requests to migration docsfix-nginx
Diffstat (limited to 'lib/support')
-rw-r--r--lib/support/nginx/gitlab_ci12
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/support/nginx/gitlab_ci b/lib/support/nginx/gitlab_ci
index bf05edfd780..ce179d6f599 100644
--- a/lib/support/nginx/gitlab_ci
+++ b/lib/support/nginx/gitlab_ci
@@ -18,6 +18,18 @@ server {
proxy_pass $scheme://YOUR_GITLAB_SERVER_FQDN/ci$request_uri;
}
+ # expose build endpoint to allow trigger builds
+ location ~ ^/projects/\d+/build$ {
+ proxy_read_timeout 300;
+ proxy_connect_timeout 300;
+ proxy_redirect off;
+ proxy_set_header X-Real-IP $remote_addr;
+
+ # You need to specify your DNS servers that are able to resolve YOUR_GITLAB_SERVER_FQDN
+ resolver 8.8.8.8 8.8.4.4;
+ proxy_pass $scheme://YOUR_GITLAB_SERVER_FQDN/ci$request_uri;
+ }
+
# redirect all other CI requests
location / {
return 301 $scheme://YOUR_GITLAB_SERVER_FQDN/ci$request_uri;