serveur caddy

This commit is contained in:
ifaryd
2026-05-25 22:12:04 +00:00
parent bda89b47bf
commit 0c52766f8a
3 changed files with 53 additions and 44 deletions

31
Caddyfile.dev Normal file
View File

@@ -0,0 +1,31 @@
dev.jool-international.com {
# HTTPS automatique via Let's Encrypt (aucune config SSL nécessaire)
# Fichiers statiques
handle /static/* {
root * /app
file_server
}
# CVs : jamais accessibles publiquement
handle /media/careers/cvs/* {
respond 404
}
# Autres fichiers media
handle /media/* {
root * /app
file_server
}
# Application Django
handle {
reverse_proxy web:8000
}
# Logs
log {
output stdout
}
}