This commit is contained in:
Gilles Soulier
2026-01-05 16:08:01 +01:00
parent dcba044cd6
commit c67befc549
2215 changed files with 26743 additions and 329 deletions

25
frontend/nginx.conf Executable file
View File

@@ -0,0 +1,25 @@
server {
listen 80;
server_name localhost;
# Serve static frontend files
location / {
root /usr/share/nginx/html;
index index.html;
try_files $uri $uri/ =404;
}
# Serve uploaded files
location /uploads/ {
alias /uploads/;
autoindex off;
# Cache uploaded images for 1 day
expires 1d;
add_header Cache-Control "public, immutable";
}
# Security headers
add_header X-Frame-Options "SAMEORIGIN" always;
add_header X-Content-Type-Options "nosniff" always;
add_header X-XSS-Protection "1; mode=block" always;
}