feat: add Traefik dynamic config — fix prod Bad Gateway (wrong NodePorts)
This commit is contained in:
@@ -0,0 +1,54 @@
|
||||
http:
|
||||
routers:
|
||||
lpt-fe-dev:
|
||||
rule: "Host(`lpt-dev.cat-shark.xyz`)"
|
||||
entrypoints: websecure
|
||||
tls:
|
||||
certResolver: le
|
||||
service: lpt-fe-dev
|
||||
lpt-api-dev:
|
||||
rule: "Host(`lpt-dev.cat-shark.xyz`) && PathPrefix(`/api`)"
|
||||
entrypoints: websecure
|
||||
tls:
|
||||
certResolver: le
|
||||
middlewares:
|
||||
- strip-api-prefix
|
||||
service: lpt-api-dev
|
||||
lpt-fe-prod:
|
||||
rule: "Host(`lpt.cat-shark.xyz`)"
|
||||
entrypoints: websecure
|
||||
tls:
|
||||
certResolver: le
|
||||
service: lpt-fe-prod
|
||||
lpt-api-prod:
|
||||
rule: "Host(`lpt.cat-shark.xyz`) && PathPrefix(`/api`)"
|
||||
entrypoints: websecure
|
||||
tls:
|
||||
certResolver: le
|
||||
middlewares:
|
||||
- strip-api-prefix
|
||||
service: lpt-api-prod
|
||||
|
||||
middlewares:
|
||||
strip-api-prefix:
|
||||
stripPrefix:
|
||||
prefixes:
|
||||
- "/api"
|
||||
|
||||
services:
|
||||
lpt-fe-dev:
|
||||
loadBalancer:
|
||||
servers:
|
||||
- url: "http://192.168.123.199:30080"
|
||||
lpt-api-dev:
|
||||
loadBalancer:
|
||||
servers:
|
||||
- url: "http://192.168.123.199:30082"
|
||||
lpt-fe-prod:
|
||||
loadBalancer:
|
||||
servers:
|
||||
- url: "http://192.168.123.199:30180"
|
||||
lpt-api-prod:
|
||||
loadBalancer:
|
||||
servers:
|
||||
- url: "http://192.168.123.199:30182"
|
||||
Reference in New Issue
Block a user