added log params to support buffering and flush etc...

This commit is contained in:
Mathew Burnett 2022-11-12 12:04:19 +00:00
parent a45516468d
commit e61c5d1baa
3 changed files with 4 additions and 2 deletions

View file

@ -18,7 +18,8 @@ ENV GENERICCACHE_VERSION=2 \
LOGFILE_RETENTION=3560 \
CACHE_DOMAINS_REPO="https://github.com/uklans/cache-domains.git" \
CACHE_DOMAINS_BRANCH=master \
NGINX_WORKER_PROCESSES=auto
NGINX_WORKER_PROCESSES=auto \
LOG_PARAMS=""
COPY overlay/ /

View file

@ -3,7 +3,7 @@
server {
listen 80 reuseport;
access_log /data/logs/access.log cachelog;
access_log /data/logs/access.log cachelog $LOG_PARAMS;
error_log /data/logs/error.log;
include /etc/nginx/sites-available/cache.conf.d/*.conf;

View file

@ -19,3 +19,4 @@ sed -i "s/slice 1m;/slice ${CACHE_SLICE_SIZE};/" /etc/nginx/sites-available/cach
sed -i "s/UPSTREAM_DNS/${UPSTREAM_DNS}/" /etc/nginx/sites-available/cache.conf.d/10_root.conf
sed -i "s/UPSTREAM_DNS/${UPSTREAM_DNS}/" /etc/nginx/sites-available/upstream.conf.d/10_resolver.conf
sed -i "s/UPSTREAM_DNS/${UPSTREAM_DNS}/" /etc/nginx/stream-available/10_sni.conf
sed -i "s/UPSTREAM_DNS/${LOG_PARAMS}/" /etc/nginx/sites-available/10_cache.conf