server { listen 80; listen [::]:80; server_name filyx.hom3r-off.fr; root /srv/filyx/apps/web/public; index index.php; client_max_body_size 32m; # La route OAuth du compte bot est relayée uniquement vers l'assistant # temporaire lié à localhost. Elle n'expose pas de serveur Node public. location = /auth/kick/bot/callback { proxy_pass http://127.0.0.1:47831; proxy_set_header Host $host; proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_http_version 1.1; } location / { try_files $uri $uri/ /index.php?$query_string; } location ~ \.php$ { try_files $uri =404; include fastcgi_params; fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name; fastcgi_param DOCUMENT_ROOT $realpath_root; fastcgi_param HTTP_X_FORWARDED_PROTO $http_x_forwarded_proto; fastcgi_pass unix:/run/php/php8.2-fpm.sock; fastcgi_read_timeout 60s; } location ~ /\. { deny all; } location ~* \.(?:env|sql|log|bak)$ { deny all; } }