Updated Nginx (markdown)

d47081 2023-12-01 15:54:28 +02:00
parent 4ef1b7b758
commit 0e8a85a2f5

@ -29,8 +29,9 @@ server {
listen [::]:80; listen [::]:80;
allow 0200::/7; # Yggdrasil-only connections
deny all; # allow 0200::/7;
# deny all;
root /var/www/YGGverse/YGGtracker/public; root /var/www/YGGverse/YGGtracker/public;
@ -45,8 +46,6 @@ server {
location ~ ^/index\.php(/|$) { location ~ ^/index\.php(/|$) {
fastcgi_param APP_ENV prod;
include snippets/fastcgi-php.conf; include snippets/fastcgi-php.conf;
fastcgi_pass unix:/run/php/php8.1-fpm.sock; 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 SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
fastcgi_param DOCUMENT_ROOT $realpath_root; fastcgi_param DOCUMENT_ROOT $realpath_root;
# Environment variables
# bin/console cache:clear
fastcgi_param APP_ENV prod;
internal; internal;
} }
@ -92,8 +95,8 @@ server {
listen [::]:80 default; listen [::]:80 default;
# Yggdrasil-only connections # Yggdrasil-only connections
allow 0200::/7; # allow 0200::/7;
deny all; # deny all;
root /var/www/html; root /var/www/html;
@ -122,6 +125,6 @@ server {
# Environment variables # Environment variables
# bin/console cache:clear # bin/console cache:clear
# fastcgi_param APP_ENV prod; fastcgi_param APP_ENV prod;
} }
``` ```