Skip to content

Commit

Permalink
replace regex with domain to download certs
Browse files Browse the repository at this point in the history
  • Loading branch information
LegitCamper committed Sep 13, 2024
1 parent ffea5f1 commit fe917a7
Showing 1 changed file with 16 additions and 17 deletions.
33 changes: 16 additions & 17 deletions docker/traefik/dynamic.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,18 @@ trustForwardHeader = true
authResponseHeaders = ["X-Forwarded-User"]
[http.middlewares.auth.forwardAuth.tls]
insecureSkipVerify = true
caOptional = true

[http.routers.traefik]
middlewares = ["auth"]
service = "api@internal"
rule = "HostRegexp(`^traefik.+`)"
rule = "Host(`traefik.sawyer.services`)"
[http.routers.traefik.tls]
certResolver = "cloudflare"

[http.routers.komodo]
middlewares = ["auth"]
service = "komodo"
rule = "HostRegexp(`^komodo.+`)"
rule = "Host(`komodo.sawyer.services`)"
[http.routers.komodo.tls]
certResolver = "cloudflare"

Expand All @@ -28,7 +27,7 @@ url = "http://komodo-core:9120"
[http.routers.ollama]
middlewares = ["auth"]
service = "ollama"
rule = "HostRegexp(`^ollama.+`)"
rule = "Host(`ollama.sawyer.services`)"
[http.routers.ollama.tls]
certResolver = "cloudflare"

Expand All @@ -38,7 +37,7 @@ url = "http://ollama:8080"

[http.routers.ollama-api]
service = "ollama-api"
rule = "HostRegexp(`^ollama-api.+`)"
rule = "Host(`ollama-api.sawyer.services`)"
[http.routers.ollama-api.tls]
certResolver = "cloudflare"

Expand All @@ -48,7 +47,7 @@ url = "http://ollama-api:11434"

[http.routers.jellyfin]
service = "jellyfin"
rule = "HostRegexp(`^jellyfin.+`)"
rule = "Host(`jellyfin.sawyer.services`)"
[http.routers.jellyfin.tls]
certResolver = "cloudflare"

Expand All @@ -59,7 +58,7 @@ url = "http://jellyfin:8096"
[http.routers.transmission]
middlewares = ["auth"]
service = "transmission"
rule = "HostRegexp(`^transmission.+`) || HostRegexp(`^torrent.+`)"
rule = "Host(`transmission.sawyer.services`) || Host(`torrent.sawyer.services`)"
[http.routers.transmission.tls]
certResolver = "cloudflare"

Expand All @@ -70,7 +69,7 @@ url = "http://transmission-openvpn:9091"
[http.routers.dashy]
middlewares = ["auth"]
service = "dashy"
rule = "HostRegexp(`^dashy.+`) || HostRegexp(`^.+`)"
rule = "Host(`dashy.sawyer.services`) || Host(`sawyer.services`)"
[http.routers.dashy.tls]
certResolver = "cloudflare"

Expand All @@ -80,7 +79,7 @@ url = "http://dashy:80"

[http.routers.registry]
service = "registry"
rule = "HostRegexp(`^registry.+`)"
rule = "Host(`registry.sawyer.services`)"
[http.routers.registry.tls]
certResolver = "cloudflare"

Expand All @@ -90,7 +89,7 @@ url = "http://registry:5000"

[http.routers.searxng]
service = "searxng"
rule = "HostRegexp(`^searxng.+`) || HostRegexp(`^search.+`)"
rule = "Host(`searxng.sawyer.services`) || Host(`search.sawyer.services`)"
[http.routers.searxng.tls]
certResolver = "cloudflare"

Expand All @@ -101,7 +100,7 @@ url = "http://searxng:8080"
[http.routers.smokeping]
middlewares = ["auth"]
service = "smokeping"
rule = "HostRegexp(`^smokeping.+`)"
rule = "Host(`smokeping.sawyer.services`)"
[http.routers.smokeping.tls]
certResolver = "cloudflare"

Expand All @@ -111,7 +110,7 @@ url = "http://smokeping:80"

[http.routers.languagetool]
service = "languagetool"
rule = "HostRegexp(`^languagetool.+`)"
rule = "Host(`languagetool.sawyer.services`)"
[http.routers.languagetool.tls]
certResolver = "cloudflare"

Expand All @@ -122,7 +121,7 @@ url = "http://languagetool:8010"
[http.routers.uptime-kuma]
middlewares = ["auth"]
service = "uptime-kuma"
rule = "HostRegexp(`^uptime-kuma.+`)"
rule = "Host(`uptime-kuma.sawyer.services`)"
[http.routers.uptime-kuma.tls]
certResolver = "cloudflare"

Expand All @@ -133,7 +132,7 @@ url = "http://uptime-kuma:3001"
[http.routers.adguard]
middlewares = ["auth"]
service = "adguard"
rule = "HostRegexp(`^adguard.+`) || HostRegexp(`^adguardhome.+`)"
rule = "Host(`adguard.sawyer.services`) || Host(`adguardhome.sawyer.services`)"
[http.routers.adguard.tls]
certResolver = "cloudflare"

Expand All @@ -144,7 +143,7 @@ url = "http://adguardhome:80"
[http.routers.doh]
entryPoints = ["websecure"]
service = "doh"
rule = "HostRegexp(`^dns.+`)"
rule = "Host(`dns.sawyer.services`)"
[http.routers.doh.tls]
certResolver = "cloudflare"

Expand All @@ -155,10 +154,10 @@ url = "http://adguard:443"
[tcp.routers.dot]
entryPoints = ["dot"]
service = "dot"
rule = "HostRegexp(`^dns.+`)"
rule = "HostSNI(`dns.sawyer.services`)"
[tcp.routers.dot.tls]
certResolver = "cloudflare"

[tcp.services.dot.loadBalancer]
[[tcp.services.dot.loadBalancer.servers]]
url = "tcp://adguard:853"
address = "adguard:853"

0 comments on commit fe917a7

Please sign in to comment.