add support for apex and subdomain
This commit is contained in:
parent
8075bab534
commit
e206e45427
1 changed files with 7 additions and 2 deletions
|
|
@ -4,9 +4,14 @@ Generate the content for the NGINX configuration.
|
||||||
{{- define "nginx.configmap.content" -}}
|
{{- define "nginx.configmap.content" -}}
|
||||||
{{- range .Values.sites }}
|
{{- range .Values.sites }}
|
||||||
server {
|
server {
|
||||||
listen 80;
|
{{ if .apex }}
|
||||||
|
server_name {{ .host }};
|
||||||
|
{{ else if .subdomain }}
|
||||||
|
server_name {{ .subdomain }}.{{ .host }};
|
||||||
|
{{ else }}
|
||||||
server_name {{ .name }}.{{ .host }};
|
server_name {{ .name }}.{{ .host }};
|
||||||
|
{{ end }}
|
||||||
|
listen 80;
|
||||||
gzip on;
|
gzip on;
|
||||||
gzip_disable "msie6";
|
gzip_disable "msie6";
|
||||||
gzip_vary on;
|
gzip_vary on;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue