Skip to content

Commit bcc23dc

Browse files
committed
ci: change
1 parent a81445f commit bcc23dc

File tree

3 files changed

+6
-10
lines changed

3 files changed

+6
-10
lines changed

docker-compose.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
11
version: "3.4"
22
services:
3-
tons-chat-client:
4-
container_name: tons-chats-client
5-
image: nginx:latest
3+
chats-frontend:
4+
image: passimx/chats-frontend
5+
restart: unless-stopped
66
ports:
7-
- 2223:2223
8-
volumes:
9-
- ./dist:/usr/share/nginx/html
10-
- ./nginx/nginx.conf:/etc/nginx/nginx.conf
11-
command: [nginx-debug, '-g', 'daemon off;']
7+
- 2223:2223

public/worker.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
'use strict';
2-
const host = 'ws://api.tons-chat.ru/ws';
2+
const host = 'wss://api.tons-chat.ru/ws';
33
const ports = [];
44
let socketId;
55

src/root/api/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export async function Api<T>(url: string, { headers, body, method, params }: req
3030
'Access-Control-Allow-METHODS': 'GET, HEAD, POST, PUT, DELETE, TRACE, OPTIONS, PATCH',
3131
};
3232

33-
if (Envs.socketId?.length) mainHeaders['socket_id'] = Envs.socketId;
33+
if (Envs.socketId?.length) mainHeaders['x-socket-id'] = Envs.socketId;
3434

3535
try {
3636
const result = await fetch(`${Envs.chatsServiceUrl}${url}${query}`, {

0 commit comments

Comments
 (0)