fix: websocket

This commit is contained in:
Andras Bacsai 2023-12-11 18:48:00 +01:00
parent 17c8872130
commit 6d9a66ff1b
4 changed files with 5 additions and 8 deletions

View File

@ -184,13 +184,13 @@ function setup_dynamic_configuration()
'service' => 'coolify',
'rule' => "Host(`{$host}`)",
],
'coolify-ws' =>
'coolify-realtime-ws' =>
[
'entryPoints' => [
0 => 'http',
],
'service' => 'coolify-realtime',
'rule' => "Host(`{$host}`) && PathPrefix(`/realtime/`)",
'rule' => "Host(`{$host}`) && PathPrefix(`/app`)",
],
],
'services' =>
@ -229,7 +229,7 @@ function setup_dynamic_configuration()
$traefik_dynamic_conf['http']['routers']['coolify-http']['middlewares'] = [
0 => 'redirect-to-https@docker',
];
$traefik_dynamic_conf['http']['routers']['coolify-ws']['middlewares'] = [
$traefik_dynamic_conf['http']['routers']['coolify-realtime-ws']['middlewares'] = [
0 => 'redirect-to-https@docker',
];
$traefik_dynamic_conf['http']['routers']['coolify-https'] = [
@ -242,12 +242,12 @@ function setup_dynamic_configuration()
'certresolver' => 'letsencrypt',
],
];
$traefik_dynamic_conf['http']['routers']['coolify-wss'] = [
$traefik_dynamic_conf['http']['routers']['coolify-realtime-wss'] = [
'entryPoints' => [
0 => 'https',
],
'service' => 'coolify-realtime',
'rule' => "Host(`{$host}`) && PathPrefix(`/realtime/`)",
'rule' => "Host(`{$host}`) && PathPrefix(`/app`)",
'tls' => [
'certresolver' => 'letsencrypt',
],

View File

@ -57,7 +57,6 @@ services:
- "${FORWARD_SOKETI_PORT:-6001}:6001"
environment:
SOKETI_DEBUG: "true"
SOKETI_PATH_PREFIX: "${PUSHER_PATH_PREFIX:-/realtime}"
SOKETI_DEFAULT_APP_ID: "${PUSHER_APP_ID:-coolify}"
SOKETI_DEFAULT_APP_KEY: "${PUSHER_APP_KEY:-coolify}"
SOKETI_DEFAULT_APP_SECRET: "${PUSHER_APP_SECRET:-coolify}"

View File

@ -124,7 +124,6 @@ services:
- "${SOKETI_PORT:-6001}:6001"
environment:
SOKETI_DEBUG: "${SOKETI_DEBUG:-false}"
SOKETI_PATH_PREFIX: "${PUSHER_PATH_PREFIX:-/realtime}"
SOKETI_DEFAULT_APP_ID: "${PUSHER_APP_ID}"
SOKETI_DEFAULT_APP_KEY: "${PUSHER_APP_KEY}"
SOKETI_DEFAULT_APP_SECRET: "${PUSHER_APP_SECRET}"

View File

@ -54,7 +54,6 @@
wsHost: "{{ env('PUSHER_HOST') }}" || window.location.hostname,
wsPort: "{{ App\Models\InstanceSettings::realtimePort() }}",
wssPort: "{{ App\Models\InstanceSettings::realtimePort() }}",
wsPath: '/realtime',
forceTLS: false,
encrypted: true,
enableStats: false,