Update service
This commit is contained in:
parent
11c4ac0b8b
commit
82907c6fcf
|
|
@ -1,7 +1,7 @@
|
||||||
---
|
---
|
||||||
name: CookCLI Server DEV
|
name: CookCLI Server DEV
|
||||||
slug: cookcli
|
slug: cookcli
|
||||||
version: 0.11.6
|
version: 0.11.7
|
||||||
description: "Serveur CookCLI avec synchronisation Git"
|
description: "Serveur CookCLI avec synchronisation Git"
|
||||||
url: "https://git.thethomaas.net/TheThomaas/home-assistant-apps/src/branch/main/cookcli"
|
url: "https://git.thethomaas.net/TheThomaas/home-assistant-apps/src/branch/main/cookcli"
|
||||||
arch:
|
arch:
|
||||||
|
|
|
||||||
|
|
@ -55,12 +55,6 @@ http {
|
||||||
proxy_redirect http://127.0.0.1:9081/ \$scheme://\$host${INGRESS_PATH}/;
|
proxy_redirect http://127.0.0.1:9081/ \$scheme://\$host${INGRESS_PATH}/;
|
||||||
proxy_redirect http://127.0.0.1:9081 \$scheme://\$host${INGRESS_PATH};
|
proxy_redirect http://127.0.0.1:9081 \$scheme://\$host${INGRESS_PATH};
|
||||||
}
|
}
|
||||||
|
|
||||||
location = /api/reload {
|
|
||||||
limit_except POST { deny all; }
|
|
||||||
proxy_pass http://127.0.0.1:8098;
|
|
||||||
proxy_read_timeout 120s;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,2 +1,2 @@
|
||||||
#!/usr/bin/with-contenv bashio
|
#!/usr/bin/with-contenv bashio
|
||||||
exec socat TCP-LISTEN:8098,bind=127.0.0.1,fork,reuseaddr EXEC:/usr/local/bin/reload-http.sh
|
exec socat TCP-LISTEN:8098,fork,reuseaddr EXEC:/usr/local/bin/reload-http.sh
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
# Consomme la requête jusqu'à la ligne vide
|
# Consomme la requête jusqu'à la ligne vide
|
||||||
while IFS= read -r line; do line="${line%$'\r'}"; [ -z "$line" ] && break; done
|
while IFS= read -r line; do line="${line%$'\r'}"; [ -z "$line" ] && break; done
|
||||||
|
|
||||||
if /usr/local/bin/git-sync-now.sh >/dev/null 2>&1; then
|
if /usr/local/bin/git-sync-now.sh >> /proc/1/fd/1 2>&1; then
|
||||||
status="200 OK"; body='{"status":"ok"}'
|
status="200 OK"; body='{"status":"ok"}'
|
||||||
else
|
else
|
||||||
status="500 Internal Server Error"; body='{"status":"error"}'
|
status="500 Internal Server Error"; body='{"status":"error"}'
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue