Skip to content

Commit

Permalink
Yet another WS fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Gesugao-san committed Feb 13, 2024
1 parent 09f6978 commit c908380
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 13 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ EXPOSE 80:80/tcp
#EXPOSE 8080:8080/tcp

### WebSocket
EXPOSE 443:443/tcp
#EXPOSE 443:443/tcp

#
#EXPOSE 3001:3000/tcp
Expand Down
21 changes: 12 additions & 9 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,23 +14,26 @@ version: '3.8'
services:
proxima.fun:
image: gesugaosan/proxima.fun:latest
container_name: proxima.fun #proxima-mainpage
build:
context: .
tags:
- 'latest'
tags: ['latest']
dockerfile: ./Dockerfile
environment:
NODE_ENV: production
WDS_SOCKET_PORT: 443
#WDS_SOCKET_PORT: 443
# https://docs.docker.com/compose/compose-file/compose-file-v3/#ports
ports:
- target: 80
published: 80
protocol: tcp
mode: host
- target: 443
published: 443
- name: 'HTTP'
target: 8091 # the port inside the container
published: 80 # the publicly exposed port
protocol: tcp
mode: host
#- name: "WebSocket"
#target: 443 # the port inside the container
#published: 443 # the publicly exposed port
#protocol: tcp
#mode: host
#- 80:80
#- 8080:8080
#- 443:443
Expand Down
7 changes: 4 additions & 3 deletions vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,14 @@ export default defineConfig({
//host: 'localhost', // CRITICAL, OK
//host: true, // LOOP
//host: '0.0.0.0', // LOOP
//protocol: 'ws', // OK
protocol: 'ws', // OK
//protocol: 'wss', // LOOP
port: 443, // OK
port: 80,
//port: 443, // OK
//Port: 443, // OK
//port: 3000,
//clientPort: 3001,
clientPort: 443, // LOOP
//clientPort: 443, // LOOP
},
}
})

0 comments on commit c908380

Please sign in to comment.