feat(tls): issue server certificate from internal root CA

Generate a 10-year root CA in entrypoint.sh and sign the server leaf with it. Only the root CA is distributed to clients (including GPO); the leaf is served by the app and is reissued automatically when CERT_HOSTNAMES changes. Update the Windows installer, ZIP package, settings UI and docs for the two-tier scheme.
This commit is contained in:
dev
2026-10-22 18:09:30 +03:00
parent b5eeb5fbdf
commit ba32234217
9 changed files with 272 additions and 122 deletions
+1 -1
View File
@@ -201,7 +201,7 @@ curl -N "$BASE/api/events?token=$TOKEN"
- `start-tailscale.sh:16` — `tailscale funnel --bg --yes http://127.0.0.1:3003`. Funnel настроен именно на **HTTP 3003**, а не на HTTPS 3443 (в `AGENTS.md` упоминается 3443 — расхождение со скриптом).
- Адрес внутри tailnet и в интернете через Funnel: `https://whatido.<tailnet>.ts.net`.
- Сертификат для `.ts.net` выпускает сам Tailscale; самоподписанный `certs/cert.pem` для этого не используется.
- Сертификат для `.ts.net` выпускает сам Tailscale; внутренний `certs/cert.pem` (серверный, подписанный `certs/root-ca.pem`) для этого не используется.
- Альтернатива в `.env.example` — Cloudflare Tunnel: `CLOUDFLARE_TUNNEL_URL=http://app:3003` (тоже 3003).
### Глобальные middleware (порядок важен)