mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-09-21 09:14:01 +02:00
Agent-Logs-Url: https://github.com/alexbelgium/hassio-addons/sessions/4e3f8d6e-aa60-49f1-9091-ec6eee21af29 Co-authored-by: alexbelgium <44178713+alexbelgium@users.noreply.github.com>
11 lines
345 B
Plaintext
11 lines
345 B
Plaintext
#!/usr/bin/with-contenv bashio
|
|
# shellcheck shell=bash
|
|
set -euo pipefail
|
|
|
|
# Wait for the API server to be ready before exposing the ingress. Without
|
|
# this, nginx starts immediately while the model is still loading (can take
|
|
# minutes), causing every frontend API call to return a 502 Bad Gateway.
|
|
bashio::net.wait_for 5002 127.0.0.1 300
|
|
|
|
nginx
|