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 812304fd93
commit 28aaaf9661
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; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
} }
location /ws { location /vite {
proxy_pass http://{{ address }}:3000; proxy_pass http://{{ address }}:3000;
rewrite ^/ws(.*)$ /$1 break; rewrite ^/vite(.*)$ /$1 break;
} }
location / { location / {