fileconf/file.toml

This commit is contained in:
Czechman 2022-11-28 02:27:55 +01:00
parent 60bbc253b1
commit 94cafb1e40
3 changed files with 14 additions and 13 deletions

12
config/fileconf/file.toml Normal file
View File

@ -0,0 +1,12 @@
[http.routers.utk]
rule = "Host(`utk.czechman.dynvpn.de`) && Path(`/`)"
service = "service-utk"
[https.routers.utk]
rule = "Host(`utk.czechman.dynvpn.de`) && Path(`/`)"
service = "service-utk"
[https.services]
[https.services.service-utk.loadBalancer]
[[https.services.service-utk.loadBalancer.servers]]
url = "http://192.168.2.2:9001/"

View File

@ -46,18 +46,6 @@
main = "czechman.dynvpn.de"
# sans = ["*.czechman.dynvpn.de"]
[http.routers.utk]
rule = "Host(`utk.czechman.dynvpn.de`) && Path(`/`)"
service = "service-utk"
[https.routers.utk]
rule = "Host(`utk.czechman.dynvpn.de`) && Path(`/`)"
service = "service-utk"
[https.services]
[https.services.service-utk.loadBalancer]
[[https.services.service-utk.loadBalancer.servers]]
url = "http://192.168.2.2:9001/"
################################################################
# Traefik logs configuration
@ -185,7 +173,7 @@
network = "traefik"
[providers]
[providers.file]
directory = "/etc/traefik/"
directory = "/etc/traefik/fileconf/file.toml"
watch = true
# Enable ACME (Let's Encrypt): automatic SSL.

View File

@ -28,4 +28,5 @@ services:
- /var/run/docker.sock:/var/run/docker.sock
- /docker/traefik_v2x/config/traefik.toml:/etc/traefik/traefik.toml
- /docker/traefik_v2x/config/acme.json:/acme.json
- /docker/traefik_v2x/config/fileconf:/etc/traefik/fileconf