Update vite path for proxying websocket to be /vite

This commit is contained in:
Andrew Kingston 2022-09-02 11:48:45 +01:00
parent d540788a56
commit 9c49a21953
1 changed files with 2 additions and 2 deletions

View File

@ -84,9 +84,9 @@ http {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
location /ws {
location /vite {
proxy_pass http://{{ address }}:3000;
rewrite ^/ws(.*)$ /$1 break;
rewrite ^/vite(.*)$ /$1 break;
}
location / {