pywebio使用了websocket反向代理配置
(2024-08-14 19:48:42)
标签:
pywebio开发 |
分类: 程序与脚本 |
pywebio使用了websocket 当前端nginx反向代理的时候
需要增加额外配置才能让websocket工作
proxy_read_timeout 300s; proxy_send_timeout 300s; proxy_http_version 1.1; proxy_set_header Host $http_host; proxy_set_header Upgrade “upgrade”; proxy_set_header Connection $connection_upgrade;
===转===
https://pywebio.readthedocs.io/en/latest/misc.html#nginx-ws-config
前一篇:OpenAIGPT4o示例代码
后一篇:A100GPU通过MIG进行切分