Adjust example for clarity
Updated the example configuration for clarity.
This commit is contained in:
@@ -9,24 +9,27 @@ Install Traefik via your preferred method. You can read the official [docker qui
|
|||||||
## Configuration
|
## Configuration
|
||||||
You only have to do any one of these methods.
|
You only have to do any one of these methods.
|
||||||
|
|
||||||
Be sure to change the `your.server.name` to your actual tuwunel domain. and the certresolver should be changed to whatever you named it in your traefik config.
|
Be sure to change the `your.server.name` to your actual tuwunel domain. and the `yourcertresolver` should be changed to whatever you named it in your traefik config.
|
||||||
### Labels
|
### Labels
|
||||||
To use labels with traefik you need to configure a [docker provider](https://doc.traefik.io/traefik/reference/install-configuration/providers/docker/).
|
To use labels with traefik you need to configure a [docker provider](https://doc.traefik.io/traefik/reference/install-configuration/providers/docker/).
|
||||||
|
|
||||||
Then add the labels in your tuwunel's docker compose file.
|
Then add the labels in your tuwunel's docker compose file.
|
||||||
```yaml
|
```yaml
|
||||||
labels:
|
services:
|
||||||
- "traefik.enable=true"
|
tuwunel:
|
||||||
- "traefik.http.routers.tuwunel.entrypoints=web"
|
# ...
|
||||||
- "traefik.http.routers.tuwunel.rule=Host(`your.server.name`)"
|
labels:
|
||||||
- "traefik.http.routers.tuwunel.middlewares=https-redirect@file"
|
- "traefik.enable=true"
|
||||||
- "traefik.http.routers.tuwunel-secure.entrypoints=websecure"
|
- "traefik.http.routers.tuwunel.entrypoints=web"
|
||||||
- "traefik.http.routers.tuwunel-secure.rule=Host(`your.server.name`)"
|
- "traefik.http.routers.tuwunel.rule=Host(`your.server.name`)"
|
||||||
- "traefik.http.routers.tuwunel-secure.tls=true"
|
- "traefik.http.routers.tuwunel.middlewares=https-redirect@file"
|
||||||
- "traefik.http.routers.tuwunel-secure.service=tuwunel"
|
- "traefik.http.routers.tuwunel-secure.entrypoints=websecure"
|
||||||
- "traefik.http.services.tuwunel.loadbalancer.server.port=6167"
|
- "traefik.http.routers.tuwunel-secure.rule=Host(`your.server.name`)"
|
||||||
- "traefik.http.routers.tuwunel-secure.tls.certresolver=letsencrypt"
|
- "traefik.http.routers.tuwunel-secure.tls=true"
|
||||||
- "traefik.docker.network=proxy"
|
- "traefik.http.routers.tuwunel-secure.service=tuwunel"
|
||||||
|
- "traefik.http.services.tuwunel.loadbalancer.server.port=6167"
|
||||||
|
- "traefik.http.routers.tuwunel-secure.tls.certresolver=yourcertresolver"
|
||||||
|
- "traefik.docker.network=proxy"
|
||||||
```
|
```
|
||||||
### Config File
|
### Config File
|
||||||
To use the config file you need to configure a [file provider](https://doc.traefik.io/traefik/reference/install-configuration/providers/others/file/).
|
To use the config file you need to configure a [file provider](https://doc.traefik.io/traefik/reference/install-configuration/providers/others/file/).
|
||||||
@@ -43,7 +46,7 @@ http:
|
|||||||
middlewares:
|
middlewares:
|
||||||
- https-redirect
|
- https-redirect
|
||||||
tls:
|
tls:
|
||||||
certResolver: "letsencrypt"
|
certResolver: "yourcertresolver"
|
||||||
service: tuwunel
|
service: tuwunel
|
||||||
services:
|
services:
|
||||||
tuwunel:
|
tuwunel:
|
||||||
|
|||||||
Reference in New Issue
Block a user