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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user