Update service

This commit is contained in:
TheThomaas 2026-09-20 12:17:17 +02:00
parent 11c4ac0b8b
commit 82907c6fcf
4 changed files with 3 additions and 9 deletions

View file

@ -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:

View file

@ -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;
}
} }
} }

View file

@ -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

View file

@ -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"}'