Some checks failed
CI / backend (push) Successful in 1m40s
Deploy / changes (push) Successful in 5s
Deploy / build-backend (push) Failing after 11s
Deploy / build-worker (push) Failing after 11s
CI / frontend (push) Successful in 2m13s
Deploy / build-frontend (push) Failing after 12s
Deploy / deploy (push) Failing after 0s
64 lines
1.6 KiB
Caddyfile
64 lines
1.6 KiB
Caddyfile
# Caddy config.
|
|
#
|
|
# - gendsgn.ru — main production site, auto-TLS via Let's Encrypt.
|
|
# - www.gendsgn.ru — 301 redirect to apex (canonical URL).
|
|
# - :80 — fallback for raw IP access. Will be removed once everyone uses the domain.
|
|
#
|
|
# `handle /api/*` (NOT `handle_path`) — we keep the /api prefix because
|
|
# the FastAPI router is mounted at /api/v1/*.
|
|
|
|
gendsgn.ru {
|
|
encode zstd gzip
|
|
|
|
handle /api/* {
|
|
reverse_proxy backend:8000
|
|
}
|
|
|
|
handle /health {
|
|
reverse_proxy backend:8000
|
|
}
|
|
|
|
handle {
|
|
reverse_proxy frontend:3000
|
|
}
|
|
}
|
|
|
|
www.gendsgn.ru {
|
|
redir https://gendsgn.ru{uri} permanent
|
|
}
|
|
|
|
# Obsidian Self-hosted LiveSync (CouchDB backend).
|
|
# Auto-TLS Let's Encrypt. CORS уже включён на стороне CouchDB через bootstrap
|
|
# (см. scripts/setup-couchdb.sh). Basic-auth — на стороне CouchDB (admin user).
|
|
#
|
|
# DNS: A-record obsidian.gendsgn.ru → IP VPS.
|
|
# Клиенты Obsidian + Self-hosted LiveSync plugin указывают на этот URL.
|
|
obsidian.gendsgn.ru {
|
|
encode zstd gzip
|
|
|
|
reverse_proxy couchdb:5984 {
|
|
# Большие документы (vault attachments / images) — увеличиваем timeout
|
|
transport http {
|
|
response_header_timeout 120s
|
|
}
|
|
}
|
|
}
|
|
|
|
# Plain HTTP by IP — kept for ssh-tunnel / debugging.
|
|
# Caddy issues no TLS here (no hostname).
|
|
:80 {
|
|
encode zstd gzip
|
|
|
|
handle /api/* {
|
|
reverse_proxy backend:8000
|
|
}
|
|
|
|
handle /health {
|
|
reverse_proxy backend:8000
|
|
}
|
|
|
|
handle {
|
|
reverse_proxy frontend:3000
|
|
}
|
|
}
|
|
# Test deploy flow 2026-05-15T21:43:32Z
|