Caddy 配置保留带下划线的请求头

如果使用 Nginx 反代 Sub2API 需要保留带下划线的请求头(如 session_idconversation_idthread_id),否则多账号环境下的粘性会话(Sticky Session)会失效。
Nginx
http {
    underscores_in_headers on;
}

Caddy(需最新 master)
xcaddy build master --output /usr/bin/caddy

servers :443 {
    expected_underscore_headers session_id conversation_id thread_id
}


Sub2API:https://github.com/Wei-Shaw/sub2api/issues/2784
Caddy:https://github.com/caddyserver/caddy/issues/7808

服务器合集 合集 群组 恰饭 联系推广

#redis #caddy #服务器 #证书 #tls #数据库