mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-05-06 17:08:10 +02:00
Add ingress support with nginx reverse proxy for maintainerr addon
Agent-Logs-Url: https://github.com/alexbelgium/hassio-addons/sessions/14f6643d-9d4f-4c6d-8993-0dbe4404c35d Co-authored-by: alexbelgium <44178713+alexbelgium@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
fabf324ee3
commit
703e5a4172
@@ -58,4 +58,15 @@ export DATA_DIR
|
||||
|
||||
# ─── Start Maintainerr as unprivileged node user ─────────────────────────────
|
||||
echo "[Maintainerr] Starting application on port ${UI_PORT:-6246}..."
|
||||
exec gosu node /opt/app/start.sh
|
||||
gosu node /opt/app/start.sh &
|
||||
|
||||
# ─── Wait for Maintainerr to become available, then start Nginx ──────────────
|
||||
echo "[Maintainerr] Waiting for application to be ready..."
|
||||
for i in $(seq 1 900); do
|
||||
if curl -s -o /dev/null -f "http://127.0.0.1:${UI_PORT:-6246}" 2>/dev/null; then
|
||||
break
|
||||
fi
|
||||
sleep 1
|
||||
done
|
||||
echo "[Maintainerr] Starting NGinx..."
|
||||
exec nginx
|
||||
|
||||
Reference in New Issue
Block a user