Merge pull request #20 from diginc/patch-1

Terraform log_format not escaped
This commit is contained in:
Arturo Aparicio
2019-12-16 13:38:39 -08:00
committed by GitHub

View File

@@ -126,9 +126,9 @@ cat <<EOF >/etc/nginx/nginx.conf
include /etc/nginx/conf.d/*.conf; include /etc/nginx/conf.d/*.conf;
default_type application/octet-stream; default_type application/octet-stream;
log_format main '$remote_addr - $remote_user [$time_local] "$request" ' log_format main '\$remote_addr - \$remote_user [\$time_local] "\$request" '
'$status $body_bytes_sent "$http_referer" ' '\$status \$body_bytes_sent "\$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"'; '"\$http_user_agent" "\$http_x_forwarded_for"';
access_log /var/log/nginx/access.log main; access_log /var/log/nginx/access.log main;
sendfile on; sendfile on;
#tcp_nopush on; #tcp_nopush on;