generated from bisco/codex-bootstrap
refactor: split dynamic config by site
This commit is contained in:
+4
-2
@@ -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:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user