jenkins/nginx.conf: use better proxying
This was copied over from the Jenkins docs.
This commit is contained in:
parent
8f578a64e5
commit
0f764da844
|
@ -55,7 +55,13 @@ http {
|
|||
root /var/www/jenkins/htdocs;
|
||||
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue