实现 API Key 负载均衡,修复 WebSocket session 失效问题

This commit is contained in:
RockYang
2023-03-22 13:51:27 +08:00
parent 97acfe57e7
commit 20bdf12180
10 changed files with 118 additions and 42 deletions

View File

@@ -46,7 +46,7 @@ func NewDefaultConfig() *Config {
Session: Session{
SecretKey: utils.RandString(64),
Name: "CHAT_GPT_SESSION_ID",
Name: "CHAT_SESSION_ID",
Domain: "",
Path: "/",
MaxAge: 86400,