fcf68d1c18
- Install list of plugins - Use an http service as proxy on port 80 - Only nginx for now
21 lines
449 B
Plaintext
21 lines
449 B
Plaintext
upstream jenkins_server {
|
|
server 127.0.0.1:8080 fail_timeout=0;
|
|
}
|
|
|
|
server {
|
|
listen 80;
|
|
listen [::]:80 default ipv6only=on;
|
|
server_name ci.yourcompany.com;
|
|
|
|
location / {
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
proxy_set_header Host $http_host;
|
|
proxy_redirect off;
|
|
|
|
if (!-f $request_filename) {
|
|
proxy_pass http://jenkins_server;
|
|
break;
|
|
}
|
|
}
|
|
}
|