Skip to content

Commit

Permalink
Merge pull request #70 from sayyyho/dev
Browse files Browse the repository at this point in the history
Fix: 최종 WebRTC 에러 수정
  • Loading branch information
sayyyho authored Aug 29, 2024
2 parents 9f0fb58 + f5e7c3f commit 7f59403
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions nginx.conf
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
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;
index index.html index.htm;
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;
Expand Down
2 changes: 1 addition & 1 deletion src/pages/VideoPage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ const RTCPage = () => {
};

useEffect(() => {
socketRef.current = io("ws://kaboo.site/socket.io/", {
socketRef.current = io("http://kaboo.site", {
transports: ["websocket"],
});

Expand Down

0 comments on commit 7f59403

Please sign in to comment.