mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-05 19:20:12 +08:00
feat: handle dev server proxy by traefik
This commit is contained in:
1 parent
5e81db2759
commit
9c9456693d
3 files changed
+30
No files matched your search
@@ -0,0 +1,24 @@
|
||||
http:
|
||||
routers:
|
||||
frontend:
|
||||
rule: 'PathPrefix(`/`)'
|
||||
service: frontend
|
||||
entryPoints:
|
||||
- web
|
||||
|
||||
backend:
|
||||
rule: 'PathPrefix(`/api`, `/socket.io`, `/trpc`, `/api-docs`)'
|
||||
service: backend
|
||||
entryPoints:
|
||||
- web
|
||||
|
||||
services:
|
||||
frontend:
|
||||
loadBalancer:
|
||||
servers:
|
||||
- url: 'http://host.docker.internal:5173'
|
||||
|
||||
backend:
|
||||
loadBalancer:
|
||||
servers:
|
||||
- url: 'http://host.docker.internal:3000'
|
||||
Reference in new issue
Block a user