Skip to content

Commit

Permalink
Please, WS
Browse files Browse the repository at this point in the history
  • Loading branch information
Gesugao-san committed Feb 13, 2024
1 parent 99fc1b3 commit 0cbf990
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 16 deletions.
6 changes: 3 additions & 3 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,11 @@
"image": "gesugaosan/proxima.fun",
"containerName": "proxima.fun",
"ports": [{
"containerPort": 80,
"hostPort": 80,
"containerPort": 80, //The port number bound on the container. Required.
"hostPort": 8091, //The port number bound on the host.
"protocol": "tcp",
}/* ,{
"containerPort": 443,
"containerPort": 8091,
"hostPort": 443,
"protocol": "tcp",
} */],
Expand Down
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,15 @@ COPY . .
### Сообщаем Docker'у, что для работы нам нужен порт.

### HTTP (1)
EXPOSE 80:80/tcp
#EXPOSE 80:80/tcp
EXPOSE 80:8091/tcp

### HTTP (2)
#EXPOSE 8080:8080/tcp

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

#
#EXPOSE 3001:3000/tcp
Expand Down
6 changes: 3 additions & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@ services:
# https://docs.docker.com/compose/compose-file/compose-file-v3/#ports
ports:
- name: 'HTTP'
target: 8091 # the port inside the container
published: 80 # the publicly exposed port
target: 80 # the port inside the container
published: 8091 # the publicly exposed port
protocol: tcp
mode: host
#- name: "WebSocket"
#target: 443 # the port inside the container
#target: 8091 # the port inside the container
#published: 443 # the publicly exposed port
#protocol: tcp
#mode: host
Expand Down
19 changes: 10 additions & 9 deletions vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,26 +20,27 @@ export default defineConfig({

clearScreen: false,
server: {
host: '0.0.0.0', // OK
//host: '0.0.0.0', // OK
//host: true, // OK
//host: 'localhost', // NOT FOR PUBLIC
//port: 8080, // CRITICAL
port: 80, // CRITICAL
clientPort: 80,
//port: 80, // CRITICAL
//clientPort: 80,
//https: false, // UNKNOWN
strictPort: true, // OK
//strictPort: true, // OK
//// https://vitejs.dev/config/server-options.html#server-hmr
//hmr: false
hmr: {
//host: 'localhost', // CRITICAL, OK
//host: true, // LOOP
host: 'localhost', // CRITICAL, OK
//host: '0.0.0.0', // LOOP
protocol: 'wss', // OK
//host: true, // LOOP
protocol: 'ws', // OK
//protocol: 'wss', // LOOP
port: 80,
//port: 8080,
//port: 443, // OK
//Port: 443, // OK
//port: 3000,
clientPort: 80,
//clientPort: 8080,
//clientPort: 3001,
//clientPort: 443, // LOOP
},
Expand Down

0 comments on commit 0cbf990

Please sign in to comment.