Merge pull request #1413 from AstralDestiny/traefik-dynamic_config-cleanup

Update Traefik to not declare an unnecessary path and make the config cleaner.
This commit is contained in:
Owen Schwartz
2025-09-04 10:46:42 -07:00
committed by GitHub

View File

@@ -16,8 +16,9 @@ http:
# Next.js router (handles everything except API and WebSocket paths)
next-router:
rule: "Host(`{{.DashboardDomain}}`) && !PathPrefix(`/api/v1`)"
rule: "Host(`{{.DashboardDomain}}`)"
service: next-service
priority: 10
entryPoints:
- websecure
tls:
@@ -27,15 +28,7 @@ http:
api-router:
rule: "Host(`{{.DashboardDomain}}`) && PathPrefix(`/api/v1`)"
service: api-service
entryPoints:
- websecure
tls:
certResolver: letsencrypt
# WebSocket router
ws-router:
rule: "Host(`{{.DashboardDomain}}`)"
service: api-service
priority: 100
entryPoints:
- websecure
tls: