lesson_6_-_web_proxy_for_jenkins
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| lesson_6_-_web_proxy_for_jenkins [2016/03/25 16:10] – created curry_searle | lesson_6_-_web_proxy_for_jenkins [2016/03/25 16:19] (current) – curry_searle | ||
|---|---|---|---|
| Line 3: | Line 3: | ||
| At the end of this lesson you will be able to connect to your Jenkins instance from a web browser. This web request passes through the nginx reverse web proxy we setup in a previous lesson. | At the end of this lesson you will be able to connect to your Jenkins instance from a web browser. This web request passes through the nginx reverse web proxy we setup in a previous lesson. | ||
| - | On Master | + | On Master, edit the existing nginx configuration file for //master//: |
| < | < | ||
| sudo vi / | sudo vi / | ||
| Line 36: | Line 36: | ||
| } | } | ||
| </ | </ | ||
| + | |||
| + | The full nginx configuration file /// | ||
| + | |||
| + | <file xml master> | ||
| + | server { | ||
| + | listen 80; | ||
| + | server_name master; | ||
| + | |||
| + | location /gogs/ { | ||
| + | proxy_pass http:// | ||
| + | } | ||
| + | |||
| + | location ^~ /jenkins/ { | ||
| + | proxy_pass http:// | ||
| + | |||
| + | # The following settings from https:// | ||
| + | sendfile off; | ||
| + | |||
| + | proxy_set_header | ||
| + | proxy_set_header | ||
| + | proxy_set_header | ||
| + | proxy_max_temp_file_size 0; | ||
| + | |||
| + | #this is the maximum upload size | ||
| + | client_max_body_size | ||
| + | client_body_buffer_size | ||
| + | |||
| + | proxy_connect_timeout | ||
| + | proxy_send_timeout | ||
| + | proxy_read_timeout | ||
| + | |||
| + | proxy_buffer_size | ||
| + | proxy_buffers | ||
| + | proxy_busy_buffers_size | ||
| + | proxy_temp_file_write_size 64k; | ||
| + | } | ||
| + | |||
| + | } | ||
| + | </ | ||
| The master site configuration is already enabled so all we need to do is restart the nginx service: | The master site configuration is already enabled so all we need to do is restart the nginx service: | ||
| Line 45: | Line 84: | ||
| === Resources === | === Resources === | ||
| + | * [[https:// | ||
lesson_6_-_web_proxy_for_jenkins.1458947428.txt.gz · Last modified: by curry_searle
