diff --git a/nginx.conf b/nginx.conf index cb84b9b..ef81f19 100644 --- a/nginx.conf +++ b/nginx.conf @@ -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