Try using the system location for nginx configuration
This will help us use the system nginx service
This commit is contained in:
@@ -85,6 +85,9 @@ PATH=$PATH:$SRCDIR/node_modules/.bin npm run-script migrate_data
|
||||
EOF
|
||||
|
||||
echo "==== Setup nginx ===="
|
||||
rm -rf /etc/nginx/* && echo "include $NGINX_CONFIG_DIR/nginx.conf;" > /etc/nginx/nginx.conf
|
||||
unlink /etc/nginx 2>/dev/null || rm -rf /etc/nginx
|
||||
ln -s $NGINX_CONFIG_DIR /etc/nginx
|
||||
mkdir -p $NGINX_APPCONFIG_DIR
|
||||
cp $SRCDIR/postinstall/nginx/nginx.conf $NGINX_CONFIG_DIR/nginx.conf
|
||||
cp $SRCDIR/postinstall/nginx/mime.types $NGINX_CONFIG_DIR/mime.types
|
||||
|
||||
@@ -17,7 +17,7 @@ echo "Writing supervisor configs..."
|
||||
|
||||
cat > /etc/supervisor/conf.d/nginx.conf <<EOF
|
||||
[program:nginx]
|
||||
command=/usr/sbin/nginx -c "$NGINX_CONFIG_DIR/nginx.conf" -p /var/log/nginx/
|
||||
command=/usr/sbin/nginx
|
||||
autostart=true
|
||||
autorestart=true
|
||||
redirect_stderr=true
|
||||
|
||||
Reference in New Issue
Block a user