Update Traefik configuration with enhanced routing rules, local IP allowlist for dashboard access, new strip prefix middleware, and extended CORS origins. Add ACME account configurations for certificate management.

This commit is contained in:
Jeppe Bundgaard
2026-03-18 10:58:17 +01:00
parent db42f9ef95
commit f04f79e3da
3 changed files with 40 additions and 4 deletions
+8 -2
View File
@@ -28,7 +28,7 @@ http:
- main: api.truckwash.dk
api-preflight-io:
rule: Host(`api.truckwash.io`) && Method(`OPTIONS`)
rule: (Host(`api.truckwash.io`) || Host(`localhost`)) && Method(`OPTIONS`)
entryPoints: [websecure, websecure-staging]
middlewares: [secure-headers]
service: noop@internal
@@ -61,7 +61,7 @@ http:
users:
- "truckwash:$2y$05$DYcMFqMPgEFWAJQioc.F3.v9ppi9bReAi/aQzoOlWqMyhIysKlDCC"
dashboard-allow-local:
ipWhiteList:
ipAllowList:
sourceRange:
- 127.0.0.1/32
- 10.0.0.0/8
@@ -87,6 +87,8 @@ http:
- "https://staging.truckwash.io"
- "http://localhost"
- "https://localhost"
- "http://localhost:4433"
- "https://localhost:4433"
- "https://twdev.jeppeb.dk"
- "http://localhost:5173"
accessControlAllowMethods:
@@ -104,6 +106,10 @@ http:
rateLimit:
average: 100
burst: 200
strip-api-prefix:
stripPrefix:
prefixes:
- "/api"
services:
cloud-svc: