aboutsummaryrefslogtreecommitdiff
path: root/manifests/proxy/nginx.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/proxy/nginx.pp')
-rw-r--r--manifests/proxy/nginx.pp6
1 files changed, 5 insertions, 1 deletions
diff --git a/manifests/proxy/nginx.pp b/manifests/proxy/nginx.pp
index eb2aabb..77c561b 100644
--- a/manifests/proxy/nginx.pp
+++ b/manifests/proxy/nginx.pp
@@ -15,7 +15,9 @@ define concourse::proxy::nginx (
) {
include concourse
- nginx::resource::upstream { "concourse - ${cluster}":
+ # Members are collected through the puppet database.
+ # TODO optionally allow manually specifying them.
+ nginx::resource::upstream { $cluster:
ensure => $ensure,
}
@@ -31,11 +33,13 @@ define concourse::proxy::nginx (
}
nginx::resource::location { "${server_name} - /":
+ server => $server_name,
location => '/',
proxy => "http://${cluster}",
}
nginx::resource::location { "${server_name} - ~ /hijack$":
+ server => $server_name,
location => '~ /hijack$',
proxy => "http://${cluster}",
proxy_set_header => [