An open source, non-profit web search engine
Move log_format to somewhere it's hopefully allowed
Daoud Clarke90b6dab2c42a
diff --git a/nginx.conf.sigil b/nginx.conf.sigilindex 7f5386e..9fedd64 100644--- a/nginx.conf.sigil+++ b/nginx.conf.sigil@@ -4,16 +4,16 @@{{ $listen_port := index $port_map_list 1 }}{{ $upstream_port := index $port_map_list 2 }}+log_format custom_format '$remote_user [$time_local] "$request" '+ '$status $body_bytes_sent "$http_referer" '+ '"$http_user_agent"';+{{ if eq $scheme "http" }}server {listen [{{ $.NGINX_BIND_ADDRESS_IP6 }}]:{{ $listen_port }};listen {{ if $.NGINX_BIND_ADDRESS_IP4 }}{{ $.NGINX_BIND_ADDRESS_IP4 }}:{{end}}{{ $listen_port }};{{ if $.NOSSL_SERVER_NAME }}server_name {{ $.NOSSL_SERVER_NAME }}; {{ end }}- log_format custom_format '$remote_user [$time_local] "$request" '- '$status $body_bytes_sent "$http_referer" '- '"$http_user_agent"';-access_log {{ $.NGINX_ACCESS_LOG_PATH }}{{ if and ($.NGINX_ACCESS_LOG_FORMAT) (ne $.NGINX_ACCESS_LOG_PATH "off") }} {{ $.NGINX_ACCESS_LOG_FORMAT }}{{ end }} custom_format;error_log {{ $.NGINX_ERROR_LOG_PATH }};rewrite_log on;