fix: missing newlines in generated docker-compose websocket config

This commit is contained in:
Fabian Wagner 2026-04-15 10:46:57 +02:00
parent 012eec7ee9
commit 9b3ea29d9a
1 changed files with 3 additions and 1 deletions

View File

@ -233,10 +233,11 @@ services:
YAML;
if ($websocket) {
$yaml .= " PUSHER_PORT: \"{$websocketPort}\"\n";
$yaml .= "\n PUSHER_PORT: \"{$websocketPort}\"";
}
$yaml .= <<<YAML
networks:
- web
- internal
@ -256,6 +257,7 @@ YAML;
if ($websocket) {
$yaml .= <<<YAML
# WebSocket
- traefik.http.routers.{$name}-ws.rule=Host(`ws-{$host}`)
- traefik.http.routers.{$name}-ws.entrypoints=web