Files
it-smi/apps/web/Caddyfile
T
arswarog fc13c66b0d ci: переезд на репозиторий jt4d/jt4d
Имена образов и стендов берутся из github.repository, домен стенда —
*.jt4d.jt4d.ru.net.
2026-10-29 14:23:52 +03:00

26 lines
520 B
Caddyfile

:80 {
respond /health 200 {
body "OK"
close
}
}
jt4d.ru, http://*.jt4d.jt4d.ru.net {
root * /app
encode gzip
# Обработка API
handle /api/* {
reverse_proxy api:5000
}
# Обработка остального (SPA)
handle {
try_files {path} /index.html
file_server
@static path *.js *.css *.woff *.woff2 *.svg *.png *.jpg *.jpeg *.gif *.ico
header @static Cache-Control "public, max-age=31536000, immutable"
}
}