Include the serversnippet from the config map in servers that aren't aliaes
This commit is contained in:
parent
bf26abf935
commit
0aae81114a
1 changed files with 5 additions and 1 deletions
|
@ -365,6 +365,10 @@ http {
|
||||||
server_name {{ $server.Hostname }} {{ $server.Alias }};
|
server_name {{ $server.Hostname }} {{ $server.Alias }};
|
||||||
{{ template "SERVER" serverConfig $all $server }}
|
{{ 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 }}
|
{{ template "CUSTOM_ERRORS" $all }}
|
||||||
}
|
}
|
||||||
|
@ -818,7 +822,7 @@ stream {
|
||||||
return 503;
|
return 503;
|
||||||
{{ end }}
|
{{ end }}
|
||||||
}
|
}
|
||||||
|
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ if eq $server.Hostname "_" }}
|
{{ if eq $server.Hostname "_" }}
|
||||||
|
|
Loading…
Reference in a new issue