Surpport snippet for server section by the annotation of the ingess

This commit is contained in:
decker 2017-09-20 17:35:16 +08:00
parent 37bd14dcd2
commit 407d8535da
6 changed files with 137 additions and 0 deletions

View file

@ -591,6 +591,10 @@ stream {
{{ end }}
{{ end }}
{{ if not (empty $server.ServerSnippet) }}
{{ $server.ServerSnippet }}
{{ end }}
{{ range $location := $server.Locations }}
{{ $path := buildLocation $location }}
{{ $authPath := buildAuthLocation $location }}