Files
sundynix-micro-be/app/gateway/etc/gateway.yaml
T
2026-04-27 21:23:13 +08:00

37 lines
611 B
YAML

Name: gateway
Host: 0.0.0.0
Port: 8888
Log:
Encoding: plain
Mode: console
# 跨域配置
Cors:
Enable: true
AllowOrigins:
- "*"
AllowMethods:
- GET
- POST
- PUT
- DELETE
- OPTIONS
AllowHeaders:
- Content-Type
- Authorization
- X-Requested-With
# 上游服务路由表
Upstreams:
- Prefix: /api/user
Target: http://127.0.0.1:9001
- Prefix: /api/file
Target: http://127.0.0.1:9002
- Prefix: /api/sys
Target: http://127.0.0.1:9003
- Prefix: /api/plant
Target: http://127.0.0.1:9004
- Prefix: /api/radio
Target: http://127.0.0.1:9005