8881214213
Mechanical, behaviour-preserving removal of Stage N / TODO-N / phase (RN) references from comments, doc-comments, service READMEs, the current-state docs (ARCHITECTURE, FUNCTIONAL+_ru, TESTING, UI_DESIGN), config-file comments, and the .fbs/.proto schema comments. PLAN.md / PRERELEASE.md / CLAUDE.md keep the stage history. - Rename the only stage-named identifiers: registerStage8 -> registerSocialOps, registerStage11 -> registerLinkOps (gateway transcode). - Split stage6_test.go: TestEmailLoginFlow -> email_test.go, TestGuestAutoMatchLeavesNoStats (+ provisionGuest) -> account_test.go. - Regenerated proto bindings (push.pb.go, telegram_grpc.pb.go) from the de-staged .proto comments; FB Go/TS bindings unchanged (flatc strips schema comments). go build/vet/gofmt clean across modules; integration typecheck and pnpm check green.
28 lines
972 B
Caddyfile
28 lines
972 B
Caddyfile
# Static landing container. Serves the public landing page and the built
|
|
# assets it references at /; the game SPA (/app/, /telegram/) and the Connect
|
|
# edge stay on the gateway. The contour caddy routes the catch-all here, so
|
|
# stray public paths are absorbed by static file serving and never reach the Go
|
|
# edge. This file is baked into the image at build time (gateway/Dockerfile,
|
|
# target `landing`), not bind-mounted.
|
|
{
|
|
admin off
|
|
}
|
|
|
|
:80 {
|
|
root * /srv
|
|
encode zstd gzip
|
|
|
|
# Mirror the gateway webui caching: hash-named build assets are immutable,
|
|
# every HTML shell is no-cache so a new deploy is picked up immediately.
|
|
header /assets/* Cache-Control "public, max-age=31536000, immutable"
|
|
@shell not path /assets/*
|
|
header @shell Cache-Control "no-cache"
|
|
|
|
# An unknown path falls back to the landing shell (the gateway's old "/"
|
|
# behaviour); "/" itself resolves through the index below.
|
|
try_files {path} /landing.html
|
|
file_server {
|
|
index landing.html
|
|
}
|
|
}
|