新部署了 docker 版,用域名访问后弹出提示“不要惊慌...”但用 ip 访问正常

本贴最后更新于 402 天前,其中的信息可能已经斗转星移

这是通过域名访问时遇到的问题:

【注:使用 ip+ 端口,正常使用,没有报这个提示。】

cecd4c548125eb5827bc456b5291ecb.png

以下是 docker 和 nginx 配置(应该是没问题的)。

97b331316d6c6a7e31445356aa38f46.png

查看 docker 日志里,一直在不断的输出日志,提示找不到 token

1700133398193.jpg

E 2023/11/16 19:24:44 serve.go:415: handle command failed: websocket: the client is not using the websocket protocol: 'upgrade' token not found in 'Connection' header
E 2023/11/16 19:24:46 serve.go:415: handle command failed: websocket: the client is not using the websocket protocol: 'upgrade' token not found in 'Connection' header
E 2023/11/16 19:24:49 serve.go:415: handle command failed: websocket: the client is not using the websocket protocol: 'upgrade' token not found in 'Connection' header
E 2023/11/16 19:24:51 serve.go:415: handle command failed: websocket: the client is not using the websocket protocol: 'upgrade' token not found in 'Connection' header
E 2023/11/16 19:24:52 serve.go:415: handle command failed: websocket: the client is not using the websocket protocol: 'upgrade' token not found in 'Connection' header
E 2023/11/16 19:24:56 serve.go:415: handle command failed: websocket: the client is not using the websocket protocol: 'upgrade' token not found in 'Connection' header
E 2023/11/16 19:24:58 serve.go:415: handle command failed: websocket: the client is not using the websocket protocol: 'upgrade' token not found in 'Connection' header
E 2023/11/16 19:24:59 serve.go:415: handle command failed: websocket: the client is not using the websocket protocol: 'upgrade' token not found in 'Connection' header
E 2023/11/16 19:25:02 serve.go:415: handle command failed: websocket: the client is not using the websocket protocol: 'upgrade' token not found in 'Connection' header
E 2023/11/16 19:25:07 serve.go:415: handle command failed: websocket: the client is not using the websocket protocol: 'upgrade' token not found in 'Connection' header
E 2023/11/16 19:25:08 serve.go:415: handle command failed: websocket: the client is not using the websocket protocol: 'upgrade' token not found in 'Connection' header
E 2023/11/16 19:25:09 serve.go:415: handle command failed: websocket: the client is not using the websocket protocol: 'upgrade' token not found in 'Connection' header
E 2023/11/16 19:25:13 serve.go:415: handle command failed: websocket: the client is not using the websocket protocol: 'upgrade' token not found in 'Connection' header
E 2023/11/16 19:25:16 serve.go:415: handle command failed: websocket: the client is not using the websocket protocol: 'upgrade' token not found in 'Connection' header
E 2023/11/16 19:25:17 serve.go:415: handle command failed: websocket: the client is not using the websocket protocol: 'upgrade' token not found in 'Connection' header
E 2023/11/16 19:25:18 serve.go:415: handle command failed: websocket: the client is not using the websocket protocol: 'upgrade' token not found in 'Connection' header
E 2023/11/16 19:25:21 serve.go:415: handle command failed: websocket: the client is not using the websocket protocol: 'upgrade' token not found in 'Connection' header
E 2023/11/16 19:25:31 serve.go:415: handle command failed: websocket: the client is not using the websocket protocol: 'upgrade' token not found in 'Connection' header
E 2023/11/16 19:25:31 serve.go:415: handle command failed: websocket: the client is not using the websocket protocol: 'upgrade' token not found in 'Connection' header
E 2023/11/16 19:25:31 serve.go:415: handle command failed: websocket: the client is not using the websocket protocol: 'upgrade' token not found in 'Connection' header
E 2023/11/16 19:25:37 serve.go:415: handle command failed: websocket: the client is not using the websocket protocol: 'upgrade' token not found in 'Connection' header
E 2023/11/16 19:25:37 serve.go:415: handle command failed: websocket: the client is not using the websocket protocol: 'upgrade' token not found in 'Connection' header
E 2023/11/16 19:25:40 serve.go:415: handle command failed: websocket: the client is not using the websocket protocol: 'upgrade' token not found in 'Connection' header
E 2023/11/16 19:25:43 serve.go:415: handle command failed: websocket: the client is not using the websocket protocol: 'upgrade' token not found in 'Connection' header
  • 思源笔记

    思源笔记是一款隐私优先的个人知识管理系统,支持完全离线使用,同时也支持端到端加密同步。

    融合块、大纲和双向链接,重构你的思维。

    23019 引用 • 92589 回帖
  • Q&A

    提问之前请先看《提问的智慧》,好的问题比好的答案更有价值。

    8448 引用 • 38486 回帖 • 155 关注

欢迎来到这里!

我们正在构建一个小众社区,大家在这里相互信任,以平等 • 自由 • 奔放的价值观进行分享交流。最终,希望大家能够找到与自己志同道合的伙伴,共同成长。

注册 关于
请输入回帖内容 ...
请输入回帖内容 ...