Skip to content

Commit 4516ee4

Browse files
committed
feat: improve Caddy service restart handling in setup script
1 parent 7e7c4c8 commit 4516ee4

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

.github/workflows/deploy-livekit.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ on:
66
- master
77
paths:
88
- 'apps/livekit/**'
9+
- '.github/workflows/deploy-livekit.yml'
910
workflow_dispatch:
1011

1112
concurrency:

apps/livekit/setup-livekit-server.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,11 @@ ${DOMAIN} {
270270
EOF
271271

272272
systemctl enable caddy >/dev/null 2>&1
273-
systemctl restart caddy
273+
if systemctl restart caddy; then
274+
success "Caddy started (TLS will auto-provision for $DOMAIN)"
275+
else
276+
warn "Caddy failed to start - ensure DNS for $DOMAIN points to this server, then run: systemctl restart caddy"
277+
fi
274278

275279
# ===========================================
276280
# LiveKit Server (Docker)

0 commit comments

Comments
 (0)