generated from bisco/codex-bootstrap
feat: configure sni tcp routes
This commit is contained in:
+14
-4
@@ -8,12 +8,22 @@
|
||||
|
||||
## Configuration
|
||||
|
||||
Update `config/dynamic/tcp-services.yml` with the real backend addresses:
|
||||
Update `config/dynamic/tcp-services.yml` with the required SNI hostnames and backend addresses:
|
||||
|
||||
```yaml
|
||||
servers:
|
||||
- address: "10.0.0.10:443"
|
||||
- address: "10.0.0.11:443"
|
||||
tcp:
|
||||
routers:
|
||||
example:
|
||||
rule: "HostSNI(`example.org`)"
|
||||
service: example
|
||||
tls:
|
||||
passthrough: true
|
||||
|
||||
services:
|
||||
example:
|
||||
loadBalancer:
|
||||
servers:
|
||||
- address: "host.docker.internal:8443"
|
||||
```
|
||||
|
||||
If a backend listens on the Docker host, use `host.docker.internal:PORT`. Compose maps that name through Docker's `host-gateway` feature.
|
||||
|
||||
Reference in New Issue
Block a user