From 0073eea8b834922cd344bb40b6de0cab17208687 Mon Sep 17 00:00:00 2001 From: admin Date: Sat, 16 May 2026 13:56:43 +0000 Subject: [PATCH] =?UTF-8?q?=D0=97=D0=B0=D0=B3=D1=80=D1=83=D0=B7=D0=B8?= =?UTF-8?q?=D1=82=D1=8C=20=D1=84=D0=B0=D0=B9=D0=BB=D1=8B=20=D0=B2=20=C2=AB?= =?UTF-8?q?/=C2=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Caddyfile | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 Caddyfile 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 +# }