Skip to content

Instantly share code, notes, and snippets.

@bbachi
Created October 3, 2021 16:14
Show Gist options
  • Select an option

  • Save bbachi/83a54c9df5e5bf14e027410733201b6f to your computer and use it in GitHub Desktop.

Select an option

Save bbachi/83a54c9df5e5bf14e027410733201b6f 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