diff --git a/conf/nginx.conf b/conf/nginx.conf index 842612a..b8a06e8 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -13,6 +13,24 @@ location /api/ { try_files /_bypass_to_proxy @proxy; } +location /ws +{ + proxy_pass http://127.0.0.1:__PORT__; + proxy_http_version 1.1; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection $connection_upgrade; + proxy_set_header Host $host; +} + +location /yjs +{ + proxy_pass http://127.0.0.1:__PORT__; + proxy_http_version 1.1; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection $connection_upgrade; + proxy_set_header Host $host; +} + location @proxy { proxy_pass http://127.0.0.1:__PORT__; proxy_redirect off;