Chanzhaoyu / chatgpt-web

用 Express 和 Vue3 搭建的 ChatGPT 演示网页

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Docker 部署 反向代理到域名 Session 401 Unauthorized

ViaVxxx opened this issue · comments

使用dokcer部署到 xxx.com/gpt 后,打开页面显示 500 Server error,F12查看网络信息发现是 session 状态码 401 错误,应该是认证问题导致。这方面不大了解,有没有大佬指点指点

Nginx 配置:

location ^~ /gpt {
    proxy_pass http://127.0.0.1:40024/; 
    
    proxy_set_header Host $host; 
    proxy_set_header Connection "upgrade";
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header X-Real-IP $remote_addr; 
    proxy_set_header REMOTE-HOST $remote_addr;
    proxy_set_header X-Forwarded-Proto $scheme;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; 
    proxy_http_version 1.1; 
    add_header Cache-Control no-cache;   
}

This issue is stale because it has been open for 10 days with no activity.

This issue was closed because it has been inactive for 2 days since being marked as stale.