Fix the tunnel's error 1000 and notes sync, move maintenance to 05:00
nginx's network aliases for the public names vanish while it is stopped, so cloudflared fell through to public DNS, got Cloudflare's own IPs and visitors saw error 1000 on every deploy. nginx now has a fixed address and cloudflared pins both names to it, so a stopped nginx is a plain 502. The same aliases sent silverbullet-git's pushes to ssh://DOMAIN:2222 to nginx, which has no 2222: nothing has pushed since 2026-10-15. It now maps DOMAIN to the host gateway, where gitea publishes that port. The weekly maintenance restarts dockerd and every container; at 01:00 it kept catching late-night SilverBullet saves. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
@@ -275,6 +275,17 @@ against a name it covers. `https://nginx` would fail that check and need No
|
||||
TLS Verify. The flip side: **an expired certificate now takes the tunnel down
|
||||
with a 502**, which is why renewal over DNS-01 (step 5) matters.
|
||||
|
||||
An alias only exists while nginx is running, so cloudflared also pins both
|
||||
names to nginx's fixed address (`172.28.255.251`) with `extra_hosts`. Without
|
||||
that, while nginx is stopped for a deploy or the weekly maintenance, the name
|
||||
falls through to public DNS, resolves to Cloudflare itself, and visitors see
|
||||
Cloudflare error 1000 instead of a 502.
|
||||
|
||||
The aliases have a side effect for anything else on `app-network` that uses
|
||||
the public name for a port nginx does not serve. `silverbullet-git` pushes to
|
||||
Gitea's SSH on `<DOMAIN>:2222`, so it maps `<DOMAIN>` to the host gateway
|
||||
instead, where Gitea publishes that port.
|
||||
|
||||
Setup, once:
|
||||
|
||||
1. Cloudflare dashboard → the domain must be on Cloudflare DNS.
|
||||
|
||||
Reference in New Issue
Block a user