First commit of claude's rework in django + vanillajs fronted

This commit is contained in:
Gérald Colangelo
2026-04-02 11:24:30 +02:00
parent 7710a876df
commit fde92f92db
163 changed files with 84852 additions and 15 deletions

25
frontend/nginx.conf Normal file
View File

@@ -0,0 +1,25 @@
server {
listen 80;
root /usr/share/nginx/html;
index index.html;
# Proxy API calls to Django
location /api/ {
proxy_pass http://web:8000;
proxy_set_header Host web;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
client_max_body_size 10M;
}
# Proxy media files to Django
location /media/ {
proxy_pass http://web:8000;
proxy_set_header Host web;
}
# Static files
location / {
try_files $uri $uri/ $uri.html =404;
}
}