mirror of https://github.com/codevalet/codevalet
29 lines
807 B
Plaintext
29 lines
807 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;
|
|
}
|
|
|
|
# Only allow the usage of the Blue Ocean Pipeline creation flow.
|
|
# https://github.com/CodeValet/codevalet/issues/10
|
|
location = /newJob {
|
|
return 301 /blue/organizations/jenkins/create-pipeline;
|
|
}
|
|
|
|
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;
|
|
}
|
|
}
|