refactor: split dynamic config by site

This commit is contained in:
Alfredo Di Stasio
2026-06-30 10:47:37 +02:00
parent 1509c1e5fd
commit 86680f71f3
9 changed files with 89 additions and 66 deletions
+4 -2
View File
@@ -8,7 +8,7 @@
## Configuration
Update `config/dynamic/tcp-services.yml` with the required SNI hostnames and backend addresses:
Add or update a per-site file under `config/dynamic/` with the required hostnames and backend addresses:
```yaml
tcp:
@@ -28,7 +28,9 @@ tcp:
This deployment uses host networking so Traefik can reach services bound to host loopback addresses such as `127.0.0.1:8443`.
HTTP traffic is routed separately with HTTP `Host(...)` rules on port `80`. Configure the HTTP services in `config/dynamic/tcp-services.yml` to point at the local backend port that should handle redirects and ACME challenge paths.
HTTP traffic is routed separately with HTTP `Host(...)` rules on port `80`. Configure the HTTP service in the same per-site file to point at the local backend port that should handle redirects and ACME challenge paths.
Keep each site's HTTP and TCP routers in the same dynamic file, for example `config/dynamic/lab-younerd.yml` or `config/dynamic/azionelab.yml`.
The `./config` directory is the host-based configuration volume. It is mounted read-only into the container: