Mercurial > code > home > repos > light9
changeset 2073:17b268d2b7f3
ws fix
author | drewp@bigasterisk.com |
---|---|
date | Sun, 22 May 2022 03:04:18 -0700 |
parents | d5f1cc9615af |
children | 1a96f8647126 |
files | bin/homepageConfig |
diffstat | 1 files changed, 9 insertions(+), 8 deletions(-) [+] |
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; """)