Skip to content

Commit

Permalink
Merge pull request #58 from CS3219-AY2425S1/ui-update
Browse files Browse the repository at this point in the history
FIX FIX ANDFIC
  • Loading branch information
guowei42 authored Nov 13, 2024
2 parents a5bb719 + 17cfdb4 commit 3eb48b0
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 10 deletions.
6 changes: 6 additions & 0 deletions kubernetes/chat-service/chat-backend-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
apiVersion: cloud.google.com/v1
kind: BackendConfig
metadata:
name: chat-service-backendconfig
spec:
timeoutSec: 1800
6 changes: 4 additions & 2 deletions kubernetes/chat-service/chat-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ kind: Service
metadata:
name: chat-service
annotations:
cloud.google.com/backend-config: '{"default": "chat-service-backendconfig"}'
cloud.google.com/backend-config: '{"ports": {"3006":"chat-service-backendconfig"}}'
labels:
app: chat-service
spec:
Expand All @@ -13,4 +13,6 @@ spec:
ports:
- name: chat-service
port: 3006
targetPort: 3006
targetPort: 3006


6 changes: 6 additions & 0 deletions kubernetes/collab-service/collab-backend-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
apiVersion: cloud.google.com/v1
kind: BackendConfig
metadata:
name: collab-service-backendconfig
spec:
timeoutSec: 1800
6 changes: 4 additions & 2 deletions kubernetes/collab-service/collab-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ kind: Service
metadata:
name: collab-service
annotations:
cloud.google.com/backend-config: '{"default": "collab-service-backendconfig"}'
cloud.google.com/backend-config: '{"ports": {"3004":"collab-service-backendconfig"}}'
labels:
app: collab-service
spec:
Expand All @@ -13,4 +13,6 @@ spec:
ports:
- name: collab-service
port: 3004
targetPort: 3004
targetPort: 3004


4 changes: 1 addition & 3 deletions server/chat-service/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@ const io = new Server(server, {
allowedHeaders:
"Origin, X-Requested-With, Content-Type, Accept, Authorization, Cookie",
credentials: true,
},
pingTimeout: 300000,
pingInterval: 100000
}
});

io.on("connection", (socket) => {
Expand Down
4 changes: 1 addition & 3 deletions server/collaboration-service/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@ const io = new Server(server, {
allowedHeaders:
"Origin, X-Requested-With, Content-Type, Accept, Authorization, Cookie",
credentials: true,
},
pingTimeout: 300000,
pingInterval: 100000
}
});

io.on("connection", (socket) => {
Expand Down

0 comments on commit 3eb48b0

Please sign in to comment.