Skip to content

Commit

Permalink
fix: ws
Browse files Browse the repository at this point in the history
  • Loading branch information
hai-ko committed Oct 24, 2023
1 parent 3603bde commit a9c0df5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docker/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ http {
}

location /socket.io {
proxy_pass http://backend:8081/socket.io/;
proxy_pass http://backend:8081;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
Expand Down
1 change: 1 addition & 0 deletions packages/backend/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ global.logger = winston.createLogger({

(async () => {
const io = new Server(server, {
path: '/api/',
cors: {
origin: '*',
methods: 'GET,HEAD,PUT,PATCH,POST,DELETE',
Expand Down

0 comments on commit a9c0df5

Please sign in to comment.