Put the site behind NPM via proxynet, add Strato DynDNS updater

- eb-blazor joins the external network proxynet and publishes no host port;
  NPM forwards to eb-blazor:8080 by name
- Stack network gets the fixed name eb-internal (Compose Manager derives the
  project name from the stack folder); the dev overlay resets it and turns
  proxynet into a local network
- eb-ddns keeps the A record of elternbeirat-igmh.info at Strato current
- docs/unraid-infrastructure.md records the actual Unraid state

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
TomandClaude Opus 5.5 committed 2026-10-10 00:12:18 +02:00
1 parent 53cee04396
commit 4968b62f06
6 files changed
+267 -28

No files matched your search

+38
View File
@@ -82,6 +82,44 @@ to the outside. NPM terminates TLS and is the only path to the container.
`UseForwardedHeaders` with emptied `KnownNetworks`/`KnownProxies` is correct because
the container has no port mapping and is reachable only through NPM.
## AE-5: DynDNS as a container in the stack (ddns-updater)
**Decision:** The A record of `elternbeirat-igmh.info` at Strato is kept current by
`eb-ddns` ([ddns-updater](https://github.com/qdm12/ddns-updater)), a third service
in `compose.yaml`. Its whole configuration is the `CONFIG` environment variable in
that file; only the DynDNS password comes from the stack's env
(`STRATO_DYNDNS_PASSWORD`).
**Rationale:** The site runs on the private connection, whose public IP changes.
The FritzBox has a single DynDNS slot and it already serves `anticarnist.de`, so
the update has to run elsewhere. Putting it in the stack means it moves with the
site. ddns-updater was chosen over ddclient because of where the config lives:
ddclient needs a config file, which would have to sit next to the stack on the
server (the Unraid stack is maintained by hand, not from a checkout) and be set up
again whenever the container or its folder is deleted. ddns-updater takes the whole
config from one environment variable, so `compose.yaml` alone describes it and the
container can be deleted and recreated without any setup — only the one secret
stays outside the repo.
**Consequence:** No volume, so ddns-updater keeps no update history across
recreations; it just checks the IP again on start. The dev overlay disables the
service, so a local `up` never changes the public DNS. Setup:
`deployment.md`.
## AE-6: No proxy in the stack
**Decision:** NPM is **not** part of `eb-stack`. The site uses the NPM that already
runs on Unraid.
**Rationale:** A host has only one 80/443, and the router forwards it to one target.
A second NPM in the stack would collide with the existing one, which also serves
`anticarnist.de`. Which proxy owns 80/443 is a property of the host, not of the
site.
**Consequence:** Moving the site to another host means setting up a proxy there and
recreating one proxy host (domain → app, Let's Encrypt). The steps are in
`deployment.md`.
## Rejected alternatives (for AE-1)
| Alternative | Why not |