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
需要增加额外配置才能让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
