diskimage-builder/flavours/jenkins/install.d/httpproxy.jenkins
Ghe Rivero fcf68d1c18 Updated jenkins flavour
- Install list of plugins
- Use an http service as proxy on port 80
  - Only nginx for now
2012-11-23 10:26:39 +01:00

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;
}
}
}