add APP_FASTCGI_PASS

This commit is contained in:
Andrew Dolgov 2025-05-22 14:12:51 +03:00
parent b29de3eb7c
commit a51d5ac438
No known key found for this signature in database
GPG Key ID: 1A56B4FA25D4AF2A
2 changed files with 4 additions and 3 deletions

View File

@ -8,6 +8,7 @@ COPY .docker/web-nginx/nginx.conf /etc/nginx/templates/nginx.conf.template
# By default, nginx will send the php requests to "app" server, but this server
# name can be overridden at runtime by passing an APP_UPSTREAM env var
ENV APP_UPSTREAM=${APP_UPSTREAM:-app}
ENV APP_FASTCGI_PASS="${APP_FASTCGI_PASS:-\$backend}"
# Webroot (defaults to /var/www/html)
ENV APP_WEB_ROOT=${APP_WEB_ROOT:-/var/www/html}

View File

@ -47,7 +47,7 @@ http {
set $backend "${APP_UPSTREAM}:9000";
fastcgi_pass $backend;
fastcgi_pass ${APP_FASTCGI_PASS};
}
# Allow PATH_INFO for PHP files in plugins.local directories with an /api/ sub directory to allow plugins to leverage when desired
@ -68,9 +68,9 @@ http {
set $backend "${APP_UPSTREAM}:9000";
fastcgi_pass $backend;
fastcgi_pass ${APP_FASTCGI_PASS};
}
location / {
try_files $uri $uri/ =404;
}