b0f5d6a51c
Split platform admin and ops APIs into standalone admin-server.mjs with network guards; simplify billing to RMB token pricing, refactor user auth, and add rsync deploy plus local-test scripts and docs. Co-authored-by: Cursor <cursoragent@cursor.com>
19 lines
532 B
Caddyfile
19 lines
532 B
Caddyfile
# g2.tkmind.cn 负载均衡:Studio 本机 H5 (:8081) 主 + 105 portal (经正向隧道 :18080) 灰度副
|
||
# 权重 19:1 ≈ 95% / 5%;active 健康检查 /api/status,挂掉自动摘除
|
||
:8090 {
|
||
reverse_proxy {
|
||
to 127.0.0.1:8081 127.0.0.1:18080
|
||
lb_policy weighted_round_robin 19 1
|
||
header_down +X-Memind-Upstream {http.reverse_proxy.upstream.hostport}
|
||
health_uri /api/status
|
||
health_interval 10s
|
||
health_timeout 5s
|
||
health_status 200
|
||
flush_interval -1
|
||
transport http {
|
||
read_timeout 0
|
||
write_timeout 0
|
||
}
|
||
}
|
||
}
|