新浪博客

pywebio使用了websocket反向代理配置

2024-08-14 19:48阅读:
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

我的更多文章

下载客户端阅读体验更佳

APP专享