# Private, local-only entrypoint for the FilyX bot engine. It serves the same # front controller as the public site but never leaves the OVH VPS or touches # Cloudflare/TLS. Public URLs are kept in FastCGI variables so messages that # contain FilyX links always point to the normal HTTPS domain. server { listen 127.0.0.1:8181; server_name _; root /srv/filyx/apps/web/public; index index.php; client_max_body_size 32m; 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_HOST filyx.fr; fastcgi_param SERVER_NAME filyx.fr; fastcgi_param SERVER_PORT 443; fastcgi_param HTTPS on; fastcgi_param REQUEST_SCHEME https; fastcgi_pass unix:/run/php/php8.2-fpm.sock; fastcgi_read_timeout 15s; } location ~ /\. { deny all; } }