diff --git a/nginx.conf b/nginx.conf index 0a1d357..d594b0d 100644 --- a/nginx.conf +++ b/nginx.conf @@ -1,7 +1,6 @@ server { listen 80; - access_log /var/log/nginx/access.log; - error_log /var/log/nginx/error.log; + server_name kaboo.site; location / { root /usr/share/nginx/html; @@ -9,7 +8,6 @@ server { try_files $uri $uri/ /index.html; } - # Proxy WebSocket connections at /socket.io/ location /socket.io/ { proxy_pass http://localhost:3000; proxy_http_version 1.1; diff --git a/src/pages/VideoPage.jsx b/src/pages/VideoPage.jsx index 1ee6981..3d7487d 100644 --- a/src/pages/VideoPage.jsx +++ b/src/pages/VideoPage.jsx @@ -66,7 +66,7 @@ const RTCPage = () => { }; useEffect(() => { - socketRef.current = io("ws://kaboo.site/socket.io/", { + socketRef.current = io("http://kaboo.site", { transports: ["websocket"], });