first commit

This commit is contained in:
Beyhan Oğur
2026-04-26 22:23:47 +03:00
commit 3de0ca1fb5
167 changed files with 5068 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 web_beyhan: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}
}
}

4
caddy/Dockerfile Normal file
View File

@@ -0,0 +1,4 @@
FROM caddy:2
# Build context repo root'u (.) olduğu için caddy/Caddyfile yolu kullanıyoruz
COPY caddy/Caddyfile /etc/caddy/Caddyfile