mirror of
https://github.com/N0rthernL1ghts/wordpress.git
synced 2025-12-10 08:12:41 +01:00
Replace NGINX + PHP-FPM combo with NGINX Unit application server
This commit is contained in:
@@ -1,12 +0,0 @@
|
||||
#!/usr/bin/with-contenv sh
|
||||
set -e
|
||||
|
||||
echo "Redirecting nginx logs to output streams..."
|
||||
|
||||
# General logs
|
||||
ln -sf /dev/stdout /var/log/nginx/access.log
|
||||
ln -sf /dev/stderr /var/log/nginx/error.log
|
||||
|
||||
# App specific logs
|
||||
ln -sf /dev/stdout /var/log/nginx/app-access.log
|
||||
ln -sf /dev/stderr /var/log/nginx/app-error.log
|
||||
@@ -1,10 +0,0 @@
|
||||
#!/usr/bin/with-contenv sh
|
||||
set -e
|
||||
|
||||
echo "Parsing virtual host template..."
|
||||
/usr/local/bin/gomplate -V \
|
||||
-o /etc/nginx/sites-available/app.conf \
|
||||
-f /etc/templates/tmpl-app-nginx.conf
|
||||
|
||||
echo "Enabling virtual host..."
|
||||
ln -sf /etc/nginx/sites-available/app.conf /etc/nginx/sites-enabled/app.conf
|
||||
@@ -1,4 +0,0 @@
|
||||
#!/usr/bin/with-contenv sh
|
||||
set -e
|
||||
|
||||
attr /var/www true www-data:www-data 0770 2771/etc/cont-init.d
|
||||
Reference in New Issue
Block a user