Skip to content

Commit

Permalink
fix /dev/stderr bug on ubuntu and reintroduce access_bad.log file (#44)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kim Fehrs authored Mar 4, 2024
1 parent 950a925 commit 8908f16
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions conf.d/nginx.conf.envsubst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
user nginx;
worker_processes 1;

error_log /dev/stderr notice;
error_log stderr notice;
pid /var/run/nginx.pid;

events {
Expand Down Expand Up @@ -99,15 +99,16 @@ http {

${INCLUDE_DEFAULT_RATE_LIMITS}

error_log /dev/stderr notice;
error_log stderr notice;
server {
listen 443 ssl;
server_name localhost;

include conf.d/enable-compression.conf;

access_log /dev/stderr json_analytics if=${DOLLAR}loggable;
access_log /dev/stdout json_analytics;
access_log stderr json_analytics if=${DOLLAR}loggable;
access_log $NGINX_LOGS_DIR/access_bad.log json_analytics if=${DOLLAR}loggable;
access_log stdout json_analytics;

#include conf.d/cloudflare-allow.conf;
#deny all;
Expand Down

0 comments on commit 8908f16

Please sign in to comment.