Include the serversnippet from the config map in servers that aren't aliaes

This commit is contained in:
Chris Reinhardt 2017-10-12 14:30:05 -04:00
parent bf26abf935
commit 0aae81114a

View file

@ -365,6 +365,10 @@ http {
server_name {{ $server.Hostname }} {{ $server.Alias }};
{{ template "SERVER" serverConfig $all $server }}
{{ if not (empty $cfg.ServerSnippet) }}
# Custom code snippet configured in the configuration configmap
{{ $cfg.ServerSnippet }}
{{ end }}
{{ template "CUSTOM_ERRORS" $all }}
}
@ -818,7 +822,7 @@ stream {
return 503;
{{ end }}
}
{{ end }}
{{ if eq $server.Hostname "_" }}