12 lines
325 B
Plaintext
12 lines
325 B
Plaintext
server {
|
|
listen [::]:{{ .NGINX_PORT }};
|
|
listen {{ .NGINX_PORT }};
|
|
{{ if .NOSSL_SERVER_NAME }}server_name {{ .NOSSL_SERVER_NAME }}; {{ end }}
|
|
{{ include "log.config" . }}
|
|
{{ if .SSL_INUSE }}
|
|
return 301 https://$host:{{ .NGINX_SSL_PORT }}$request_uri;
|
|
{{ else }}
|
|
{{ include "location.config" . }}
|
|
{{ end }}
|
|
}
|