-
-
Save bathivinod/58fc7d4117de3d54acbbbc1a338dce10 to your computer and use it in GitHub Desktop.
Jenkins
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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