My Jenkins nginx proxy script

         ·

Here is a very simple configuration for nginx to proxy Jenkins (the new name for the un-Oracle’d Hudson)

[cc lang=“bash”]

server {

listen 80 default;

server_name bld-master localhost;

root /var/lib/jenkins;

access_log /var/log/nginx/jenkins.access.log;

location / {

proxy_pass http://127.0.0.1:8080/;

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;

}

}

[/cc]

comments powered by Disqus