diff --git a/Nginx.md b/Nginx.md index e3034d7..2483391 100644 --- a/Nginx.md +++ b/Nginx.md @@ -29,8 +29,9 @@ server { listen [::]:80; - allow 0200::/7; - deny all; + # Yggdrasil-only connections + # allow 0200::/7; + # deny all; root /var/www/YGGverse/YGGtracker/public; @@ -45,8 +46,6 @@ server { location ~ ^/index\.php(/|$) { - fastcgi_param APP_ENV prod; - include snippets/fastcgi-php.conf; fastcgi_pass unix:/run/php/php8.1-fpm.sock; @@ -56,6 +55,10 @@ server { fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name; fastcgi_param DOCUMENT_ROOT $realpath_root; + # Environment variables + # bin/console cache:clear + fastcgi_param APP_ENV prod; + internal; } @@ -92,8 +95,8 @@ server { listen [::]:80 default; # Yggdrasil-only connections - allow 0200::/7; - deny all; + # allow 0200::/7; + # deny all; root /var/www/html; @@ -122,6 +125,6 @@ server { # Environment variables # bin/console cache:clear - # fastcgi_param APP_ENV prod; + fastcgi_param APP_ENV prod; } ``` \ No newline at end of file