We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 34cce83 commit c7c895cCopy full SHA for c7c895c
1 file changed
router/image/templates/nginx.conf
@@ -158,6 +158,11 @@ http {
158
{{ $useSSL := or (getv "/deis/router/sslCert") "false" }}
159
{{ $domains := ls "/deis/domains" }}
160
{{ $certs := ls "/deis/certs" }}
161
+ ## workaround for nginx hashing empty string bug http://trac.nginx.org/nginx/ticket/765
162
+ {{ if exists "/deis/router/affinityArg" }}
163
+ set_random $prng 0 99;
164
+ set_if_empty $arg_{{ getv "/deis/router/affinityArg" }} $prng;
165
+ {{ end }}
166
## start service definitions for each application
167
{{ range $app := lsdir "/deis/services" }}
168
{{ $upstreams := printf "/deis/services/%s/*" $app}}
0 commit comments