Skip to content

Commit 8294773

Browse files
committed
Fixed some incorrect references to nginx log directory.
This fixes rotation of log files.
1 parent 38e45fb commit 8294773

File tree

3 files changed

+4
-9
lines changed

3 files changed

+4
-9
lines changed

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@ RUN \
7575
--conf-path=/etc/nginx/nginx.conf \
7676
--pid-path=/var/run/nginx/nginx.pid \
7777
--lock-path=/var/run/nginx/nginx.lock \
78-
--error-log-path=/config/log/nginx/error.log \
79-
--http-log-path=/config/log/nginx/access.log \
78+
--error-log-path=/config/log/error.log \
79+
--http-log-path=/config/log/access.log \
8080
\
8181
--http-client-body-temp-path=/var/tmp/nginx/client_body \
8282
--http-proxy-temp-path=/var/tmp/nginx/proxy \

rootfs/etc/cont-init.d/nginx-proxy-manager.sh

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ log() {
99

1010
# Make sure mandatory directories exist.
1111
mkdir -p \
12-
/config/log/nginx \
12+
/config/log \
1313
/config/letsencrypt/archive \
1414
/config/letsencrypt-acme-challenge \
1515
/config/custom_ssl \
@@ -25,11 +25,6 @@ mkdir -p \
2525
/config/log/letsencrypt \
2626
/config/letsencrypt-workdir \
2727

28-
# Create nginx log files.
29-
touch /config/log/nginx/error.log
30-
touch /config/log/nginx/default.log
31-
touch /config/log/nginx/manager.log
32-
3328
# Make sure to remove old logs directory symlink.
3429
[ ! -L /config/logs ] || rm /config/logs
3530

rootfs/etc/logrotate.d/nginx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/config/log/nginx/*.log {
1+
/config/log/*.log {
22
daily
33
compress
44
rotate 14

0 commit comments

Comments
 (0)