This commit is contained in:
ifaryd
2026-05-25 12:49:43 +00:00
parent c4e45a888c
commit bda89b47bf
10 changed files with 222 additions and 517 deletions

22
nginx/nginx.dev-init.conf Normal file
View File

@@ -0,0 +1,22 @@
upstream django {
server web:8000;
}
# HTTP only — utilisé uniquement pour obtenir le certificat SSL (étape 1)
server {
listen 80;
server_name dev.jool-international.com;
location /.well-known/acme-challenge/ {
root /var/www/certbot;
}
location / {
proxy_pass http://django;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_redirect off;
}
}