hongshi-files commited on
Commit
59083b0
·
verified ·
1 Parent(s): d7b851f

Create config.yaml

Browse files
Files changed (1) hide show
  1. config.yaml +18 -0
config.yaml ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ listen: "0.0.0.0:17285"
2
+
3
+ # 允许任何来源调用(HuggingFace 必须)
4
+ cors:
5
+ enabled: true
6
+ allow_origins: ["*"]
7
+ allow_methods: ["GET", "POST", "OPTIONS"]
8
+ allow_headers: ["*"]
9
+
10
+ # 转发规则:main.ts 会向 dynamic-proxy POST:
11
+ # { "target": "https://xxx", "payload": {...} }
12
+ # 所以我们只需要允许 proxy 的 / 端点
13
+ routes:
14
+ - route: "/"
15
+ upstream: ""
16
+ strip_path: false
17
+ preserve_host: false
18
+ enable_websocket: false