Write nginx errors to /dev/stderr

pull/1/head
Sean Whalen 2020-02-24 13:05:07 -05:00 committed by GitHub
parent 8198a6eded
commit a8b43368b9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -5,7 +5,7 @@ server {
# Disable access logs # Disable access logs
access_log off; access_log off;
log_not_found off; log_not_found off;
error_log /var/log/nginx/error.log error; error_log /dev/stderr error;
return 301 https://$host$request_uri; return 301 https://$host$request_uri;
} }
@ -19,7 +19,7 @@ server {
# Disable access logs # Disable access logs
access_log off; access_log off;
log_not_found off; log_not_found off;
error_log /var/log/nginx/error.log error; error_log /dev/stderr error;
ssl_certificate /etc/ssl/cert.pem; ssl_certificate /etc/ssl/cert.pem;
ssl_certificate_key /etc/ssl/key.pem; ssl_certificate_key /etc/ssl/key.pem;