first commit

This commit is contained in:
Beyhan Oğur
2026-04-26 22:22:29 +03:00
commit ec28a2024d
208 changed files with 23836 additions and 0 deletions

28
caddy/Caddyfile Normal file
View File

@@ -0,0 +1,28 @@
:80 {
# Büyük upload limiti (Nginx'teki client_max_body_size 100M eşdeğeri)
request_body {
max_size 100MB
}
# Static dosyalar
handle_path /static/* {
root * /app/staticfiles
header Cache-Control "public, immutable"
file_server
}
# Media dosyalar
handle_path /media/* {
root * /app/media
header Cache-Control "public"
file_server
}
# Diğer tüm istekler Django'ya
reverse_proxy django_web_prod:8000 {
header_up Host {host}
header_up X-Real-IP {remote_host}
header_up X-Forwarded-For {remote_host}
header_up X-Forwarded-Proto {scheme}
}
}