Skip to content

Commit

Permalink
build: add traefik reverse proxy config (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
fuzoh authored Jan 17, 2025
1 parent ba8b604 commit 583d477
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions traefik-dynamic-config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# A traefik dynamic configuration you can use with this project

http:
routers:
toudou-api:
rule: Host(`my.domain`)
entryPoints:
- websecure
tls:
certResolver: yourCertResolver
service: toudou-api
middlewares:
- compression
toudou-swagger:
rule: Host(`swagger.my.domain`)
entryPoints:
- websecure
tls:
certResolver: yourCertResolver
service: toudou-swagger
middlewares:
- compression
services:
toudou-api:
loadBalancer:
servers:
- url: http://127.0.0.1:3000
passHostHeader: true
toudou-swagger:
loadBalancer:
servers:
- url: http://127.0.0.1:8080
passHostHeader: true

0 comments on commit 583d477

Please sign in to comment.