Correction gunicorn

This commit is contained in:
ifaryd
2026-05-26 09:23:41 +00:00
parent 0c52766f8a
commit 8e28e61c65
7 changed files with 99 additions and 21 deletions

31
Caddyfile.local Normal file
View File

@@ -0,0 +1,31 @@
# Config Caddy locale — http uniquement sur localhost:8888
# Pas de SSL, pas de vrai domaine nécessaire
:80 {
# Fichiers statiques Django
handle_path /static/* {
root * /app/staticfiles
file_server
}
# CVs : jamais accessibles publiquement
handle /media/careers/cvs/* {
respond 404
}
# Autres fichiers media
handle_path /media/* {
root * /app/media
file_server
}
# Application Django
handle {
reverse_proxy web:8000
}
log {
output stdout
}
}