Skip to content

外网服务器使用Caddy部署,Websocket无法连接 #879

Closed Answered by ysy95109
ysy95109 asked this question in Q&A
Discussion options

You must be logged in to vote

解决了,把ReverseProxy里的东西全都删掉就好了,Caddy会自动处理,不需要手动加那些header。如下:

:80 【此处是我的域名】{
  route {
    reverse_proxy http://127.0.0.1:7860
  }
}

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by ysy95109
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant