Skip to content

Commit

Permalink
Use correct jenkins host in nginx config.
Browse files Browse the repository at this point in the history
  • Loading branch information
pranas committed Dec 3, 2012
1 parent 5efbdb8 commit 3e8e98b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/default/nginx_jenkins.conf.erb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ server {
client_max_body_size <%= @max_upload_size %>;

location / {
proxy_pass http://127.0.0.1:<%= node['jenkins']['server']['port'] %>;
proxy_pass http://<%= node['jenkins']['server']['host'] %>:<%= node['jenkins']['server']['port'] %>;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
Expand Down

0 comments on commit 3e8e98b

Please sign in to comment.