jenkins/nginx.conf: use better proxying

This was copied over from the Jenkins docs.
This commit is contained in:
Albert Hopkins 2016-07-23 11:30:20 +00:00
parent 8f578a64e5
commit 0f764da844
1 changed files with 7 additions and 1 deletions

View File

@ -55,7 +55,13 @@ http {
root /var/www/jenkins/htdocs; root /var/www/jenkins/htdocs;
location / { location / {
proxy_pass http://127.0.0.1:8080/; sendfile off;
proxy_pass http://127.0.0.1:8080;
proxy_redirect default;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_max_temp_file_size 0;
} }
} }