mirror of
https://github.com/wasrusgen/zov-tech.git
synced 2026-06-03 15:24:48 +00:00
docker-compose.staging.yml — backend-staging на порту 8001. .env.staging.example — шаблон с отдельным SHEET_ID. Caddyfile.staging.snippet — staging.api.wasrusgen1.pro. scripts/deploy-staging.sh — один скрипт для деплоя staging. app.js: BACKEND_URL читается из ?backend= параметра URL. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
25 lines
717 B
Caddyfile
25 lines
717 B
Caddyfile
# Staging backend — добавить в основной Caddyfile.
|
|
# После добавления: sudo systemctl reload caddy
|
|
#
|
|
# Убедиться что DNS: staging.api.wasrusgen1.pro → IP этого VPS
|
|
|
|
staging.api.wasrusgen1.pro {
|
|
reverse_proxy localhost:8001
|
|
|
|
encode zstd gzip
|
|
header {
|
|
Strict-Transport-Security "max-age=31536000; includeSubDomains"
|
|
X-Content-Type-Options "nosniff"
|
|
Referrer-Policy "strict-origin-when-cross-origin"
|
|
-Server
|
|
# Помечаем staging-ответы
|
|
X-Environment "staging"
|
|
}
|
|
log {
|
|
output file /data/zov-staging-access.log {
|
|
roll_size 5mb
|
|
roll_keep 3
|
|
}
|
|
}
|
|
}
|