enhance(docker): recreate access.log and error.log as regular files

This commit is contained in:
Jacky 2024-05-05 19:19:46 +08:00
parent 45a68112b1
commit abc73bbf77
No known key found for this signature in database
GPG key ID: 215C21B10DF38B4D
4 changed files with 8 additions and 27 deletions

View file

@ -1,12 +0,0 @@
#!/bin/bash
# the up and down files are special: they're not shell scripts,
# but single command lines interpreted by execlineb.
# You should not have to worry about execline;
# you should only remember that an up file contains a single command line.
if [ "$(ls -A /etc/nginx)" = "" ]; then
echo "[INFO] Initialing Nginx configurations directory"
cp -rp /usr/etc/nginx/* /etc/nginx/
echo "[INFO] Nginx configurations directory initialed"
fi

View file

@ -1 +0,0 @@
/etc/s6-overlay/s6-rc.d/init-config/init-config.sh

View file

@ -22,7 +22,6 @@ http {
'"$http_user_agent" "$http_x_forwarded_for"';
access_log /var/log/nginx/access.log main;
access_log /var/log/nginx/access.local.log main;
sendfile on;
#tcp_nopush on;