惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

V
V2EX
小众软件
小众软件
GbyAI
GbyAI
B
Blog RSS Feed
月光博客
月光博客
A
About on SuperTechFans
Microsoft Security Blog
Microsoft Security Blog
Blog — PlanetScale
Blog — PlanetScale
U
Unit 42
云风的 BLOG
云风的 BLOG
P
Proofpoint News Feed
Recent Announcements
Recent Announcements
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Vercel News
Vercel News
F
Fortinet All Blogs
Apple Machine Learning Research
Apple Machine Learning Research
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
雷峰网
雷峰网
Google DeepMind News
Google DeepMind News
MongoDB | Blog
MongoDB | Blog
Engineering at Meta
Engineering at Meta
aimingoo的专栏
aimingoo的专栏
博客园_首页
G
Google Developers Blog

博客园 - jiduoduo

POST 方法是否能提交 @RequestParam的使用 Content-Type 是 HTTP 请求 / 响应头中核心的字段 mvn clean install -U Maven 不建议 利用 systemPath 引用本地文件jar ollama本地大模型的安装与使用 字符串 md5在线生成的小工具 如何使用剪映加入字幕 Navicat Premium Lite 17 免费的工具 nginx配制微信公众号业务域名,重启服务等,都不行 windows 新建bat来显示ip,并且不关闭 类型“any”的参数不能赋给类型“never”的参数。 mac code google chrome cpu占用大 风扇就开始转 springboot连接sqlserver2008r2 驱动版本问题。 vue3项目打包的时候报错'openBlock' is not exported by node_modules/... mac 截屏到指定的目录 vue3 优化ai生成的手写签名 系统里的查询奇慢无比,但是sqlserver中只要6s,在软件中要40几秒。 c++结构体、共用体(联合体) 无法打开“fsevents.node”,因为无法验证开发者。
nginx配置支持websocket协议wss
jiduoduo · 2024-07-03 · via 博客园 - jiduoduo

其实wss与https,并没有太大的差别,只是需要升级下协议。

在原来的配制下增加下面即可:

proxy_http_version 1.1;
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection "upgrade";
  • Connection: Upgrade:表示要升级协议
  • Upgrade: websocket:表示要升级到websocket协议。