Skip to content

Instantly share code, notes, and snippets.

@bathivinod
Forked from bbachi/jenkins.conf
Created January 6, 2023 19:48
Show Gist options
  • Select an option

  • Save bathivinod/58fc7d4117de3d54acbbbc1a338dce10 to your computer and use it in GitHub Desktop.

Select an option

Save bathivinod/58fc7d4117de3d54acbbbc1a338dce10 to your computer and use it in GitHub Desktop.
Jenkins
upstream jenkins {
server 127.0.0.1:8080;
}
server {
listen 80 default;
server_name sample.jenkins;
access_log /var/log/nginx/access.log;
error_log /var/log/nginx/error.log;
proxy_buffers 16 64k;
proxy_buffer_size 128k;
location / {
proxy_pass http://jenkins;
proxy_next_upstream error timeout invalid_header http_500 http_502 http_503 http_504;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment