Files
memind/scripts/g2-lb.Caddyfile
T
Your Name b0f5d6a51c Extract memind_adm admin server, add local dev tooling, and remove image-generation.
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>
2026-06-17 16:39:39 -07:00

19 lines
532 B
Caddyfile
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 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
}
}
}