23 lines
587 B
Plaintext
23 lines
587 B
Plaintext
#
|
|
# This nginx configuration is meant to be embedded into a Jenkins master container
|
|
# for automatically routing some things
|
|
#
|
|
# Related to: https://issues.jenkins-ci.org/browse/JENKINS-46706
|
|
|
|
server {
|
|
listen 80;
|
|
|
|
location = / {
|
|
return 301 /blue/pipelines;
|
|
}
|
|
|
|
location / {
|
|
proxy_redirect off;
|
|
proxy_set_header Host $http_host;
|
|
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_pass http://localhost:8080;
|
|
}
|
|
}
|