This commit is contained in:
Tim Bendt
2025-11-29 10:53:29 -05:00
parent f1b15699d0
commit 74b09e53c1

View File

@@ -11,7 +11,7 @@ events {
}
http {
include $!{nginx}/conf/mime.types;
include ${NIXPACKS_NGINX_ROOT}/conf/mime.types;
index index.html index.htm index.php;
default_type application/octet-stream;
@@ -41,9 +41,9 @@ http {
add_header X-Frame-Options "SAMEORIGIN";
add_header X-Content-Type-Options "nosniff";
index index.php;
charset utf-8;
# Static files for root directory
@@ -100,12 +100,12 @@ http {
}
# Handle PHP files
location ~ \.php$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
include $!{nginx}/conf/fastcgi_params;
include $!{nginx}/conf/fastcgi.conf;
include ${NIXPACKS_NGINX_ROOT}/conf/fastcgi_params;
include ${NIXPACKS_NGINX_ROOT}/conf/fastcgi.conf;
}
# Gzip compression