Mercurial > code > home > repos > light9
diff bin/homepageConfig @ 2073:17b268d2b7f3
ws fix
author | drewp@bigasterisk.com |
---|---|
date | Sun, 22 May 2022 03:04:18 -0700 |
parents | a415be4cfac4 |
children | ac16ec1e6bab |
line wrap: on
line diff
--- a/bin/homepageConfig Sun May 22 03:03:43 2022 -0700 +++ b/bin/homepageConfig Sun May 22 03:04:18 2022 -0700 @@ -27,20 +27,21 @@ # just the tail part for services rewrite ^/{path}/api(/.*) $1 break; proxy_pass {server}; + + # for websocket + proxy_http_version 1.1; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection "upgrade"; + proxy_set_header Host $host; + + proxy_buffering off; + }} location /{path}/ {{ # vite has 'base' to deal with the /{path}/ part of the request proxy_pass {viteServer}; }} -# vite seems to work without this old section-- hopefully other services will too! - # # for websocket - # proxy_http_version 1.1; - # proxy_set_header Upgrade $http_upgrade; - # proxy_set_header Connection "upgrade"; - # proxy_set_header Host $host; - - # proxy_buffering off; """)