Security added on delete service and list all node + cleaning some code

This commit is contained in:
Blomios
2026-01-07 22:16:34 +01:00
parent 3c8bebb2ad
commit a64b10175e
192 changed files with 45470 additions and 4308 deletions

View File

@ -11,7 +11,7 @@ http {
# 1. Requêtes vers l'API
location /api/ {
proxy_pass http://backend:8080/;
proxy_pass http://backend:8080;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
@ -22,11 +22,23 @@ http {
proxy_pass http://frontend:80;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
# Support des WebSockets (important pour le hot-reload en dev)
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
# --- GESTION DU ROUTAGE REACT (F5 / URLs directes) ---
# On intercepte le 404 du conteneur frontend pour renvoyer l'index.html
proxy_intercept_errors on;
error_page 404 =200 /index.html;
# -----------------------------------------------------
# Support des WebSockets (Hot-Reload en développement)
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
# Nécessaire pour que error_page puisse retrouver le fichier index.html
location = /index.html {
proxy_pass http://frontend:80/index.html;
}
}
}