diff --git a/Caddyfile b/Caddyfile new file mode 100644 index 0000000..8838cde --- /dev/null +++ b/Caddyfile @@ -0,0 +1,32 @@ +{ + email {$CADDY_EMAIL:admin@localhost} +} + +# HTTP → приложение (для локальной разработки) +:80 { + encode gzip zstd + + @health path /health + handle @health { + reverse_proxy app:8080 + } + + handle /static/* { + reverse_proxy app:8080 + } + + handle { + reverse_proxy app:8080 + } + + log { + output stdout + format console + } +} + +# HTTPS (раскомментируйте домен для продакшена) +# {$SITE_DOMAIN} { +# encode gzip zstd +# reverse_proxy app:8080 +# }