Update Traefik to not declare an unnecessary path and make the config cleaner.

This commit is contained in:
AstralDestiny
2025-09-04 11:44:20 -04:00
committed by GitHub
parent cd79e77576
commit e6314bee35

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: