Initial clean version
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
# Example: PHP-FPM Debian 12. TLS configured separately on reverse proxy.
|
||||
server {
|
||||
listen 80;
|
||||
server_name suspensions.example.fr;
|
||||
root /var/www/esbsc/public;
|
||||
index index.php;
|
||||
client_max_body_size 12m;
|
||||
location / { try_files $uri /index.php$is_args$args; }
|
||||
location = /index.php {
|
||||
include fastcgi_params;
|
||||
fastcgi_param SCRIPT_FILENAME $document_root/index.php;
|
||||
fastcgi_pass unix:/run/php/php8.2-fpm.sock;
|
||||
fastcgi_param DB_DSN "mysql:host=127.0.0.1;dbname=esbsc_suspensions;charset=utf8mb4";
|
||||
fastcgi_param DB_USER "esbsc";
|
||||
fastcgi_param DB_PASSWORD "REMPLACER";
|
||||
fastcgi_param SESSION_SECURE "1";
|
||||
}
|
||||
location ~ \.php$ { return 404; }
|
||||
location ~ /\. { deny all; }
|
||||
}
|
||||
Reference in New Issue
Block a user