Initial clean version

This commit is contained in:
root
2026-11-11 09:24:28 +01:00
commit ab58b33f9c
156 changed files with 5697 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
# Example: Apache + PHP configured separately. Terminate TLS on your reverse proxy.
<VirtualHost *:80>
ServerName suspensions.example.fr
DocumentRoot /var/www/esbsc/public
<Directory /var/www/esbsc/public>
AllowOverride All
Require all granted
Options -Indexes
</Directory>
SetEnv DB_DSN "mysql:host=127.0.0.1;dbname=esbsc_suspensions;charset=utf8mb4"
SetEnv DB_USER "esbsc"
SetEnv DB_PASSWORD "REMPLACER"
SetEnv SESSION_SECURE "1"
</VirtualHost>
+4
View File
@@ -0,0 +1,4 @@
# Crontab of the deployment account. Set Europe/Paris on the host.
# Each Friday at 18:00, generate the next Saturday/Sunday report.
# It is stored in the application and as a private PDF; no email is sent.
0 18 * * 5 cd /opt/esbsc && /usr/bin/docker compose exec -T app php bin/console.php report >> /opt/esbsc-report.log 2>&1
+20
View File
@@ -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; }
}
+9
View File
@@ -0,0 +1,9 @@
display_errors=Off
log_errors=On
expose_php=Off
upload_max_filesize=10M
post_max_size=12M
max_input_vars=5000
session.use_strict_mode=1
session.cookie_httponly=1
session.cookie_samesite=Lax