From 8ee2d399bd5100a813713367b9ea99724aa13cc9 Mon Sep 17 00:00:00 2001 From: TheThomaas Date: Sat, 5 Sep 2026 19:29:22 +0000 Subject: [PATCH 001/157] Actualiser cookcli/config.yaml --- cookcli/config.yaml | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/cookcli/config.yaml b/cookcli/config.yaml index caecc8c..7b1be8c 100644 --- a/cookcli/config.yaml +++ b/cookcli/config.yaml @@ -11,10 +11,20 @@ arch: startup: application boot: auto host_network: false + +#--- Configuration Ingress --- +ingress: true +ingress_port: 9080 +ingress_entry: / +panel_icon: mdi:chef-hat +panel_title: "CookCLI" +panel admin: false # Mettre à true si seulement les admins doivent voir l'interface + ports: 9080/tcp: 9080 ports_description: 9080/tcp: "Port du serveur CookCLI" + init: false options: recipes_path: /config/recipes @@ -39,4 +49,10 @@ schema: # Activation de l'interface web (si CookCLI a une UI) ingress: false panel_icon: mdi:chef-hat -panel_title: "CookCLI" \ No newline at end of file +panel_title: "CookCLI" + +#--- Permissions Ingress --- +ingress: + - port: 9080 + protocol: http + path: / \ No newline at end of file -- 2.43.4 From e2e28eaab34a9e8e8f9a36f3a6b8a45747c5b9e4 Mon Sep 17 00:00:00 2001 From: TheThomaas Date: Sat, 5 Sep 2026 19:31:05 +0000 Subject: [PATCH 002/157] Actualiser cookcli/Dockerfile --- cookcli/Dockerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cookcli/Dockerfile b/cookcli/Dockerfile index 7069052..76f5e6b 100644 --- a/cookcli/Dockerfile +++ b/cookcli/Dockerfile @@ -8,6 +8,8 @@ RUN apk add --no-cache \ bash \ git \ openssh-client \ + nginx \ + nginx-mod-stream \ && curl -L https://github.com/cooklang/CookCLI/releases/latest/download/cook-x86_64-unknown-freebsd.tar.gz | tar xz \ && mv cook /usr/local/bin/ \ && chmod a+x /usr/local/bin/cook -- 2.43.4 From 33c6219cf3674f1fa541a45daedc6bdd68ba80ab Mon Sep 17 00:00:00 2001 From: TheThomaas Date: Sat, 5 Sep 2026 19:32:37 +0000 Subject: [PATCH 003/157] Ajouter cookcli/rootfs/etc/nginx/nginx.conf --- cookcli/rootfs/etc/nginx/nginx.conf | 62 +++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 cookcli/rootfs/etc/nginx/nginx.conf diff --git a/cookcli/rootfs/etc/nginx/nginx.conf b/cookcli/rootfs/etc/nginx/nginx.conf new file mode 100644 index 0000000..b56492e --- /dev/null +++ b/cookcli/rootfs/etc/nginx/nginx.conf @@ -0,0 +1,62 @@ +worker_processes 1; + +events { + worker_connections 1024; +} + +http { + include /etc/nginx/mime.types; + default_type application/octet-stream; + + sendfile on; + keepalive_timeout 65; + + # Logs pour debugging + access_log /proc/1/fd/1; + error_log /proc/1/fd/2; + + # Gzip compression + gzip on; + gzip_vary on; + gzip_proxied any; + gzip_types text/plain text/css text/xml text/javascript application/json application/javascript application/xml+rss application/rss+xml; + + # Configuration du serveur + server { + listen 9080; + server_name localhost; + + # Taille maximale des fichiers + client_max_body_size 10M; + + # Headers pour l'Ingress + proxy_set_header Host $host; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header X-Forwarded-Proto $scheme; + proxy_set_header X-Forwarded-Host $host; + proxy_set_header X-Forwarded-Port $server_port; + + # Headers spécifiques à Home Assistant Ingress + proxy_set_header X-Ingress-Path $request_uri; + proxy_set_header X-Forwarded-Prefix "/api/hassio_ingress/$(HASSIO_TOKEN)"; + + # Désactiver le buffering pour les logs en temps réel + proxy_buffering off; + + # Proxy vers CookCLI + location / { + proxy_pass http://127.0.0.1:9081; + proxy_http_version 1.1; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection "upgrade"; + + # Réécriture des URLs pour l'Ingress + sub_filter_once off; + sub_filter_types text/html text/css application/javascript; + sub_filter 'href="/' 'href="$scheme://$host/'; + sub_filter 'src="/' 'src="$scheme://$host/'; + sub_filter 'action="/' 'action="$scheme://$host/'; + } + } +} \ No newline at end of file -- 2.43.4 From 8ba7b3576010d7ea906fb587d5eb3f70dd3edfc0 Mon Sep 17 00:00:00 2001 From: TheThomaas Date: Sat, 5 Sep 2026 19:33:17 +0000 Subject: [PATCH 004/157] Ajouter cookcli/rootfs/etc/services.d/nginx/run --- cookcli/rootfs/etc/services.d/nginx/run | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 cookcli/rootfs/etc/services.d/nginx/run diff --git a/cookcli/rootfs/etc/services.d/nginx/run b/cookcli/rootfs/etc/services.d/nginx/run new file mode 100644 index 0000000..341166e --- /dev/null +++ b/cookcli/rootfs/etc/services.d/nginx/run @@ -0,0 +1,11 @@ +#!/usr/bin/with-contenv bashio +set -e + +bashio::log.info "=== Service Nginx pour l'Ingress ===" + +# Générer un fichier de configuration pour les headers Ingress +INGRESS_PATH="/api/hassio_ingress/$(bashio::config 'ingress_token')" +bashio::log.info "Chemin Ingress: ${INGRESS_PATH}" + +# Démarrer Nginx +exec nginx -g "daemon off;" >> /proc/1/fd/1 2>&1 \ No newline at end of file -- 2.43.4 From 19a9fa4bb1be66f80f692fd8a6341907135cd982 Mon Sep 17 00:00:00 2001 From: TheThomaas Date: Sat, 5 Sep 2026 19:35:27 +0000 Subject: [PATCH 005/157] Actualiser cookcli/rootfs/etc/s6-overlay/s6-rc.d/cookcli/run --- cookcli/rootfs/etc/s6-overlay/s6-rc.d/cookcli/run | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cookcli/rootfs/etc/s6-overlay/s6-rc.d/cookcli/run b/cookcli/rootfs/etc/s6-overlay/s6-rc.d/cookcli/run index 4b3a5f2..7addaaa 100644 --- a/cookcli/rootfs/etc/s6-overlay/s6-rc.d/cookcli/run +++ b/cookcli/rootfs/etc/s6-overlay/s6-rc.d/cookcli/run @@ -3,7 +3,7 @@ set -e # --- Configuration --- RECIPES_PATH=$(bashio::config 'recipes_path') -PORT=$(bashio::config 'port') +PORT=9081 LOG_LEVEL=$(bashio::config 'log_level') bashio::log.info "=== CookCLI Server ===" @@ -24,5 +24,6 @@ fi bashio::log.info "Démarrage du serveur CookCLI..." exec cook server "${RECIPES_PATH}" \ --port "${PORT}" \ + --host "127.0.0.1" \ --log-level "${LOG_LEVEL}" \ >> /proc/1/fd/1 2>&1 \ No newline at end of file -- 2.43.4 From 7774405640008e93d41dc835f33a92ac8dbb07d6 Mon Sep 17 00:00:00 2001 From: TheThomaas Date: Sat, 5 Sep 2026 19:36:46 +0000 Subject: [PATCH 006/157] Ajouter cookcli/rootfs/etc/s6-overlay/scripts/run-all --- cookcli/rootfs/etc/s6-overlay/scripts/run-all | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 cookcli/rootfs/etc/s6-overlay/scripts/run-all diff --git a/cookcli/rootfs/etc/s6-overlay/scripts/run-all b/cookcli/rootfs/etc/s6-overlay/scripts/run-all new file mode 100644 index 0000000..b6b303c --- /dev/null +++ b/cookcli/rootfs/etc/s6-overlay/scripts/run-all @@ -0,0 +1,11 @@ +#!/command/with-contenv bashio +set -e + +bashio::log.info "=== CookCLI Add-on avec Ingress ===" + +# Variables d'environnement pour l'Ingress +export INGRESS_PATH="/api/hassio_ingress/$(bashio::config 'ingress_token')" +bashio::log.info "Chemin Ingress configuré: ${INGRESS_PATH}" + +# Démarrer les services S6 +exec /init \ No newline at end of file -- 2.43.4 From d136befd639c714b4948453b696bff3253a48fb4 Mon Sep 17 00:00:00 2001 From: TheThomaas Date: Sat, 5 Sep 2026 19:37:49 +0000 Subject: [PATCH 007/157] Actualiser cookcli/config.yaml --- cookcli/config.yaml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/cookcli/config.yaml b/cookcli/config.yaml index 7b1be8c..f97ac2e 100644 --- a/cookcli/config.yaml +++ b/cookcli/config.yaml @@ -1,5 +1,5 @@ --- -name: CookCLI Server +name: CookCLI Server DEV slug: cookcli version: 1.0.2 description: "Serveur CookCLI avec synchronisation Git - Gestionnaire de recettes Cooklang" @@ -35,6 +35,8 @@ options: git_sync_interval: 3600 git_username: "" git_password: "" + ingress_enabled: true + ingress_path: "" schema: recipes_path: str @@ -45,6 +47,8 @@ schema: git_sync_interval: int(60,86400)? git_username: str? git_password: password? + ingress_enabled: bool + ingress_path: str? # Activation de l'interface web (si CookCLI a une UI) ingress: false -- 2.43.4 From 6f9d878fb316c57cef49e5d3246e4d1860750159 Mon Sep 17 00:00:00 2001 From: TheThomaas Date: Sat, 5 Sep 2026 19:46:47 +0000 Subject: [PATCH 008/157] Actualiser cookcli/Dockerfile --- cookcli/Dockerfile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cookcli/Dockerfile b/cookcli/Dockerfile index 76f5e6b..b69a38b 100644 --- a/cookcli/Dockerfile +++ b/cookcli/Dockerfile @@ -17,5 +17,9 @@ RUN apk add --no-cache \ # Copie du système de fichiers COPY rootfs / +# Rendre tous les scripts run exécutables +RUN chmod +x /etc/s6-overlay/s6-rc.d/*/run \ + && chmod +y /etc/services.d/*/run 2>/dev/null 11 true + # Point d'entrée S6-overlay ENTRYPOINT ["/init"] \ No newline at end of file -- 2.43.4 From 0739368cdbe3a8420b34afe87ac5584531489cce Mon Sep 17 00:00:00 2001 From: TheThomaas Date: Sat, 5 Sep 2026 19:46:59 +0000 Subject: [PATCH 009/157] Actualiser cookcli/config.yaml --- cookcli/config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cookcli/config.yaml b/cookcli/config.yaml index f97ac2e..f6652d8 100644 --- a/cookcli/config.yaml +++ b/cookcli/config.yaml @@ -1,7 +1,7 @@ --- name: CookCLI Server DEV slug: cookcli -version: 1.0.2 +version: 1.0.3 description: "Serveur CookCLI avec synchronisation Git - Gestionnaire de recettes Cooklang" url: "https://git.thethomaas.net/TheThomaas/home-assistant-apps" arch: -- 2.43.4 From 08225bf3e3ac6a17f32d393406084347bb208a6d Mon Sep 17 00:00:00 2001 From: TheThomaas Date: Sat, 5 Sep 2026 19:50:36 +0000 Subject: [PATCH 010/157] Actualiser cookcli/Dockerfile --- cookcli/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cookcli/Dockerfile b/cookcli/Dockerfile index b69a38b..03fcd1a 100644 --- a/cookcli/Dockerfile +++ b/cookcli/Dockerfile @@ -19,7 +19,7 @@ COPY rootfs / # Rendre tous les scripts run exécutables RUN chmod +x /etc/s6-overlay/s6-rc.d/*/run \ - && chmod +y /etc/services.d/*/run 2>/dev/null 11 true + && chmod +x /etc/services.d/*/run 2>/dev/null || true # Point d'entrée S6-overlay ENTRYPOINT ["/init"] \ No newline at end of file -- 2.43.4 From 4dd670c6171cbe2aba1590a6bad8ac6c17819545 Mon Sep 17 00:00:00 2001 From: TheThomaas Date: Sat, 5 Sep 2026 19:50:58 +0000 Subject: [PATCH 011/157] Actualiser cookcli/config.yaml --- cookcli/config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cookcli/config.yaml b/cookcli/config.yaml index f6652d8..e7bcb95 100644 --- a/cookcli/config.yaml +++ b/cookcli/config.yaml @@ -1,7 +1,7 @@ --- name: CookCLI Server DEV slug: cookcli -version: 1.0.3 +version: 1.0.4 description: "Serveur CookCLI avec synchronisation Git - Gestionnaire de recettes Cooklang" url: "https://git.thethomaas.net/TheThomaas/home-assistant-apps" arch: -- 2.43.4 From b8eb1e0a9148f7df7b47a1cb67c95a18051f8e6f Mon Sep 17 00:00:00 2001 From: TheThomaas Date: Sat, 5 Sep 2026 19:51:44 +0000 Subject: [PATCH 012/157] Ajouter cookcli/rootfs/etc/services.d/nginx/type --- cookcli/rootfs/etc/services.d/nginx/type | 1 + 1 file changed, 1 insertion(+) create mode 100644 cookcli/rootfs/etc/services.d/nginx/type diff --git a/cookcli/rootfs/etc/services.d/nginx/type b/cookcli/rootfs/etc/services.d/nginx/type new file mode 100644 index 0000000..1780f9f --- /dev/null +++ b/cookcli/rootfs/etc/services.d/nginx/type @@ -0,0 +1 @@ +longrun \ No newline at end of file -- 2.43.4 From 833be4636a927aa5a11adfd73ae2e42d5d07290f Mon Sep 17 00:00:00 2001 From: TheThomaas Date: Sat, 5 Sep 2026 20:05:17 +0000 Subject: [PATCH 013/157] Actualiser cookcli/rootfs/etc/nginx/nginx.conf --- cookcli/rootfs/etc/nginx/nginx.conf | 6 ------ 1 file changed, 6 deletions(-) diff --git a/cookcli/rootfs/etc/nginx/nginx.conf b/cookcli/rootfs/etc/nginx/nginx.conf index b56492e..af88e3c 100644 --- a/cookcli/rootfs/etc/nginx/nginx.conf +++ b/cookcli/rootfs/etc/nginx/nginx.conf @@ -15,12 +15,6 @@ http { access_log /proc/1/fd/1; error_log /proc/1/fd/2; - # Gzip compression - gzip on; - gzip_vary on; - gzip_proxied any; - gzip_types text/plain text/css text/xml text/javascript application/json application/javascript application/xml+rss application/rss+xml; - # Configuration du serveur server { listen 9080; -- 2.43.4 From a43a4e09dfe29502bb00829cd955299592094164 Mon Sep 17 00:00:00 2001 From: TheThomaas Date: Sat, 5 Sep 2026 20:06:10 +0000 Subject: [PATCH 014/157] Actualiser cookcli/config.yaml --- cookcli/config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cookcli/config.yaml b/cookcli/config.yaml index e7bcb95..e00ec16 100644 --- a/cookcli/config.yaml +++ b/cookcli/config.yaml @@ -1,7 +1,7 @@ --- name: CookCLI Server DEV slug: cookcli -version: 1.0.4 +version: 1.0.5 description: "Serveur CookCLI avec synchronisation Git - Gestionnaire de recettes Cooklang" url: "https://git.thethomaas.net/TheThomaas/home-assistant-apps" arch: -- 2.43.4 From 2bc5d8c3a8e986fb7ba7c83e93bda6c8ecc521a0 Mon Sep 17 00:00:00 2001 From: TheThomaas Date: Sat, 5 Sep 2026 20:16:28 +0000 Subject: [PATCH 015/157] Actualiser cookcli/rootfs/etc/nginx/nginx.conf --- cookcli/rootfs/etc/nginx/nginx.conf | 27 +++++---------------------- 1 file changed, 5 insertions(+), 22 deletions(-) diff --git a/cookcli/rootfs/etc/nginx/nginx.conf b/cookcli/rootfs/etc/nginx/nginx.conf index af88e3c..1442175 100644 --- a/cookcli/rootfs/etc/nginx/nginx.conf +++ b/cookcli/rootfs/etc/nginx/nginx.conf @@ -11,46 +11,29 @@ http { sendfile on; keepalive_timeout 65; - # Logs pour debugging access_log /proc/1/fd/1; error_log /proc/1/fd/2; - # Configuration du serveur server { listen 9080; server_name localhost; - # Taille maximale des fichiers client_max_body_size 10M; - # Headers pour l'Ingress + # Headers de base proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; - proxy_set_header X-Forwarded-Host $host; - proxy_set_header X-Forwarded-Port $server_port; - # Headers spécifiques à Home Assistant Ingress - proxy_set_header X-Ingress-Path $request_uri; - proxy_set_header X-Forwarded-Prefix "/api/hassio_ingress/$(HASSIO_TOKEN)"; - - # Désactiver le buffering pour les logs en temps réel - proxy_buffering off; - - # Proxy vers CookCLI + # Proxy simple vers CookCLI location / { proxy_pass http://127.0.0.1:9081; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; - - # Réécriture des URLs pour l'Ingress - sub_filter_once off; - sub_filter_types text/html text/css application/javascript; - sub_filter 'href="/' 'href="$scheme://$host/'; - sub_filter 'src="/' 'src="$scheme://$host/'; - sub_filter 'action="/' 'action="$scheme://$host/'; + proxy_buffering off; } } -} \ No newline at end of file +} + \ No newline at end of file -- 2.43.4 From c26d6c85640b6545c248c0e3b783738b641aeb2d Mon Sep 17 00:00:00 2001 From: TheThomaas Date: Sat, 5 Sep 2026 20:19:55 +0000 Subject: [PATCH 016/157] Actualiser cookcli/Dockerfile --- cookcli/Dockerfile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/cookcli/Dockerfile b/cookcli/Dockerfile index 03fcd1a..cfec8c1 100644 --- a/cookcli/Dockerfile +++ b/cookcli/Dockerfile @@ -9,7 +9,6 @@ RUN apk add --no-cache \ git \ openssh-client \ nginx \ - nginx-mod-stream \ && curl -L https://github.com/cooklang/CookCLI/releases/latest/download/cook-x86_64-unknown-freebsd.tar.gz | tar xz \ && mv cook /usr/local/bin/ \ && chmod a+x /usr/local/bin/cook @@ -18,8 +17,8 @@ RUN apk add --no-cache \ COPY rootfs / # Rendre tous les scripts run exécutables -RUN chmod +x /etc/s6-overlay/s6-rc.d/*/run \ - && chmod +x /etc/services.d/*/run 2>/dev/null || true +RUN find /etc -name "run" -type f -exec chmod +x {} \; \ + && find /usr -name "*.sh" -type f -exec chmod +x {} \; # Point d'entrée S6-overlay ENTRYPOINT ["/init"] \ No newline at end of file -- 2.43.4 From 0d2f369fb4ac6044d386bfcdeca5c9ba9defcf43 Mon Sep 17 00:00:00 2001 From: TheThomaas Date: Sat, 5 Sep 2026 20:20:07 +0000 Subject: [PATCH 017/157] Actualiser cookcli/config.yaml --- cookcli/config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cookcli/config.yaml b/cookcli/config.yaml index e00ec16..ab5917d 100644 --- a/cookcli/config.yaml +++ b/cookcli/config.yaml @@ -1,7 +1,7 @@ --- name: CookCLI Server DEV slug: cookcli -version: 1.0.5 +version: 1.0.6 description: "Serveur CookCLI avec synchronisation Git - Gestionnaire de recettes Cooklang" url: "https://git.thethomaas.net/TheThomaas/home-assistant-apps" arch: -- 2.43.4 From a43a90fbc76b4f3438e80680aae90765b009be4f Mon Sep 17 00:00:00 2001 From: TheThomaas Date: Sat, 5 Sep 2026 20:34:23 +0000 Subject: [PATCH 018/157] Ajouter cookcli/rootfs/etc/s6-overlay/s6-rc.d/nginx/dependencies --- cookcli/rootfs/etc/s6-overlay/s6-rc.d/nginx/dependencies | 1 + 1 file changed, 1 insertion(+) create mode 100644 cookcli/rootfs/etc/s6-overlay/s6-rc.d/nginx/dependencies diff --git a/cookcli/rootfs/etc/s6-overlay/s6-rc.d/nginx/dependencies b/cookcli/rootfs/etc/s6-overlay/s6-rc.d/nginx/dependencies new file mode 100644 index 0000000..0248980 --- /dev/null +++ b/cookcli/rootfs/etc/s6-overlay/s6-rc.d/nginx/dependencies @@ -0,0 +1 @@ +cookcli \ No newline at end of file -- 2.43.4 From 33955453b54ace51945696f80a4a018c18dced27 Mon Sep 17 00:00:00 2001 From: TheThomaas Date: Sat, 5 Sep 2026 20:35:31 +0000 Subject: [PATCH 019/157] Actualiser cookcli/rootfs/etc/s6-overlay/s6-rc.d/cookcli/run --- cookcli/rootfs/etc/s6-overlay/s6-rc.d/cookcli/run | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cookcli/rootfs/etc/s6-overlay/s6-rc.d/cookcli/run b/cookcli/rootfs/etc/s6-overlay/s6-rc.d/cookcli/run index 7addaaa..b5eee59 100644 --- a/cookcli/rootfs/etc/s6-overlay/s6-rc.d/cookcli/run +++ b/cookcli/rootfs/etc/s6-overlay/s6-rc.d/cookcli/run @@ -24,6 +24,6 @@ fi bashio::log.info "Démarrage du serveur CookCLI..." exec cook server "${RECIPES_PATH}" \ --port "${PORT}" \ - --host "127.0.0.1" \ + --host "0.0.0.0" \ --log-level "${LOG_LEVEL}" \ >> /proc/1/fd/1 2>&1 \ No newline at end of file -- 2.43.4 From d04d6e61a4c8521a2b883bbe29f180e628bdb99c Mon Sep 17 00:00:00 2001 From: TheThomaas Date: Sat, 5 Sep 2026 20:35:50 +0000 Subject: [PATCH 020/157] Actualiser cookcli/config.yaml --- cookcli/config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cookcli/config.yaml b/cookcli/config.yaml index ab5917d..7ee4145 100644 --- a/cookcli/config.yaml +++ b/cookcli/config.yaml @@ -1,7 +1,7 @@ --- name: CookCLI Server DEV slug: cookcli -version: 1.0.6 +version: 1.0.7 description: "Serveur CookCLI avec synchronisation Git - Gestionnaire de recettes Cooklang" url: "https://git.thethomaas.net/TheThomaas/home-assistant-apps" arch: -- 2.43.4 From fad84892d806cf653bd5f6a3f7f2354ac0796482 Mon Sep 17 00:00:00 2001 From: TheThomaas Date: Sat, 5 Sep 2026 20:37:21 +0000 Subject: [PATCH 021/157] Ajouter cookcli/rootfs/etc/s6-overlay/s6-rc.d/nginx/type --- cookcli/rootfs/etc/s6-overlay/s6-rc.d/nginx/type | 1 + 1 file changed, 1 insertion(+) create mode 100644 cookcli/rootfs/etc/s6-overlay/s6-rc.d/nginx/type diff --git a/cookcli/rootfs/etc/s6-overlay/s6-rc.d/nginx/type b/cookcli/rootfs/etc/s6-overlay/s6-rc.d/nginx/type new file mode 100644 index 0000000..1780f9f --- /dev/null +++ b/cookcli/rootfs/etc/s6-overlay/s6-rc.d/nginx/type @@ -0,0 +1 @@ +longrun \ No newline at end of file -- 2.43.4 From d8ec8f4f4452cc88b0634e996e03244701e3adeb Mon Sep 17 00:00:00 2001 From: TheThomaas Date: Sat, 5 Sep 2026 20:38:45 +0000 Subject: [PATCH 022/157] Actualiser cookcli/config.yaml --- cookcli/config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cookcli/config.yaml b/cookcli/config.yaml index 7ee4145..7ef65d4 100644 --- a/cookcli/config.yaml +++ b/cookcli/config.yaml @@ -1,7 +1,7 @@ --- name: CookCLI Server DEV slug: cookcli -version: 1.0.7 +version: 1.0.8 description: "Serveur CookCLI avec synchronisation Git - Gestionnaire de recettes Cooklang" url: "https://git.thethomaas.net/TheThomaas/home-assistant-apps" arch: -- 2.43.4 From ad37154b940bc7042eec14a958183c53b9ddbec1 Mon Sep 17 00:00:00 2001 From: TheThomaas Date: Sat, 5 Sep 2026 20:41:05 +0000 Subject: [PATCH 023/157] Supprimer cookcli/rootfs/etc/s6-overlay/s6-rc.d/nginx/type --- cookcli/rootfs/etc/s6-overlay/s6-rc.d/nginx/type | 1 - 1 file changed, 1 deletion(-) delete mode 100644 cookcli/rootfs/etc/s6-overlay/s6-rc.d/nginx/type diff --git a/cookcli/rootfs/etc/s6-overlay/s6-rc.d/nginx/type b/cookcli/rootfs/etc/s6-overlay/s6-rc.d/nginx/type deleted file mode 100644 index 1780f9f..0000000 --- a/cookcli/rootfs/etc/s6-overlay/s6-rc.d/nginx/type +++ /dev/null @@ -1 +0,0 @@ -longrun \ No newline at end of file -- 2.43.4 From bda61084a1e8d397a263f9a4aee75f204a21fcc2 Mon Sep 17 00:00:00 2001 From: TheThomaas Date: Sat, 5 Sep 2026 20:42:08 +0000 Subject: [PATCH 024/157] Ajouter cookcli/rootfs/etc/s6-overlay/s6-rc.d/nginx/type --- cookcli/rootfs/etc/s6-overlay/s6-rc.d/nginx/type | 1 + 1 file changed, 1 insertion(+) create mode 100644 cookcli/rootfs/etc/s6-overlay/s6-rc.d/nginx/type diff --git a/cookcli/rootfs/etc/s6-overlay/s6-rc.d/nginx/type b/cookcli/rootfs/etc/s6-overlay/s6-rc.d/nginx/type new file mode 100644 index 0000000..1780f9f --- /dev/null +++ b/cookcli/rootfs/etc/s6-overlay/s6-rc.d/nginx/type @@ -0,0 +1 @@ +longrun \ No newline at end of file -- 2.43.4 From c5c0126e2bf2ad74d20d10bbf0e5dc24881fdc5f Mon Sep 17 00:00:00 2001 From: TheThomaas Date: Sat, 5 Sep 2026 20:42:50 +0000 Subject: [PATCH 025/157] Ajouter cookcli/rootfs/etc/s6-overlay/s6-rc.d/nginx/run --- .../rootfs/etc/s6-overlay/s6-rc.d/nginx/run | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 cookcli/rootfs/etc/s6-overlay/s6-rc.d/nginx/run diff --git a/cookcli/rootfs/etc/s6-overlay/s6-rc.d/nginx/run b/cookcli/rootfs/etc/s6-overlay/s6-rc.d/nginx/run new file mode 100644 index 0000000..e22ba83 --- /dev/null +++ b/cookcli/rootfs/etc/s6-overlay/s6-rc.d/nginx/run @@ -0,0 +1,27 @@ +#!/command/with-contenv bashio +set -e + +bashio::log.info "=== Service Nginx pour l'Ingress ===" + +# Attendre que CookCLI soit prêt +bashio::log.info "Attente du démarrage de CookCLI..." +MAX_RETRIES=30 +RETRY_COUNT=0 + +while [ $RETRY_COUNT -lt $MAX_RETRIES ]; do + if nc -z 127.0.0.1 9081 2>/dev/null; then + bashio::log.info "✅ CookCLI est prêt sur le port 9081" + break + fi + RETRY_COUNT=$((RETRY_COUNT + 1)) + bashio::log.info "⏳ Attente de CookCLI... (${RETRY_COUNT}/${MAX_RETRIES})" + sleep 1 +done + +if [ $RETRY_COUNT -eq $MAX_RETRIES ]; then + bashio::log.warning "⚠️ CookCLI n'a pas démarré dans les délais, démarrage quand même..." +fi + +# Démarrer Nginx +bashio::log.info "Démarrage de Nginx..." +exec nginx -g "daemon off;" >> /proc/1/fd/1 2>&1 \ No newline at end of file -- 2.43.4 From b25e1c9fe7dc912ac1c795e67fea0a0a42bba5ce Mon Sep 17 00:00:00 2001 From: TheThomaas Date: Sat, 5 Sep 2026 20:43:12 +0000 Subject: [PATCH 026/157] Actualiser cookcli/config.yaml --- cookcli/config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cookcli/config.yaml b/cookcli/config.yaml index 7ef65d4..26e55d6 100644 --- a/cookcli/config.yaml +++ b/cookcli/config.yaml @@ -1,7 +1,7 @@ --- name: CookCLI Server DEV slug: cookcli -version: 1.0.8 +version: 1.0.9 description: "Serveur CookCLI avec synchronisation Git - Gestionnaire de recettes Cooklang" url: "https://git.thethomaas.net/TheThomaas/home-assistant-apps" arch: -- 2.43.4 From 5b784996d0a8268732532b9ee653b7d8969a9366 Mon Sep 17 00:00:00 2001 From: TheThomaas Date: Sat, 5 Sep 2026 20:52:48 +0000 Subject: [PATCH 027/157] Actualiser cookcli/rootfs/etc/s6-overlay/scripts/run-all --- cookcli/rootfs/etc/s6-overlay/scripts/run-all | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cookcli/rootfs/etc/s6-overlay/scripts/run-all b/cookcli/rootfs/etc/s6-overlay/scripts/run-all index b6b303c..75b20e3 100644 --- a/cookcli/rootfs/etc/s6-overlay/scripts/run-all +++ b/cookcli/rootfs/etc/s6-overlay/scripts/run-all @@ -4,7 +4,7 @@ set -e bashio::log.info "=== CookCLI Add-on avec Ingress ===" # Variables d'environnement pour l'Ingress -export INGRESS_PATH="/api/hassio_ingress/$(bashio::config 'ingress_token')" +export INGRESS_PATH="/api/hassio_ingress/$(bashio::addon.ingress_entry)" bashio::log.info "Chemin Ingress configuré: ${INGRESS_PATH}" # Démarrer les services S6 -- 2.43.4 From c82b790ac55fd477ddc31061ee6dff6893f23d59 Mon Sep 17 00:00:00 2001 From: TheThomaas Date: Sat, 5 Sep 2026 20:53:06 +0000 Subject: [PATCH 028/157] Actualiser cookcli/config.yaml --- cookcli/config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cookcli/config.yaml b/cookcli/config.yaml index 26e55d6..f16a426 100644 --- a/cookcli/config.yaml +++ b/cookcli/config.yaml @@ -1,7 +1,7 @@ --- name: CookCLI Server DEV slug: cookcli -version: 1.0.9 +version: 1.0.10 description: "Serveur CookCLI avec synchronisation Git - Gestionnaire de recettes Cooklang" url: "https://git.thethomaas.net/TheThomaas/home-assistant-apps" arch: -- 2.43.4 From f059d0888942a2141912c9ea50854da1f216760c Mon Sep 17 00:00:00 2001 From: TheThomaas Date: Sat, 5 Sep 2026 20:55:50 +0000 Subject: [PATCH 029/157] Actualiser cookcli/rootfs/etc/s6-overlay/scripts/run-all --- cookcli/rootfs/etc/s6-overlay/scripts/run-all | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cookcli/rootfs/etc/s6-overlay/scripts/run-all b/cookcli/rootfs/etc/s6-overlay/scripts/run-all index 75b20e3..066826b 100644 --- a/cookcli/rootfs/etc/s6-overlay/scripts/run-all +++ b/cookcli/rootfs/etc/s6-overlay/scripts/run-all @@ -4,8 +4,8 @@ set -e bashio::log.info "=== CookCLI Add-on avec Ingress ===" # Variables d'environnement pour l'Ingress -export INGRESS_PATH="/api/hassio_ingress/$(bashio::addon.ingress_entry)" -bashio::log.info "Chemin Ingress configuré: ${INGRESS_PATH}" +# export INGRESS_PATH="/api/hassio_ingress/$(bashio::addon.ingress_entry)" +# bashio::log.info "Chemin Ingress configuré: ${INGRESS_PATH}" # Démarrer les services S6 exec /init \ No newline at end of file -- 2.43.4 From 914f86a08f7ae8e51eec91d6cf85d447776974fc Mon Sep 17 00:00:00 2001 From: TheThomaas Date: Sat, 5 Sep 2026 21:01:10 +0000 Subject: [PATCH 030/157] Actualiser cookcli/config.yaml --- cookcli/config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cookcli/config.yaml b/cookcli/config.yaml index f16a426..9de4e20 100644 --- a/cookcli/config.yaml +++ b/cookcli/config.yaml @@ -1,7 +1,7 @@ --- name: CookCLI Server DEV slug: cookcli -version: 1.0.10 +version: 1.0.11 description: "Serveur CookCLI avec synchronisation Git - Gestionnaire de recettes Cooklang" url: "https://git.thethomaas.net/TheThomaas/home-assistant-apps" arch: -- 2.43.4 From fe4bcf66646a473b58e2564e88e1c78925636a9d Mon Sep 17 00:00:00 2001 From: TheThomaas Date: Sat, 5 Sep 2026 21:22:45 +0000 Subject: [PATCH 031/157] Actualiser cookcli/rootfs/etc/services.d/nginx/run --- cookcli/rootfs/etc/services.d/nginx/run | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cookcli/rootfs/etc/services.d/nginx/run b/cookcli/rootfs/etc/services.d/nginx/run index 341166e..4f20fde 100644 --- a/cookcli/rootfs/etc/services.d/nginx/run +++ b/cookcli/rootfs/etc/services.d/nginx/run @@ -4,7 +4,7 @@ set -e bashio::log.info "=== Service Nginx pour l'Ingress ===" # Générer un fichier de configuration pour les headers Ingress -INGRESS_PATH="/api/hassio_ingress/$(bashio::config 'ingress_token')" +INGRESS_PATH="/api/hassio_ingress/$(bashio::addon.ingress_entry)" bashio::log.info "Chemin Ingress: ${INGRESS_PATH}" # Démarrer Nginx -- 2.43.4 From 83879950c941daa7da93e33b940707f015af28b3 Mon Sep 17 00:00:00 2001 From: TheThomaas Date: Sat, 5 Sep 2026 21:22:58 +0000 Subject: [PATCH 032/157] Actualiser cookcli/config.yaml --- cookcli/config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cookcli/config.yaml b/cookcli/config.yaml index 9de4e20..58c0daa 100644 --- a/cookcli/config.yaml +++ b/cookcli/config.yaml @@ -1,7 +1,7 @@ --- name: CookCLI Server DEV slug: cookcli -version: 1.0.11 +version: 1.0.12 description: "Serveur CookCLI avec synchronisation Git - Gestionnaire de recettes Cooklang" url: "https://git.thethomaas.net/TheThomaas/home-assistant-apps" arch: -- 2.43.4 From f5096c6ffda9305908a8a98f47df93f9f338dac7 Mon Sep 17 00:00:00 2001 From: TheThomaas Date: Sat, 5 Sep 2026 21:24:39 +0000 Subject: [PATCH 033/157] Actualiser cookcli/rootfs/etc/services.d/nginx/run --- cookcli/rootfs/etc/services.d/nginx/run | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cookcli/rootfs/etc/services.d/nginx/run b/cookcli/rootfs/etc/services.d/nginx/run index 4f20fde..75fa4a8 100644 --- a/cookcli/rootfs/etc/services.d/nginx/run +++ b/cookcli/rootfs/etc/services.d/nginx/run @@ -4,7 +4,7 @@ set -e bashio::log.info "=== Service Nginx pour l'Ingress ===" # Générer un fichier de configuration pour les headers Ingress -INGRESS_PATH="/api/hassio_ingress/$(bashio::addon.ingress_entry)" +# INGRESS_PATH="/api/hassio_ingress/$(bashio::addon.ingress_entry)" bashio::log.info "Chemin Ingress: ${INGRESS_PATH}" # Démarrer Nginx -- 2.43.4 From 05a9832de86f8ded6f9c4cfa4a887ff95b9acb11 Mon Sep 17 00:00:00 2001 From: TheThomaas Date: Sat, 5 Sep 2026 21:24:54 +0000 Subject: [PATCH 034/157] Actualiser cookcli/config.yaml --- cookcli/config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cookcli/config.yaml b/cookcli/config.yaml index 58c0daa..ed2e6b7 100644 --- a/cookcli/config.yaml +++ b/cookcli/config.yaml @@ -1,7 +1,7 @@ --- name: CookCLI Server DEV slug: cookcli -version: 1.0.12 +version: 1.0.13 description: "Serveur CookCLI avec synchronisation Git - Gestionnaire de recettes Cooklang" url: "https://git.thethomaas.net/TheThomaas/home-assistant-apps" arch: -- 2.43.4 From 037ec6f70ded2a61df723b27cf5c13236e78a5aa Mon Sep 17 00:00:00 2001 From: TheThomaas Date: Sat, 5 Sep 2026 21:27:30 +0000 Subject: [PATCH 035/157] Actualiser cookcli/rootfs/etc/services.d/nginx/run --- cookcli/rootfs/etc/services.d/nginx/run | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cookcli/rootfs/etc/services.d/nginx/run b/cookcli/rootfs/etc/services.d/nginx/run index 75fa4a8..dc94c40 100644 --- a/cookcli/rootfs/etc/services.d/nginx/run +++ b/cookcli/rootfs/etc/services.d/nginx/run @@ -5,7 +5,7 @@ bashio::log.info "=== Service Nginx pour l'Ingress ===" # Générer un fichier de configuration pour les headers Ingress # INGRESS_PATH="/api/hassio_ingress/$(bashio::addon.ingress_entry)" -bashio::log.info "Chemin Ingress: ${INGRESS_PATH}" +# bashio::log.info "Chemin Ingress: ${INGRESS_PATH}" # Démarrer Nginx exec nginx -g "daemon off;" >> /proc/1/fd/1 2>&1 \ No newline at end of file -- 2.43.4 From 45749811371d056557048cea0b10bd64299d720f Mon Sep 17 00:00:00 2001 From: TheThomaas Date: Sat, 5 Sep 2026 21:27:44 +0000 Subject: [PATCH 036/157] Actualiser cookcli/config.yaml --- cookcli/config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cookcli/config.yaml b/cookcli/config.yaml index ed2e6b7..d64f1b5 100644 --- a/cookcli/config.yaml +++ b/cookcli/config.yaml @@ -1,7 +1,7 @@ --- name: CookCLI Server DEV slug: cookcli -version: 1.0.13 +version: 1.0.14 description: "Serveur CookCLI avec synchronisation Git - Gestionnaire de recettes Cooklang" url: "https://git.thethomaas.net/TheThomaas/home-assistant-apps" arch: -- 2.43.4 From 3aea999a352ba16de3d02c6dfeef66c0e1eface7 Mon Sep 17 00:00:00 2001 From: TheThomaas Date: Sat, 5 Sep 2026 21:33:28 +0000 Subject: [PATCH 037/157] Ajouter cookcli/rootfs/etc/services.d/run --- cookcli/rootfs/etc/services.d/run | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 cookcli/rootfs/etc/services.d/run diff --git a/cookcli/rootfs/etc/services.d/run b/cookcli/rootfs/etc/services.d/run new file mode 100644 index 0000000..46adc71 --- /dev/null +++ b/cookcli/rootfs/etc/services.d/run @@ -0,0 +1,28 @@ +#!/usr/bin/with-contenv bashio +set -e + +bashio::log.info "=== Service Nginx pour l'Ingress ===" + +# Attendre que CookCLI soit prêt (port 9081) +bashio::log.info "Attente du démarrage de CookCLI sur le port 9081..." +MAX_RETRIES=30 +RETRY_COUNT=0 + +while [ $RETRY_COUNT -lt $MAX_RETRIES ]; do + # Vérifier si le port 9081 est accessible + if nc -z 127.0.0.1 9081 2>/dev/null || curl -s -o /dev/null http://127.0.0.1:9081/api/stats 2>/dev/null; then + bashio::log.info "✅ CookCLI est prêt sur le port 9081" + break + fi + RETRY_COUNT=$((RETRY_COUNT + 1)) + bashio::log.info "⏳ Attente de CookCLI... (${RETRY_COUNT}/${MAX_RETRIES})" + sleep 1 +done + +if [ $RETRY_COUNT -eq $MAX_RETRIES ]; then + bashio::log.warning "⚠️ CookCLI n'a pas démarré dans les délais, démarrage de Nginx quand même..." +fi + +# Démarrer Nginx +bashio::log.info "Démarrage de Nginx..." +exec nginx -g "daemon off;" >> /proc/1/fd/1 2>&1 \ No newline at end of file -- 2.43.4 From e806765e695f2728c1e5c31b9e0a0e340ecfca13 Mon Sep 17 00:00:00 2001 From: TheThomaas Date: Sat, 5 Sep 2026 21:34:20 +0000 Subject: [PATCH 038/157] Ajouter cookcli/rootfs/etc/services.d/cookcli/run --- cookcli/rootfs/etc/services.d/cookcli/run | 29 +++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 cookcli/rootfs/etc/services.d/cookcli/run diff --git a/cookcli/rootfs/etc/services.d/cookcli/run b/cookcli/rootfs/etc/services.d/cookcli/run new file mode 100644 index 0000000..a8e08f4 --- /dev/null +++ b/cookcli/rootfs/etc/services.d/cookcli/run @@ -0,0 +1,29 @@ +#!/usr/bin/with-contenv bashio +set -e + +# --- Configuration --- +RECIPES_PATH=$(bashio::config 'recipes_path') +PORT=9081 +LOG_LEVEL=$(bashio::config 'log_level') + +bashio::log.info "=== CookCLI Server ===" +bashio::log.info "Dossier des recettes: ${RECIPES_PATH}" +bashio::log.info "Port: ${PORT}" +bashio::log.info "Niveau de log: ${LOG_LEVEL}" + +# Création du dossier si inexistant +mkdir -p "${RECIPES_PATH}" + +# Synchronisation Git initiale (si configurée) +if [ -n "$(bashio::config 'git_repository')" ]; then + bashio::log.info "Synchronisation Git initiale..." + # Implémentez votre logique de sync ici +fi + +# Lancement du serveur CookCLI sur toutes les interfaces +bashio::log.info "Démarrage du serveur CookCLI..." +exec cook server "${RECIPES_PATH}" \ + --port "${PORT}" \ + --host "0.0.0.0" \ + --log-level "${LOG_LEVEL}" \ + >> /proc/1/fd/1 2>&1 \ No newline at end of file -- 2.43.4 From 4cfa5020d73751ee80099f10b2c46ea7c74c4fd0 Mon Sep 17 00:00:00 2001 From: TheThomaas Date: Sat, 5 Sep 2026 21:34:41 +0000 Subject: [PATCH 039/157] Ajouter cookcli/rootfs/etc/services.d/cookcli/finish --- cookcli/rootfs/etc/services.d/cookcli/finish | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 cookcli/rootfs/etc/services.d/cookcli/finish diff --git a/cookcli/rootfs/etc/services.d/cookcli/finish b/cookcli/rootfs/etc/services.d/cookcli/finish new file mode 100644 index 0000000..9fcbd55 --- /dev/null +++ b/cookcli/rootfs/etc/services.d/cookcli/finish @@ -0,0 +1,13 @@ +#!/usr/bin/with-contenv bashio +set -e + +EXIT_CODE=$1 +bashio::log.warning "CookCLI s'est arrêté avec le code ${EXIT_CODE}" + +if [ ${EXIT_CODE} -eq 0 ]; then + bashio::log.info "Arrêt normal de CookCLI" +else + bashio::log.warning "Redémarrage de CookCLI dans 5 secondes..." + sleep 5 + exit ${EXIT_CODE} +fi \ No newline at end of file -- 2.43.4 From 5f44ccefb43ce944121b86a76e0a92642872b633 Mon Sep 17 00:00:00 2001 From: TheThomaas Date: Sat, 5 Sep 2026 21:35:01 +0000 Subject: [PATCH 040/157] Ajouter cookcli/rootfs/etc/services.d/nginx/finish --- cookcli/rootfs/etc/services.d/nginx/finish | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 cookcli/rootfs/etc/services.d/nginx/finish diff --git a/cookcli/rootfs/etc/services.d/nginx/finish b/cookcli/rootfs/etc/services.d/nginx/finish new file mode 100644 index 0000000..212781d --- /dev/null +++ b/cookcli/rootfs/etc/services.d/nginx/finish @@ -0,0 +1,6 @@ +#!/usr/bin/with-contenv bashio +set -e + +EXIT_CODE=$1 +bashio::log.warning "Nginx s'est arrêté avec le code ${EXIT_CODE}" +exit ${EXIT_CODE} \ No newline at end of file -- 2.43.4 From 77c7db80ee3fa8ac5b1a5fe72818b54051aed336 Mon Sep 17 00:00:00 2001 From: TheThomaas Date: Sat, 5 Sep 2026 21:35:40 +0000 Subject: [PATCH 041/157] Actualiser cookcli/config.yaml --- cookcli/config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cookcli/config.yaml b/cookcli/config.yaml index d64f1b5..03d3e58 100644 --- a/cookcli/config.yaml +++ b/cookcli/config.yaml @@ -1,7 +1,7 @@ --- name: CookCLI Server DEV slug: cookcli -version: 1.0.14 +version: 1.0.15 description: "Serveur CookCLI avec synchronisation Git - Gestionnaire de recettes Cooklang" url: "https://git.thethomaas.net/TheThomaas/home-assistant-apps" arch: -- 2.43.4 From b7dabf1af14aceac8c41dbba9e022e8701a0d97b Mon Sep 17 00:00:00 2001 From: TheThomaas Date: Sat, 5 Sep 2026 21:38:15 +0000 Subject: [PATCH 042/157] Ajouter cookcli/rootfs/etc/cont-init.d/99-diagnostic.sh --- cookcli/rootfs/etc/cont-init.d/99-diagnostic.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 cookcli/rootfs/etc/cont-init.d/99-diagnostic.sh diff --git a/cookcli/rootfs/etc/cont-init.d/99-diagnostic.sh b/cookcli/rootfs/etc/cont-init.d/99-diagnostic.sh new file mode 100644 index 0000000..eadb099 --- /dev/null +++ b/cookcli/rootfs/etc/cont-init.d/99-diagnostic.sh @@ -0,0 +1,16 @@ +#!/usr/bin/with-contenv bashio +set -e + +bashio::log.info "=== Diagnostic de l'architecture ===" + +# Afficher l'architecture +bashio::log.info "Architecture système: $(uname -m)" +bashio::log.info "Architecture détaillée: $(uname -a)" + +# Vérifier le binaire CookCLI +if [ -f /usr/local/bin/cook ]; then + bashio::log.info "Type de fichier CookCLI: $(file /usr/local/bin/cook)" + bashio::log.info "Permissions: $(ls -la /usr/local/bin/cook)" +fi + +bashio::log.info "=== Fin du diagnostic ===" \ No newline at end of file -- 2.43.4 From 683c017b748854915ddaa7c8b00e6e169c1f71bd Mon Sep 17 00:00:00 2001 From: TheThomaas Date: Sat, 5 Sep 2026 21:38:32 +0000 Subject: [PATCH 043/157] Actualiser cookcli/config.yaml --- cookcli/config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cookcli/config.yaml b/cookcli/config.yaml index 03d3e58..aee9178 100644 --- a/cookcli/config.yaml +++ b/cookcli/config.yaml @@ -1,7 +1,7 @@ --- name: CookCLI Server DEV slug: cookcli -version: 1.0.15 +version: 1.0.16 description: "Serveur CookCLI avec synchronisation Git - Gestionnaire de recettes Cooklang" url: "https://git.thethomaas.net/TheThomaas/home-assistant-apps" arch: -- 2.43.4 From 88e0b317d4fcf575bc215e2640c29b3e5e7363b8 Mon Sep 17 00:00:00 2001 From: TheThomaas Date: Sat, 5 Sep 2026 21:40:04 +0000 Subject: [PATCH 044/157] Supprimer cookcli/rootfs/etc/cont-init.d/99-diagnostic.sh --- cookcli/rootfs/etc/cont-init.d/99-diagnostic.sh | 16 ---------------- 1 file changed, 16 deletions(-) delete mode 100644 cookcli/rootfs/etc/cont-init.d/99-diagnostic.sh diff --git a/cookcli/rootfs/etc/cont-init.d/99-diagnostic.sh b/cookcli/rootfs/etc/cont-init.d/99-diagnostic.sh deleted file mode 100644 index eadb099..0000000 --- a/cookcli/rootfs/etc/cont-init.d/99-diagnostic.sh +++ /dev/null @@ -1,16 +0,0 @@ -#!/usr/bin/with-contenv bashio -set -e - -bashio::log.info "=== Diagnostic de l'architecture ===" - -# Afficher l'architecture -bashio::log.info "Architecture système: $(uname -m)" -bashio::log.info "Architecture détaillée: $(uname -a)" - -# Vérifier le binaire CookCLI -if [ -f /usr/local/bin/cook ]; then - bashio::log.info "Type de fichier CookCLI: $(file /usr/local/bin/cook)" - bashio::log.info "Permissions: $(ls -la /usr/local/bin/cook)" -fi - -bashio::log.info "=== Fin du diagnostic ===" \ No newline at end of file -- 2.43.4 From 05c6dcff6aeb3908982bb26779bb5059d9de2399 Mon Sep 17 00:00:00 2001 From: TheThomaas Date: Sat, 5 Sep 2026 21:50:24 +0000 Subject: [PATCH 045/157] Actualiser cookcli/Dockerfile --- cookcli/Dockerfile | 26 ++++++++++++++++++++------ 1 file changed, 20 insertions(+), 6 deletions(-) diff --git a/cookcli/Dockerfile b/cookcli/Dockerfile index cfec8c1..c696fbe 100644 --- a/cookcli/Dockerfile +++ b/cookcli/Dockerfile @@ -9,16 +9,30 @@ RUN apk add --no-cache \ git \ openssh-client \ nginx \ - && curl -L https://github.com/cooklang/CookCLI/releases/latest/download/cook-x86_64-unknown-freebsd.tar.gz | tar xz \ - && mv cook /usr/local/bin/ \ - && chmod a+x /usr/local/bin/cook + file -# Copie du système de fichiers +# Détection de l'architecture et téléchargement de la bonne version +RUN ARCH=$(uname -m) && \ + case "${ARCH}" in \ + x86_64) COOK_ARCH="x86_64-unknown-linux-musl" ;; \ + aarch64) COOK_ARCH="aarch64-unknown-linux-musl" ;; \ + armv7l) COOK_ARCH="arm-unknown-linux-musleabihf" ;; \ + armv6l) COOK_ARCH="arm-unknown-linux-musleabihf" ;; \ + *) COOK_ARCH="i686-unknown-linux-musl" ;; \ + esac && \ + echo "Téléchargement de CookCLI pour l'architecture: ${COOK_ARCH}" && \ + curl -L "https://github.com/cooklang/CookCLI/releases/latest/download/cook-${COOK_ARCH}.tar.gz" | tar xz && \ + mv cook /usr/local/bin/ && \ + chmod a+x /usr/local/bin/cook && \ + # Vérification du binaire + file /usr/local/bin/cook && \ + /usr/local/bin/cook --version + +# Copie des fichiers COPY rootfs / -# Rendre tous les scripts run exécutables +# Rendre tous les scripts exécutables RUN find /etc -name "run" -type f -exec chmod +x {} \; \ && find /usr -name "*.sh" -type f -exec chmod +x {} \; -# Point d'entrée S6-overlay ENTRYPOINT ["/init"] \ No newline at end of file -- 2.43.4 From 5d3372c778f92b0ac81b7750ac0b8e8729a31b44 Mon Sep 17 00:00:00 2001 From: TheThomaas Date: Sat, 5 Sep 2026 21:50:42 +0000 Subject: [PATCH 046/157] Actualiser cookcli/config.yaml --- cookcli/config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cookcli/config.yaml b/cookcli/config.yaml index aee9178..fc77dd2 100644 --- a/cookcli/config.yaml +++ b/cookcli/config.yaml @@ -1,7 +1,7 @@ --- name: CookCLI Server DEV slug: cookcli -version: 1.0.16 +version: 1.0.17 description: "Serveur CookCLI avec synchronisation Git - Gestionnaire de recettes Cooklang" url: "https://git.thethomaas.net/TheThomaas/home-assistant-apps" arch: -- 2.43.4 From 62541bde54d0eb8bb664945db2ab7d52b443ec37 Mon Sep 17 00:00:00 2001 From: TheThomaas Date: Sat, 5 Sep 2026 21:53:37 +0000 Subject: [PATCH 047/157] Actualiser cookcli/rootfs/etc/services.d/cookcli/run --- cookcli/rootfs/etc/services.d/cookcli/run | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cookcli/rootfs/etc/services.d/cookcli/run b/cookcli/rootfs/etc/services.d/cookcli/run index a8e08f4..e86140f 100644 --- a/cookcli/rootfs/etc/services.d/cookcli/run +++ b/cookcli/rootfs/etc/services.d/cookcli/run @@ -25,5 +25,5 @@ bashio::log.info "Démarrage du serveur CookCLI..." exec cook server "${RECIPES_PATH}" \ --port "${PORT}" \ --host "0.0.0.0" \ - --log-level "${LOG_LEVEL}" \ + # --log-level "${LOG_LEVEL}" \ >> /proc/1/fd/1 2>&1 \ No newline at end of file -- 2.43.4 From ece33422426e9ddb30681930656a5c99347f7bf5 Mon Sep 17 00:00:00 2001 From: TheThomaas Date: Sat, 5 Sep 2026 21:53:48 +0000 Subject: [PATCH 048/157] Actualiser cookcli/config.yaml --- cookcli/config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cookcli/config.yaml b/cookcli/config.yaml index fc77dd2..29cc804 100644 --- a/cookcli/config.yaml +++ b/cookcli/config.yaml @@ -1,7 +1,7 @@ --- name: CookCLI Server DEV slug: cookcli -version: 1.0.17 +version: 1.0.18 description: "Serveur CookCLI avec synchronisation Git - Gestionnaire de recettes Cooklang" url: "https://git.thethomaas.net/TheThomaas/home-assistant-apps" arch: -- 2.43.4 From 593a12fbdcef1597e220a93bf8df002860e7e44b Mon Sep 17 00:00:00 2001 From: TheThomaas Date: Sat, 5 Sep 2026 21:56:22 +0000 Subject: [PATCH 049/157] Ajouter cookcli/rootfs/etc/services.d/git-sync/run --- cookcli/rootfs/etc/services.d/git-sync/run | 70 ++++++++++++++++++++++ 1 file changed, 70 insertions(+) create mode 100644 cookcli/rootfs/etc/services.d/git-sync/run diff --git a/cookcli/rootfs/etc/services.d/git-sync/run b/cookcli/rootfs/etc/services.d/git-sync/run new file mode 100644 index 0000000..3d10f6a --- /dev/null +++ b/cookcli/rootfs/etc/services.d/git-sync/run @@ -0,0 +1,70 @@ +#!/usr/bin/with-contenv bashio +set -e + +# --- Fonction de synchronisation Git --- +sync_git() { + local REPO=$(bashio::config 'git_repository') + local BRANCH=$(bashio::config 'git_branch') + local USERNAME=$(bashio::config 'git_username') + local PASSWORD=$(bashio::config 'git_password') + local PATH=$(bashio::config 'recipes_path') + + if [ -z "$REPO" ]; then + bashio::log.info "Aucun dépôt Git configuré. Attente..." + sleep infinity + return + fi + + bashio::log.info "Synchronisation avec ${REPO} (branche: ${BRANCH})" + + # Construction de l'URL avec authentification si nécessaire + local AUTH_URL="$REPO" + if [ -n "$USERNAME" ] && [ -n "$PASSWORD" ]; then + # Supposons que l'URL est de type https://github.com/user/repo.git + local PROTOCOL="https://" + local REPO_WITHOUT_PROTOCOL="${REPO#https://}" + REPO_WITHOUT_PROTOCOL="${REPO_WITHOUT_PROTOCOL#http://}" + AUTH_URL="${PROTOCOL}${USERNAME}:${PASSWORD}@${REPO_WITHOUT_PROTOCOL}" + bashio::log.info "Authentification configurée pour ${USERNAME}" + fi + + # Clone ou pull + if [ ! -d "$PATH/.git" ]; then + bashio::log.info "Premier clone du dépôt..." + git clone --branch "$BRANCH" "$AUTH_URL" "$PATH" 2>&1 | bashio::log.info + else + bashio::log.info "Mise à jour du dépôt existant..." + cd "$PATH" + # Réinitialisation pour éviter les conflits + git fetch origin "$BRANCH" 2>&1 | bashio::log.info + git reset --hard "origin/$BRANCH" 2>&1 | bashio::log.info + cd - > /dev/null + fi + + bashio::log.info "Synchronisation Git terminée." +} + +# --- Fonction de synchronisation périodique --- +periodic_sync() { + local INTERVAL=$(bashio::config 'git_sync_interval') + if [ -z "$INTERVAL" ] || [ "$INTERVAL" -eq 0 ]; then + INTERVAL=3600 + fi + + bashio::log.info "Synchronisation périodique configurée toutes les ${INTERVAL}s" + + while true; do + sleep "$INTERVAL" + bashio::log.info "=== Synchronisation Git périodique ===" + sync_git + done +} + +# --- Exécution --- +bashio::log.info "=== Service de synchronisation Git ===" + +# Premier sync au démarrage +sync_git + +# Lancement du sync périodique en arrière-plan +periodic_sync & \ No newline at end of file -- 2.43.4 From 656f27dd40a69ce783f9492df8244140533b64b3 Mon Sep 17 00:00:00 2001 From: TheThomaas Date: Sat, 5 Sep 2026 21:56:47 +0000 Subject: [PATCH 050/157] Actualiser cookcli/config.yaml --- cookcli/config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cookcli/config.yaml b/cookcli/config.yaml index 29cc804..8335c12 100644 --- a/cookcli/config.yaml +++ b/cookcli/config.yaml @@ -1,7 +1,7 @@ --- name: CookCLI Server DEV slug: cookcli -version: 1.0.18 +version: 1.0.19 description: "Serveur CookCLI avec synchronisation Git - Gestionnaire de recettes Cooklang" url: "https://git.thethomaas.net/TheThomaas/home-assistant-apps" arch: -- 2.43.4 From 80504237c9cfbcc5fdfe257233da78a6a16b58ab Mon Sep 17 00:00:00 2001 From: TheThomaas Date: Sat, 5 Sep 2026 22:04:40 +0000 Subject: [PATCH 051/157] Actualiser cookcli/Dockerfile --- cookcli/Dockerfile | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/cookcli/Dockerfile b/cookcli/Dockerfile index c696fbe..39093a0 100644 --- a/cookcli/Dockerfile +++ b/cookcli/Dockerfile @@ -4,11 +4,21 @@ FROM ${BUILD_FROM} # Installation des dépendances RUN apk add --no-cache \ + coreutils \ + util-linux \ # + procps \ # + net-tools \ # + curl \ + wget \ + bash \ + git \ openssh-client \ + nginx \ + nginx-mod-stream \ # file # Détection de l'architecture et téléchargement de la bonne version -- 2.43.4 From 122f8a4471e55da76314df5fefa6fd87fd80152a Mon Sep 17 00:00:00 2001 From: TheThomaas Date: Sat, 5 Sep 2026 22:05:31 +0000 Subject: [PATCH 052/157] Actualiser cookcli/config.yaml --- cookcli/config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cookcli/config.yaml b/cookcli/config.yaml index 8335c12..f0b6f39 100644 --- a/cookcli/config.yaml +++ b/cookcli/config.yaml @@ -1,7 +1,7 @@ --- name: CookCLI Server DEV slug: cookcli -version: 1.0.19 +version: 1.0.20 description: "Serveur CookCLI avec synchronisation Git - Gestionnaire de recettes Cooklang" url: "https://git.thethomaas.net/TheThomaas/home-assistant-apps" arch: -- 2.43.4 From f15dabbce134aab95fb59f5bce0fe0e640c6ebe3 Mon Sep 17 00:00:00 2001 From: TheThomaas Date: Sat, 5 Sep 2026 22:14:21 +0000 Subject: [PATCH 053/157] Actualiser cookcli/Dockerfile --- cookcli/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cookcli/Dockerfile b/cookcli/Dockerfile index 39093a0..c9a7e2c 100644 --- a/cookcli/Dockerfile +++ b/cookcli/Dockerfile @@ -6,7 +6,7 @@ FROM ${BUILD_FROM} RUN apk add --no-cache \ coreutils \ util-linux \ # - procps \ # + # procps \ net-tools \ # curl \ -- 2.43.4 From c5465f0edabf8e6c027bea1d780c9a76771385eb Mon Sep 17 00:00:00 2001 From: TheThomaas Date: Sat, 5 Sep 2026 22:14:32 +0000 Subject: [PATCH 054/157] Actualiser cookcli/config.yaml --- cookcli/config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cookcli/config.yaml b/cookcli/config.yaml index f0b6f39..62651ed 100644 --- a/cookcli/config.yaml +++ b/cookcli/config.yaml @@ -1,7 +1,7 @@ --- name: CookCLI Server DEV slug: cookcli -version: 1.0.20 +version: 1.0.21 description: "Serveur CookCLI avec synchronisation Git - Gestionnaire de recettes Cooklang" url: "https://git.thethomaas.net/TheThomaas/home-assistant-apps" arch: -- 2.43.4 From 8ae2930bd4ac35d0708f3834f620c654e5e7c6d9 Mon Sep 17 00:00:00 2001 From: TheThomaas Date: Sat, 5 Sep 2026 22:15:29 +0000 Subject: [PATCH 055/157] Actualiser cookcli/Dockerfile --- cookcli/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cookcli/Dockerfile b/cookcli/Dockerfile index c9a7e2c..7b539fc 100644 --- a/cookcli/Dockerfile +++ b/cookcli/Dockerfile @@ -7,7 +7,7 @@ RUN apk add --no-cache \ coreutils \ util-linux \ # # procps \ - net-tools \ # + # net-tools \ # curl \ wget \ -- 2.43.4 From 0cfb6b967513d003fb282b5e6eaff80e3c651739 Mon Sep 17 00:00:00 2001 From: TheThomaas Date: Sat, 5 Sep 2026 22:15:41 +0000 Subject: [PATCH 056/157] Actualiser cookcli/config.yaml --- cookcli/config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cookcli/config.yaml b/cookcli/config.yaml index 62651ed..af99403 100644 --- a/cookcli/config.yaml +++ b/cookcli/config.yaml @@ -1,7 +1,7 @@ --- name: CookCLI Server DEV slug: cookcli -version: 1.0.21 +version: 1.0.22 description: "Serveur CookCLI avec synchronisation Git - Gestionnaire de recettes Cooklang" url: "https://git.thethomaas.net/TheThomaas/home-assistant-apps" arch: -- 2.43.4 From 37600e73fed526c7e47563e7d20a8cf69e2a2b08 Mon Sep 17 00:00:00 2001 From: TheThomaas Date: Sat, 5 Sep 2026 22:17:21 +0000 Subject: [PATCH 057/157] Actualiser cookcli/Dockerfile --- cookcli/Dockerfile | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/cookcli/Dockerfile b/cookcli/Dockerfile index 7b539fc..240b5d8 100644 --- a/cookcli/Dockerfile +++ b/cookcli/Dockerfile @@ -5,20 +5,16 @@ FROM ${BUILD_FROM} # Installation des dépendances RUN apk add --no-cache \ coreutils \ - util-linux \ # - # procps \ - # net-tools \ # - + util-linux \ + procps \ + net-tools \ curl \ wget \ - bash \ - git \ openssh-client \ - nginx \ - nginx-mod-stream \ # + nginx-mod-stream \ file # Détection de l'architecture et téléchargement de la bonne version -- 2.43.4 From 151b631492c7c6dd9b78c23fb0f41419ced172db Mon Sep 17 00:00:00 2001 From: TheThomaas Date: Sat, 5 Sep 2026 22:17:38 +0000 Subject: [PATCH 058/157] Actualiser cookcli/config.yaml --- cookcli/config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cookcli/config.yaml b/cookcli/config.yaml index af99403..1703203 100644 --- a/cookcli/config.yaml +++ b/cookcli/config.yaml @@ -1,7 +1,7 @@ --- name: CookCLI Server DEV slug: cookcli -version: 1.0.22 +version: 1.0.23 description: "Serveur CookCLI avec synchronisation Git - Gestionnaire de recettes Cooklang" url: "https://git.thethomaas.net/TheThomaas/home-assistant-apps" arch: -- 2.43.4 From dbacb99a29bca3b5e750b0c9796a075b86b3cbf6 Mon Sep 17 00:00:00 2001 From: TheThomaas Date: Sun, 6 Sep 2026 06:58:28 +0000 Subject: [PATCH 059/157] Ajouter cookcli/rootfs/etc/cont-init.d/50-cookcli.sh --- cookcli/rootfs/etc/cont-init.d/50-cookcli.sh | 29 ++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 cookcli/rootfs/etc/cont-init.d/50-cookcli.sh diff --git a/cookcli/rootfs/etc/cont-init.d/50-cookcli.sh b/cookcli/rootfs/etc/cont-init.d/50-cookcli.sh new file mode 100644 index 0000000..2f76499 --- /dev/null +++ b/cookcli/rootfs/etc/cont-init.d/50-cookcli.sh @@ -0,0 +1,29 @@ +#!/usr/bin/with-contenv bashio +set -e + +bashio::log.info "=== Initialisation de CookCLI ===" + +# Vérifier que les commandes de base sont disponibles +if ! command -v date >/dev/null 2>&1; then + bashio::log.error "❌ La commande 'date' est introuvable !" + bashio::log.info "PATH actuel: ${PATH}" + # Forcer un PATH standard + export PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" + if ! command -v date >/dev/null 2>&1; then + bashio::log.error "❌ Échec : même avec un PATH standard, 'date' est introuvable." + exit 1 + fi +fi + +# Vérifier que CookCLI est exécutable +if [ ! -x /usr/local/bin/cook ]; then + bashio::log.error "❌ CookCLI n'est pas exécutable." + exit 1 +fi + +bashio::log.info "✅ CookCLI est prêt : $(/usr/local/bin/cook --version 2>&1 | head -n1)" + +# Créer le dossier des recettes +RECIPES_PATH=$(bashio::config 'recipes_path') +mkdir -p "${RECIPES_PATH}" +bashio::log.info "✅ Dossier des recettes : ${RECIPES_PATH}" \ No newline at end of file -- 2.43.4 From a93e99722bb91d175cdd4d449837167025b31ed5 Mon Sep 17 00:00:00 2001 From: TheThomaas Date: Sun, 6 Sep 2026 06:58:56 +0000 Subject: [PATCH 060/157] Ajouter cookcli/rootfs/etc/cont-init.d/60-nginx.sh --- cookcli/rootfs/etc/cont-init.d/60-nginx.sh | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 cookcli/rootfs/etc/cont-init.d/60-nginx.sh diff --git a/cookcli/rootfs/etc/cont-init.d/60-nginx.sh b/cookcli/rootfs/etc/cont-init.d/60-nginx.sh new file mode 100644 index 0000000..2fc7b1e --- /dev/null +++ b/cookcli/rootfs/etc/cont-init.d/60-nginx.sh @@ -0,0 +1,20 @@ +#!/usr/bin/with-contenv bashio +set -e + +bashio::log.info "=== Initialisation de Nginx ===" + +# Exporter le PATH pour Nginx +export PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" + +# Vérifier que Nginx est installé +if ! command -v nginx >/dev/null 2>&1; then + bashio::log.error "❌ Nginx n'est pas installé." + exit 1 +fi + +# Créer les dossiers nécessaires pour Nginx +mkdir -p /var/log/nginx +mkdir -p /var/lib/nginx/tmp/client_body +mkdir -p /var/lib/nginx/tmp/proxy + +bashio::log.info "✅ Nginx est prêt" \ No newline at end of file -- 2.43.4 From ce3800197517960ec0f08ab14e4ddabe81976744 Mon Sep 17 00:00:00 2001 From: TheThomaas Date: Sun, 6 Sep 2026 06:59:21 +0000 Subject: [PATCH 061/157] Ajouter cookcli/rootfs/etc/cont-init.d/70-git-sync.sh --- cookcli/rootfs/etc/cont-init.d/70-git-sync.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 cookcli/rootfs/etc/cont-init.d/70-git-sync.sh diff --git a/cookcli/rootfs/etc/cont-init.d/70-git-sync.sh b/cookcli/rootfs/etc/cont-init.d/70-git-sync.sh new file mode 100644 index 0000000..d071971 --- /dev/null +++ b/cookcli/rootfs/etc/cont-init.d/70-git-sync.sh @@ -0,0 +1,12 @@ +#!/usr/bin/with-contenv bashio +set -e + +bashio::log.info "=== Initialisation de Git Sync ===" + +# Vérifier que Git est installé +if ! command -v git >/dev/null 2>&1; then + bashio::log.warning "⚠️ Git n'est pas installé." + exit 0 +fi + +bashio::log.info "✅ Git est prêt : $(git --version)" \ No newline at end of file -- 2.43.4 From 81719df51eccdb6475f27fa98d40a7555e50f8dd Mon Sep 17 00:00:00 2001 From: TheThomaas Date: Sun, 6 Sep 2026 07:02:34 +0000 Subject: [PATCH 062/157] Actualiser cookcli/rootfs/etc/services.d/cookcli/run --- cookcli/rootfs/etc/services.d/cookcli/run | 23 ++++------------------- 1 file changed, 4 insertions(+), 19 deletions(-) diff --git a/cookcli/rootfs/etc/services.d/cookcli/run b/cookcli/rootfs/etc/services.d/cookcli/run index e86140f..087b1a1 100644 --- a/cookcli/rootfs/etc/services.d/cookcli/run +++ b/cookcli/rootfs/etc/services.d/cookcli/run @@ -1,29 +1,14 @@ #!/usr/bin/with-contenv bashio set -e -# --- Configuration --- +# L'environnement est déjà initialisé par cont-init.d +bashio::log.info "=== Démarrage du service CookCLI ===" + RECIPES_PATH=$(bashio::config 'recipes_path') PORT=9081 LOG_LEVEL=$(bashio::config 'log_level') -bashio::log.info "=== CookCLI Server ===" -bashio::log.info "Dossier des recettes: ${RECIPES_PATH}" -bashio::log.info "Port: ${PORT}" -bashio::log.info "Niveau de log: ${LOG_LEVEL}" - -# Création du dossier si inexistant -mkdir -p "${RECIPES_PATH}" - -# Synchronisation Git initiale (si configurée) -if [ -n "$(bashio::config 'git_repository')" ]; then - bashio::log.info "Synchronisation Git initiale..." - # Implémentez votre logique de sync ici -fi - -# Lancement du serveur CookCLI sur toutes les interfaces -bashio::log.info "Démarrage du serveur CookCLI..." -exec cook server "${RECIPES_PATH}" \ +exec /usr/local/bin/cook server "${RECIPES_PATH}" \ --port "${PORT}" \ --host "0.0.0.0" \ - # --log-level "${LOG_LEVEL}" \ >> /proc/1/fd/1 2>&1 \ No newline at end of file -- 2.43.4 From a42f96dc1eaff866c323f5cb7288b0c0803bd986 Mon Sep 17 00:00:00 2001 From: TheThomaas Date: Sun, 6 Sep 2026 07:04:36 +0000 Subject: [PATCH 063/157] Actualiser cookcli/rootfs/etc/services.d/nginx/run --- cookcli/rootfs/etc/services.d/nginx/run | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/cookcli/rootfs/etc/services.d/nginx/run b/cookcli/rootfs/etc/services.d/nginx/run index dc94c40..656aa10 100644 --- a/cookcli/rootfs/etc/services.d/nginx/run +++ b/cookcli/rootfs/etc/services.d/nginx/run @@ -1,11 +1,18 @@ #!/usr/bin/with-contenv bashio set -e -bashio::log.info "=== Service Nginx pour l'Ingress ===" +bashio::log.info "=== Démarrage du service Nginx ===" -# Générer un fichier de configuration pour les headers Ingress -# INGRESS_PATH="/api/hassio_ingress/$(bashio::addon.ingress_entry)" -# bashio::log.info "Chemin Ingress: ${INGRESS_PATH}" +# Attendre que CookCLI soit prêt +bashio::log.info "Attente de CookCLI sur le port 9081..." +for i in $(seq 1 30); do + if nc -z 127.0.0.1 9081 2>/dev/null; then + bashio::log.info "✅ CookCLI est prêt (port 9081 accessible)" + break + fi + bashio::log.info "⏳ Tentative ${i}/30..." + sleep 1 +done # Démarrer Nginx exec nginx -g "daemon off;" >> /proc/1/fd/1 2>&1 \ No newline at end of file -- 2.43.4 From f9735c1937ca49023a5ec07771b35d76ecc2f11c Mon Sep 17 00:00:00 2001 From: TheThomaas Date: Sun, 6 Sep 2026 07:07:40 +0000 Subject: [PATCH 064/157] Actualiser cookcli/Dockerfile --- cookcli/Dockerfile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cookcli/Dockerfile b/cookcli/Dockerfile index 240b5d8..bd7f4c2 100644 --- a/cookcli/Dockerfile +++ b/cookcli/Dockerfile @@ -8,6 +8,9 @@ RUN apk add --no-cache \ util-linux \ procps \ net-tools \ + findutils \ + grep \ + sed \ curl \ wget \ bash \ @@ -39,6 +42,7 @@ COPY rootfs / # Rendre tous les scripts exécutables RUN find /etc -name "run" -type f -exec chmod +x {} \; \ + && find /etc -name "*.sh" -type f -exec chmod +x {} \; \ && find /usr -name "*.sh" -type f -exec chmod +x {} \; ENTRYPOINT ["/init"] \ No newline at end of file -- 2.43.4 From d798ccd2c0f4e072554b19a59233fd5ad851e0b6 Mon Sep 17 00:00:00 2001 From: TheThomaas Date: Sun, 6 Sep 2026 07:08:21 +0000 Subject: [PATCH 065/157] Actualiser cookcli/config.yaml --- cookcli/config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cookcli/config.yaml b/cookcli/config.yaml index 1703203..853dc49 100644 --- a/cookcli/config.yaml +++ b/cookcli/config.yaml @@ -1,7 +1,7 @@ --- name: CookCLI Server DEV slug: cookcli -version: 1.0.23 +version: 1.0.24 description: "Serveur CookCLI avec synchronisation Git - Gestionnaire de recettes Cooklang" url: "https://git.thethomaas.net/TheThomaas/home-assistant-apps" arch: -- 2.43.4 From 4ccc76a6ad7b14cd42bbfe635acf66c5eb0e88e6 Mon Sep 17 00:00:00 2001 From: TheThomaas Date: Sun, 6 Sep 2026 07:11:41 +0000 Subject: [PATCH 066/157] Ajouter cookcli/rootfs/etc/cont-init.d/00-env-check.sh --- .../rootfs/etc/cont-init.d/00-env-check.sh | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 cookcli/rootfs/etc/cont-init.d/00-env-check.sh diff --git a/cookcli/rootfs/etc/cont-init.d/00-env-check.sh b/cookcli/rootfs/etc/cont-init.d/00-env-check.sh new file mode 100644 index 0000000..b7a3dbd --- /dev/null +++ b/cookcli/rootfs/etc/cont-init.d/00-env-check.sh @@ -0,0 +1,33 @@ +#!/usr/bin/with-contenv bashio +set -e + +bashio::log.info "=== DIAGNOSTIC DE L'ENVIRONNEMENT ===" + +bashio::log.info "1. Variables d'environnement:" +bashio::log.info " PATH: ${PATH}" +bashio::log.info " HOME: ${HOME}" +bashio::log.info " USER: ${USER}" + +bashio::log.info "2. Commandes disponibles (avec which):" +for cmd in date bash sh nginx git curl cook; do + if which "$cmd" >/dev/null 2>&1; then + bashio::log.info " ✅ $cmd: $(which $cmd)" + else + bashio::log.warning " ⚠️ $cmd: introuvable" + fi +done + +bashio::log.info "3. Contenu de /usr/bin/ (extrait):" +ls -la /usr/bin/ | head -10 + +bashio::log.info "4. Test de la commande 'date' directe:" +date && bashio::log.info " ✅ date fonctionne" || bashio::log.error " ❌ date ne fonctionne PAS" + +bashio::log.info "5. Type de l'add-on:" +if [ -f /usr/lib/bashio/bashio ]; then + bashio::log.info " ✅ bashio trouvé" +else + bashio::log.error " ❌ bashio non trouvé" +fi + +bashio::log.info "=== FIN DU DIAGNOSTIC ===" \ No newline at end of file -- 2.43.4 From 13779f23c2728bd2596571cd5d55f6a941fd875b Mon Sep 17 00:00:00 2001 From: TheThomaas Date: Sun, 6 Sep 2026 07:11:58 +0000 Subject: [PATCH 067/157] Actualiser cookcli/config.yaml --- cookcli/config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cookcli/config.yaml b/cookcli/config.yaml index 853dc49..3092570 100644 --- a/cookcli/config.yaml +++ b/cookcli/config.yaml @@ -1,7 +1,7 @@ --- name: CookCLI Server DEV slug: cookcli -version: 1.0.24 +version: 1.0.25 description: "Serveur CookCLI avec synchronisation Git - Gestionnaire de recettes Cooklang" url: "https://git.thethomaas.net/TheThomaas/home-assistant-apps" arch: -- 2.43.4 From 3e4d66a51199f973c5654da94a6f83e796666073 Mon Sep 17 00:00:00 2001 From: TheThomaas Date: Sun, 6 Sep 2026 07:16:00 +0000 Subject: [PATCH 068/157] Actualiser cookcli/rootfs/etc/cont-init.d/00-env-check.sh --- cookcli/rootfs/etc/cont-init.d/00-env-check.sh | 1 - 1 file changed, 1 deletion(-) diff --git a/cookcli/rootfs/etc/cont-init.d/00-env-check.sh b/cookcli/rootfs/etc/cont-init.d/00-env-check.sh index b7a3dbd..6a32714 100644 --- a/cookcli/rootfs/etc/cont-init.d/00-env-check.sh +++ b/cookcli/rootfs/etc/cont-init.d/00-env-check.sh @@ -6,7 +6,6 @@ bashio::log.info "=== DIAGNOSTIC DE L'ENVIRONNEMENT ===" bashio::log.info "1. Variables d'environnement:" bashio::log.info " PATH: ${PATH}" bashio::log.info " HOME: ${HOME}" -bashio::log.info " USER: ${USER}" bashio::log.info "2. Commandes disponibles (avec which):" for cmd in date bash sh nginx git curl cook; do -- 2.43.4 From e44c4f6385b6ce545dc67e95d6e6e58e48f20542 Mon Sep 17 00:00:00 2001 From: TheThomaas Date: Sun, 6 Sep 2026 07:18:46 +0000 Subject: [PATCH 069/157] Actualiser cookcli/config.yaml --- cookcli/config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cookcli/config.yaml b/cookcli/config.yaml index 3092570..3615c6c 100644 --- a/cookcli/config.yaml +++ b/cookcli/config.yaml @@ -1,7 +1,7 @@ --- name: CookCLI Server DEV slug: cookcli -version: 1.0.25 +version: 1.0.26 description: "Serveur CookCLI avec synchronisation Git - Gestionnaire de recettes Cooklang" url: "https://git.thethomaas.net/TheThomaas/home-assistant-apps" arch: -- 2.43.4 From 4e086edb3146723df5a3c2a29c0cebb41a2c54ee Mon Sep 17 00:00:00 2001 From: TheThomaas Date: Sun, 6 Sep 2026 07:22:41 +0000 Subject: [PATCH 070/157] Supprimer cookcli/rootfs/etc/s6-overlay/s6-rc.d/cookcli/run --- .../rootfs/etc/s6-overlay/s6-rc.d/cookcli/run | 29 ------------------- 1 file changed, 29 deletions(-) delete mode 100644 cookcli/rootfs/etc/s6-overlay/s6-rc.d/cookcli/run diff --git a/cookcli/rootfs/etc/s6-overlay/s6-rc.d/cookcli/run b/cookcli/rootfs/etc/s6-overlay/s6-rc.d/cookcli/run deleted file mode 100644 index b5eee59..0000000 --- a/cookcli/rootfs/etc/s6-overlay/s6-rc.d/cookcli/run +++ /dev/null @@ -1,29 +0,0 @@ -#!/usr/bin/with-contenv bashio -set -e - -# --- Configuration --- -RECIPES_PATH=$(bashio::config 'recipes_path') -PORT=9081 -LOG_LEVEL=$(bashio::config 'log_level') - -bashio::log.info "=== CookCLI Server ===" -bashio::log.info "Dossier des recettes: ${RECIPES_PATH}" -bashio::log.info "Port: ${PORT}" -bashio::log.info "Niveau de log: ${LOG_LEVEL}" - -# Création du dossier si inexistant -mkdir -p "${RECIPES_PATH}" - -# Attente que git-sync ait terminé (si configuré) -if [ -n "$(bashio::config 'git_repository')" ]; then - bashio::log.info "Attente de la synchronisation Git initiale..." - sleep 5 -fi - -# Lancement du serveur CookCLI -bashio::log.info "Démarrage du serveur CookCLI..." -exec cook server "${RECIPES_PATH}" \ - --port "${PORT}" \ - --host "0.0.0.0" \ - --log-level "${LOG_LEVEL}" \ - >> /proc/1/fd/1 2>&1 \ No newline at end of file -- 2.43.4 From 9d71a9ff3f602cb15f6075b89f9fab217e65ef25 Mon Sep 17 00:00:00 2001 From: TheThomaas Date: Sun, 6 Sep 2026 07:22:45 +0000 Subject: [PATCH 071/157] Supprimer cookcli/rootfs/etc/s6-overlay/s6-rc.d/cookcli/type --- cookcli/rootfs/etc/s6-overlay/s6-rc.d/cookcli/type | 1 - 1 file changed, 1 deletion(-) delete mode 100644 cookcli/rootfs/etc/s6-overlay/s6-rc.d/cookcli/type diff --git a/cookcli/rootfs/etc/s6-overlay/s6-rc.d/cookcli/type b/cookcli/rootfs/etc/s6-overlay/s6-rc.d/cookcli/type deleted file mode 100644 index 1780f9f..0000000 --- a/cookcli/rootfs/etc/s6-overlay/s6-rc.d/cookcli/type +++ /dev/null @@ -1 +0,0 @@ -longrun \ No newline at end of file -- 2.43.4 From f51ba759d2fab04c02c8a09b3594e906f8ad2b6a Mon Sep 17 00:00:00 2001 From: TheThomaas Date: Sun, 6 Sep 2026 07:23:20 +0000 Subject: [PATCH 072/157] Supprimer cookcli/rootfs/etc/s6-overlay/s6-rc.d/nginx/run --- .../rootfs/etc/s6-overlay/s6-rc.d/nginx/run | 27 ------------------- 1 file changed, 27 deletions(-) delete mode 100644 cookcli/rootfs/etc/s6-overlay/s6-rc.d/nginx/run diff --git a/cookcli/rootfs/etc/s6-overlay/s6-rc.d/nginx/run b/cookcli/rootfs/etc/s6-overlay/s6-rc.d/nginx/run deleted file mode 100644 index e22ba83..0000000 --- a/cookcli/rootfs/etc/s6-overlay/s6-rc.d/nginx/run +++ /dev/null @@ -1,27 +0,0 @@ -#!/command/with-contenv bashio -set -e - -bashio::log.info "=== Service Nginx pour l'Ingress ===" - -# Attendre que CookCLI soit prêt -bashio::log.info "Attente du démarrage de CookCLI..." -MAX_RETRIES=30 -RETRY_COUNT=0 - -while [ $RETRY_COUNT -lt $MAX_RETRIES ]; do - if nc -z 127.0.0.1 9081 2>/dev/null; then - bashio::log.info "✅ CookCLI est prêt sur le port 9081" - break - fi - RETRY_COUNT=$((RETRY_COUNT + 1)) - bashio::log.info "⏳ Attente de CookCLI... (${RETRY_COUNT}/${MAX_RETRIES})" - sleep 1 -done - -if [ $RETRY_COUNT -eq $MAX_RETRIES ]; then - bashio::log.warning "⚠️ CookCLI n'a pas démarré dans les délais, démarrage quand même..." -fi - -# Démarrer Nginx -bashio::log.info "Démarrage de Nginx..." -exec nginx -g "daemon off;" >> /proc/1/fd/1 2>&1 \ No newline at end of file -- 2.43.4 From bb468a2f494aea678e8f0e7a30175a8755bc63e9 Mon Sep 17 00:00:00 2001 From: TheThomaas Date: Sun, 6 Sep 2026 07:23:26 +0000 Subject: [PATCH 073/157] Supprimer cookcli/rootfs/etc/s6-overlay/s6-rc.d/nginx/dependencies --- cookcli/rootfs/etc/s6-overlay/s6-rc.d/nginx/dependencies | 1 - 1 file changed, 1 deletion(-) delete mode 100644 cookcli/rootfs/etc/s6-overlay/s6-rc.d/nginx/dependencies diff --git a/cookcli/rootfs/etc/s6-overlay/s6-rc.d/nginx/dependencies b/cookcli/rootfs/etc/s6-overlay/s6-rc.d/nginx/dependencies deleted file mode 100644 index 0248980..0000000 --- a/cookcli/rootfs/etc/s6-overlay/s6-rc.d/nginx/dependencies +++ /dev/null @@ -1 +0,0 @@ -cookcli \ No newline at end of file -- 2.43.4 From b803ad90e2126a522e92e96f356be8b2b7ff5808 Mon Sep 17 00:00:00 2001 From: TheThomaas Date: Sun, 6 Sep 2026 07:24:14 +0000 Subject: [PATCH 074/157] Supprimer cookcli/rootfs/etc/s6-overlay/s6-rc.d/nginx/type --- cookcli/rootfs/etc/s6-overlay/s6-rc.d/nginx/type | 1 - 1 file changed, 1 deletion(-) delete mode 100644 cookcli/rootfs/etc/s6-overlay/s6-rc.d/nginx/type diff --git a/cookcli/rootfs/etc/s6-overlay/s6-rc.d/nginx/type b/cookcli/rootfs/etc/s6-overlay/s6-rc.d/nginx/type deleted file mode 100644 index 1780f9f..0000000 --- a/cookcli/rootfs/etc/s6-overlay/s6-rc.d/nginx/type +++ /dev/null @@ -1 +0,0 @@ -longrun \ No newline at end of file -- 2.43.4 From 07c27cebf40b9cdebd7c5775022feb5ded1ab163 Mon Sep 17 00:00:00 2001 From: TheThomaas Date: Sun, 6 Sep 2026 07:25:37 +0000 Subject: [PATCH 075/157] Supprimer cookcli/rootfs/etc/s6-overlay/s6-rc.d/git-sync/run --- .../etc/s6-overlay/s6-rc.d/git-sync/run | 70 ------------------- 1 file changed, 70 deletions(-) delete mode 100644 cookcli/rootfs/etc/s6-overlay/s6-rc.d/git-sync/run diff --git a/cookcli/rootfs/etc/s6-overlay/s6-rc.d/git-sync/run b/cookcli/rootfs/etc/s6-overlay/s6-rc.d/git-sync/run deleted file mode 100644 index 3d10f6a..0000000 --- a/cookcli/rootfs/etc/s6-overlay/s6-rc.d/git-sync/run +++ /dev/null @@ -1,70 +0,0 @@ -#!/usr/bin/with-contenv bashio -set -e - -# --- Fonction de synchronisation Git --- -sync_git() { - local REPO=$(bashio::config 'git_repository') - local BRANCH=$(bashio::config 'git_branch') - local USERNAME=$(bashio::config 'git_username') - local PASSWORD=$(bashio::config 'git_password') - local PATH=$(bashio::config 'recipes_path') - - if [ -z "$REPO" ]; then - bashio::log.info "Aucun dépôt Git configuré. Attente..." - sleep infinity - return - fi - - bashio::log.info "Synchronisation avec ${REPO} (branche: ${BRANCH})" - - # Construction de l'URL avec authentification si nécessaire - local AUTH_URL="$REPO" - if [ -n "$USERNAME" ] && [ -n "$PASSWORD" ]; then - # Supposons que l'URL est de type https://github.com/user/repo.git - local PROTOCOL="https://" - local REPO_WITHOUT_PROTOCOL="${REPO#https://}" - REPO_WITHOUT_PROTOCOL="${REPO_WITHOUT_PROTOCOL#http://}" - AUTH_URL="${PROTOCOL}${USERNAME}:${PASSWORD}@${REPO_WITHOUT_PROTOCOL}" - bashio::log.info "Authentification configurée pour ${USERNAME}" - fi - - # Clone ou pull - if [ ! -d "$PATH/.git" ]; then - bashio::log.info "Premier clone du dépôt..." - git clone --branch "$BRANCH" "$AUTH_URL" "$PATH" 2>&1 | bashio::log.info - else - bashio::log.info "Mise à jour du dépôt existant..." - cd "$PATH" - # Réinitialisation pour éviter les conflits - git fetch origin "$BRANCH" 2>&1 | bashio::log.info - git reset --hard "origin/$BRANCH" 2>&1 | bashio::log.info - cd - > /dev/null - fi - - bashio::log.info "Synchronisation Git terminée." -} - -# --- Fonction de synchronisation périodique --- -periodic_sync() { - local INTERVAL=$(bashio::config 'git_sync_interval') - if [ -z "$INTERVAL" ] || [ "$INTERVAL" -eq 0 ]; then - INTERVAL=3600 - fi - - bashio::log.info "Synchronisation périodique configurée toutes les ${INTERVAL}s" - - while true; do - sleep "$INTERVAL" - bashio::log.info "=== Synchronisation Git périodique ===" - sync_git - done -} - -# --- Exécution --- -bashio::log.info "=== Service de synchronisation Git ===" - -# Premier sync au démarrage -sync_git - -# Lancement du sync périodique en arrière-plan -periodic_sync & \ No newline at end of file -- 2.43.4 From 269ee53de0d31d3d9310ed0b6f395979dd55b165 Mon Sep 17 00:00:00 2001 From: TheThomaas Date: Sun, 6 Sep 2026 07:25:43 +0000 Subject: [PATCH 076/157] Supprimer cookcli/rootfs/etc/s6-overlay/s6-rc.d/git-sync/type --- cookcli/rootfs/etc/s6-overlay/s6-rc.d/git-sync/type | 1 - 1 file changed, 1 deletion(-) delete mode 100644 cookcli/rootfs/etc/s6-overlay/s6-rc.d/git-sync/type diff --git a/cookcli/rootfs/etc/s6-overlay/s6-rc.d/git-sync/type b/cookcli/rootfs/etc/s6-overlay/s6-rc.d/git-sync/type deleted file mode 100644 index 1780f9f..0000000 --- a/cookcli/rootfs/etc/s6-overlay/s6-rc.d/git-sync/type +++ /dev/null @@ -1 +0,0 @@ -longrun \ No newline at end of file -- 2.43.4 From ec1cf9dbd78a72de0681e17b2eeaebc4f38ff8c6 Mon Sep 17 00:00:00 2001 From: TheThomaas Date: Sun, 6 Sep 2026 07:25:55 +0000 Subject: [PATCH 077/157] Supprimer cookcli/rootfs/etc/s6-overlay/scripts/run-all --- cookcli/rootfs/etc/s6-overlay/scripts/run-all | 11 ----------- 1 file changed, 11 deletions(-) delete mode 100644 cookcli/rootfs/etc/s6-overlay/scripts/run-all diff --git a/cookcli/rootfs/etc/s6-overlay/scripts/run-all b/cookcli/rootfs/etc/s6-overlay/scripts/run-all deleted file mode 100644 index 066826b..0000000 --- a/cookcli/rootfs/etc/s6-overlay/scripts/run-all +++ /dev/null @@ -1,11 +0,0 @@ -#!/command/with-contenv bashio -set -e - -bashio::log.info "=== CookCLI Add-on avec Ingress ===" - -# Variables d'environnement pour l'Ingress -# export INGRESS_PATH="/api/hassio_ingress/$(bashio::addon.ingress_entry)" -# bashio::log.info "Chemin Ingress configuré: ${INGRESS_PATH}" - -# Démarrer les services S6 -exec /init \ No newline at end of file -- 2.43.4 From b77e430df93c02dcfe40a8a0b841533d100e9a80 Mon Sep 17 00:00:00 2001 From: TheThomaas Date: Sun, 6 Sep 2026 07:26:19 +0000 Subject: [PATCH 078/157] Actualiser cookcli/config.yaml --- cookcli/config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cookcli/config.yaml b/cookcli/config.yaml index 3615c6c..829c47e 100644 --- a/cookcli/config.yaml +++ b/cookcli/config.yaml @@ -1,7 +1,7 @@ --- name: CookCLI Server DEV slug: cookcli -version: 1.0.26 +version: 1.0.27 description: "Serveur CookCLI avec synchronisation Git - Gestionnaire de recettes Cooklang" url: "https://git.thethomaas.net/TheThomaas/home-assistant-apps" arch: -- 2.43.4 From 545a686b1cc53a7844f12305503f80d3f84f01ec Mon Sep 17 00:00:00 2001 From: TheThomaas Date: Sun, 6 Sep 2026 07:28:34 +0000 Subject: [PATCH 079/157] Supprimer cookcli/rootfs/etc/cont-init.d/00-env-check.sh --- .../rootfs/etc/cont-init.d/00-env-check.sh | 32 ------------------- 1 file changed, 32 deletions(-) delete mode 100644 cookcli/rootfs/etc/cont-init.d/00-env-check.sh diff --git a/cookcli/rootfs/etc/cont-init.d/00-env-check.sh b/cookcli/rootfs/etc/cont-init.d/00-env-check.sh deleted file mode 100644 index 6a32714..0000000 --- a/cookcli/rootfs/etc/cont-init.d/00-env-check.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/usr/bin/with-contenv bashio -set -e - -bashio::log.info "=== DIAGNOSTIC DE L'ENVIRONNEMENT ===" - -bashio::log.info "1. Variables d'environnement:" -bashio::log.info " PATH: ${PATH}" -bashio::log.info " HOME: ${HOME}" - -bashio::log.info "2. Commandes disponibles (avec which):" -for cmd in date bash sh nginx git curl cook; do - if which "$cmd" >/dev/null 2>&1; then - bashio::log.info " ✅ $cmd: $(which $cmd)" - else - bashio::log.warning " ⚠️ $cmd: introuvable" - fi -done - -bashio::log.info "3. Contenu de /usr/bin/ (extrait):" -ls -la /usr/bin/ | head -10 - -bashio::log.info "4. Test de la commande 'date' directe:" -date && bashio::log.info " ✅ date fonctionne" || bashio::log.error " ❌ date ne fonctionne PAS" - -bashio::log.info "5. Type de l'add-on:" -if [ -f /usr/lib/bashio/bashio ]; then - bashio::log.info " ✅ bashio trouvé" -else - bashio::log.error " ❌ bashio non trouvé" -fi - -bashio::log.info "=== FIN DU DIAGNOSTIC ===" \ No newline at end of file -- 2.43.4 From 11f2e67a62a557a3a05c7a7127e21682bf1d26e1 Mon Sep 17 00:00:00 2001 From: TheThomaas Date: Sun, 6 Sep 2026 07:29:04 +0000 Subject: [PATCH 080/157] Actualiser cookcli/config.yaml --- cookcli/config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cookcli/config.yaml b/cookcli/config.yaml index 829c47e..2b6aebd 100644 --- a/cookcli/config.yaml +++ b/cookcli/config.yaml @@ -1,7 +1,7 @@ --- name: CookCLI Server DEV slug: cookcli -version: 1.0.27 +version: 1.0.28 description: "Serveur CookCLI avec synchronisation Git - Gestionnaire de recettes Cooklang" url: "https://git.thethomaas.net/TheThomaas/home-assistant-apps" arch: -- 2.43.4 From f6c458f480a816dca0483216e8547378ebf4dee1 Mon Sep 17 00:00:00 2001 From: TheThomaas Date: Sun, 6 Sep 2026 07:33:57 +0000 Subject: [PATCH 081/157] Ajouter cookcli/rootfs/etc/services.d/git-sync/dependencies --- cookcli/rootfs/etc/services.d/git-sync/dependencies | 1 + 1 file changed, 1 insertion(+) create mode 100644 cookcli/rootfs/etc/services.d/git-sync/dependencies diff --git a/cookcli/rootfs/etc/services.d/git-sync/dependencies b/cookcli/rootfs/etc/services.d/git-sync/dependencies new file mode 100644 index 0000000..0248980 --- /dev/null +++ b/cookcli/rootfs/etc/services.d/git-sync/dependencies @@ -0,0 +1 @@ +cookcli \ No newline at end of file -- 2.43.4 From 2f15cb256032552fc64f9a834bc4467c34fc20a7 Mon Sep 17 00:00:00 2001 From: TheThomaas Date: Sun, 6 Sep 2026 07:38:32 +0000 Subject: [PATCH 082/157] Actualiser cookcli/config.yaml --- cookcli/config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cookcli/config.yaml b/cookcli/config.yaml index 2b6aebd..329b9fe 100644 --- a/cookcli/config.yaml +++ b/cookcli/config.yaml @@ -1,7 +1,7 @@ --- name: CookCLI Server DEV slug: cookcli -version: 1.0.28 +version: 1.0.29 description: "Serveur CookCLI avec synchronisation Git - Gestionnaire de recettes Cooklang" url: "https://git.thethomaas.net/TheThomaas/home-assistant-apps" arch: -- 2.43.4 From d5789e2e3a4dc56b54d3145d1491dad8ebc850e6 Mon Sep 17 00:00:00 2001 From: TheThomaas Date: Sun, 6 Sep 2026 07:42:01 +0000 Subject: [PATCH 083/157] Actualiser cookcli/rootfs/etc/services.d/git-sync/run --- cookcli/rootfs/etc/services.d/git-sync/run | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cookcli/rootfs/etc/services.d/git-sync/run b/cookcli/rootfs/etc/services.d/git-sync/run index 3d10f6a..07e7253 100644 --- a/cookcli/rootfs/etc/services.d/git-sync/run +++ b/cookcli/rootfs/etc/services.d/git-sync/run @@ -3,11 +3,13 @@ set -e # --- Fonction de synchronisation Git --- sync_git() { + bashio::log.info "=== Service de synchronisation Git 2 ===" local REPO=$(bashio::config 'git_repository') local BRANCH=$(bashio::config 'git_branch') local USERNAME=$(bashio::config 'git_username') local PASSWORD=$(bashio::config 'git_password') local PATH=$(bashio::config 'recipes_path') + bashio::log.info "=== Service de synchronisation Git 3 ===" if [ -z "$REPO" ]; then bashio::log.info "Aucun dépôt Git configuré. Attente..." -- 2.43.4 From c17d4e9fd4b7d6744d7efda9cabd7f27e587877a Mon Sep 17 00:00:00 2001 From: TheThomaas Date: Sun, 6 Sep 2026 07:42:18 +0000 Subject: [PATCH 084/157] Actualiser cookcli/config.yaml --- cookcli/config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cookcli/config.yaml b/cookcli/config.yaml index 329b9fe..ce6408c 100644 --- a/cookcli/config.yaml +++ b/cookcli/config.yaml @@ -1,7 +1,7 @@ --- name: CookCLI Server DEV slug: cookcli -version: 1.0.29 +version: 1.0.30 description: "Serveur CookCLI avec synchronisation Git - Gestionnaire de recettes Cooklang" url: "https://git.thethomaas.net/TheThomaas/home-assistant-apps" arch: -- 2.43.4 From 59aa351e1b39c6e5032825ea1426c01da65fa84b Mon Sep 17 00:00:00 2001 From: TheThomaas Date: Sun, 6 Sep 2026 07:55:41 +0000 Subject: [PATCH 085/157] Actualiser cookcli/rootfs/etc/services.d/git-sync/run --- cookcli/rootfs/etc/services.d/git-sync/run | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/cookcli/rootfs/etc/services.d/git-sync/run b/cookcli/rootfs/etc/services.d/git-sync/run index 07e7253..9aad87a 100644 --- a/cookcli/rootfs/etc/services.d/git-sync/run +++ b/cookcli/rootfs/etc/services.d/git-sync/run @@ -5,11 +5,15 @@ set -e sync_git() { bashio::log.info "=== Service de synchronisation Git 2 ===" local REPO=$(bashio::config 'git_repository') - local BRANCH=$(bashio::config 'git_branch') - local USERNAME=$(bashio::config 'git_username') - local PASSWORD=$(bashio::config 'git_password') - local PATH=$(bashio::config 'recipes_path') bashio::log.info "=== Service de synchronisation Git 3 ===" + local BRANCH=$(bashio::config 'git_branch') + bashio::log.info "=== Service de synchronisation Git 4 ===" + local USERNAME=$(bashio::config 'git_username') + bashio::log.info "=== Service de synchronisation Git 5 ===" + local PASSWORD=$(bashio::config 'git_password') + bashio::log.info "=== Service de synchronisation Git 6 ===" + local PATH=$(bashio::config 'recipes_path') + bashio::log.info "=== Service de synchronisation Git 7 ===" if [ -z "$REPO" ]; then bashio::log.info "Aucun dépôt Git configuré. Attente..." -- 2.43.4 From b74c7f2e0ab2306955de70037017f74c76986da3 Mon Sep 17 00:00:00 2001 From: TheThomaas Date: Sun, 6 Sep 2026 07:55:52 +0000 Subject: [PATCH 086/157] Actualiser cookcli/config.yaml --- cookcli/config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cookcli/config.yaml b/cookcli/config.yaml index ce6408c..bf723dd 100644 --- a/cookcli/config.yaml +++ b/cookcli/config.yaml @@ -1,7 +1,7 @@ --- name: CookCLI Server DEV slug: cookcli -version: 1.0.30 +version: 1.0.31 description: "Serveur CookCLI avec synchronisation Git - Gestionnaire de recettes Cooklang" url: "https://git.thethomaas.net/TheThomaas/home-assistant-apps" arch: -- 2.43.4 From e8d10cfe254778e0ac35a691b7b42fbf7d84f72e Mon Sep 17 00:00:00 2001 From: TheThomaas Date: Sun, 6 Sep 2026 07:58:36 +0000 Subject: [PATCH 087/157] Actualiser cookcli/rootfs/etc/services.d/git-sync/run --- cookcli/rootfs/etc/services.d/git-sync/run | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cookcli/rootfs/etc/services.d/git-sync/run b/cookcli/rootfs/etc/services.d/git-sync/run index 9aad87a..d39abc8 100644 --- a/cookcli/rootfs/etc/services.d/git-sync/run +++ b/cookcli/rootfs/etc/services.d/git-sync/run @@ -12,7 +12,7 @@ sync_git() { bashio::log.info "=== Service de synchronisation Git 5 ===" local PASSWORD=$(bashio::config 'git_password') bashio::log.info "=== Service de synchronisation Git 6 ===" - local PATH=$(bashio::config 'recipes_path') + local RECIPES_PATH=$(bashio::config 'recipes_path') bashio::log.info "=== Service de synchronisation Git 7 ===" if [ -z "$REPO" ]; then @@ -37,10 +37,10 @@ sync_git() { # Clone ou pull if [ ! -d "$PATH/.git" ]; then bashio::log.info "Premier clone du dépôt..." - git clone --branch "$BRANCH" "$AUTH_URL" "$PATH" 2>&1 | bashio::log.info + git clone --branch "$BRANCH" "$AUTH_URL" "$RECIPES_PATH" 2>&1 | bashio::log.info else bashio::log.info "Mise à jour du dépôt existant..." - cd "$PATH" + cd "$RECIPES_PATH" # Réinitialisation pour éviter les conflits git fetch origin "$BRANCH" 2>&1 | bashio::log.info git reset --hard "origin/$BRANCH" 2>&1 | bashio::log.info -- 2.43.4 From 2708ad0161b22d466da7ebd7377f870d7a13272c Mon Sep 17 00:00:00 2001 From: TheThomaas Date: Sun, 6 Sep 2026 07:58:48 +0000 Subject: [PATCH 088/157] Actualiser cookcli/config.yaml --- cookcli/config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cookcli/config.yaml b/cookcli/config.yaml index bf723dd..f7e2619 100644 --- a/cookcli/config.yaml +++ b/cookcli/config.yaml @@ -1,7 +1,7 @@ --- name: CookCLI Server DEV slug: cookcli -version: 1.0.31 +version: 1.0.32 description: "Serveur CookCLI avec synchronisation Git - Gestionnaire de recettes Cooklang" url: "https://git.thethomaas.net/TheThomaas/home-assistant-apps" arch: -- 2.43.4 From 758abf4d1a849109882a1fb8cbca0b8b67e48367 Mon Sep 17 00:00:00 2001 From: TheThomaas Date: Sun, 6 Sep 2026 08:02:07 +0000 Subject: [PATCH 089/157] Actualiser cookcli/rootfs/etc/services.d/git-sync/run --- cookcli/rootfs/etc/services.d/git-sync/run | 6 ------ 1 file changed, 6 deletions(-) diff --git a/cookcli/rootfs/etc/services.d/git-sync/run b/cookcli/rootfs/etc/services.d/git-sync/run index d39abc8..d521636 100644 --- a/cookcli/rootfs/etc/services.d/git-sync/run +++ b/cookcli/rootfs/etc/services.d/git-sync/run @@ -3,17 +3,11 @@ set -e # --- Fonction de synchronisation Git --- sync_git() { - bashio::log.info "=== Service de synchronisation Git 2 ===" local REPO=$(bashio::config 'git_repository') - bashio::log.info "=== Service de synchronisation Git 3 ===" local BRANCH=$(bashio::config 'git_branch') - bashio::log.info "=== Service de synchronisation Git 4 ===" local USERNAME=$(bashio::config 'git_username') - bashio::log.info "=== Service de synchronisation Git 5 ===" local PASSWORD=$(bashio::config 'git_password') - bashio::log.info "=== Service de synchronisation Git 6 ===" local RECIPES_PATH=$(bashio::config 'recipes_path') - bashio::log.info "=== Service de synchronisation Git 7 ===" if [ -z "$REPO" ]; then bashio::log.info "Aucun dépôt Git configuré. Attente..." -- 2.43.4 From 2b7ad274b4ced02fde297e257ade97bb9b5b00ff Mon Sep 17 00:00:00 2001 From: TheThomaas Date: Sun, 6 Sep 2026 11:01:51 +0000 Subject: [PATCH 090/157] Actualiser cookcli/rootfs/etc/services.d/git-sync/run --- cookcli/rootfs/etc/services.d/git-sync/run | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cookcli/rootfs/etc/services.d/git-sync/run b/cookcli/rootfs/etc/services.d/git-sync/run index d521636..dfc72d3 100644 --- a/cookcli/rootfs/etc/services.d/git-sync/run +++ b/cookcli/rootfs/etc/services.d/git-sync/run @@ -67,4 +67,4 @@ bashio::log.info "=== Service de synchronisation Git ===" sync_git # Lancement du sync périodique en arrière-plan -periodic_sync & \ No newline at end of file +periodic_sync \ No newline at end of file -- 2.43.4 From d2da754e14f831358ca6deae8363e5e632114879 Mon Sep 17 00:00:00 2001 From: TheThomaas Date: Sun, 6 Sep 2026 11:02:17 +0000 Subject: [PATCH 091/157] Actualiser cookcli/config.yaml --- cookcli/config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cookcli/config.yaml b/cookcli/config.yaml index f7e2619..725bcff 100644 --- a/cookcli/config.yaml +++ b/cookcli/config.yaml @@ -1,7 +1,7 @@ --- name: CookCLI Server DEV slug: cookcli -version: 1.0.32 +version: 1.0.33 description: "Serveur CookCLI avec synchronisation Git - Gestionnaire de recettes Cooklang" url: "https://git.thethomaas.net/TheThomaas/home-assistant-apps" arch: -- 2.43.4 From 152ab76a2e9cd3920f7ad575361acc6a22d24404 Mon Sep 17 00:00:00 2001 From: TheThomaas Date: Sun, 6 Sep 2026 11:13:41 +0000 Subject: [PATCH 092/157] Actualiser cookcli/rootfs/etc/services.d/cookcli/run --- cookcli/rootfs/etc/services.d/cookcli/run | 29 +++++++++++++++++++---- 1 file changed, 24 insertions(+), 5 deletions(-) diff --git a/cookcli/rootfs/etc/services.d/cookcli/run b/cookcli/rootfs/etc/services.d/cookcli/run index 087b1a1..dde640d 100644 --- a/cookcli/rootfs/etc/services.d/cookcli/run +++ b/cookcli/rootfs/etc/services.d/cookcli/run @@ -6,9 +6,28 @@ bashio::log.info "=== Démarrage du service CookCLI ===" RECIPES_PATH=$(bashio::config 'recipes_path') PORT=9081 -LOG_LEVEL=$(bashio::config 'log_level') -exec /usr/local/bin/cook server "${RECIPES_PATH}" \ - --port "${PORT}" \ - --host "0.0.0.0" \ - >> /proc/1/fd/1 2>&1 \ No newline at end of file +# Récupérer le chemin Ingress +INGRESS_TOKEN=$(bashio::config 'ingress_token') +if [ -n "$INGRESS_TOKEN" ]; then + INGRESS_PATH="/api/hassio_ingress/${INGRESS_TOKEN}" + bashio::log.info "Chemin Ingress: ${INGRESS_PATH}" +else + INGRESS_PATH="" +fi + +bashio::log.info "Démarrage de CookCLI sur le port ${PORT}..." + +# Si CookCLI supporte --base-path +if [ -n "$INGRESS_PATH" ]; then + exec /usr/local/bin/cook server "${RECIPES_PATH}" \ + --port "${PORT}" \ + --host "0.0.0.0" \ + "${INGRESS_PATH}" \ + >> /proc/1/fd/1 2>&1 +else + exec /usr/local/cook server "${RECIPES_PATH}" \ + --port "${PORT}" \ + --host "0.0.0.0" \ + >> /proc/1/fd/1 2>&1 +fi \ No newline at end of file -- 2.43.4 From 3a0e023744637410d5a4143a3ea9f6e6727ba1bc Mon Sep 17 00:00:00 2001 From: TheThomaas Date: Sun, 6 Sep 2026 11:13:52 +0000 Subject: [PATCH 093/157] Actualiser cookcli/config.yaml --- cookcli/config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cookcli/config.yaml b/cookcli/config.yaml index 725bcff..78bf316 100644 --- a/cookcli/config.yaml +++ b/cookcli/config.yaml @@ -1,7 +1,7 @@ --- name: CookCLI Server DEV slug: cookcli -version: 1.0.33 +version: 1.0.34 description: "Serveur CookCLI avec synchronisation Git - Gestionnaire de recettes Cooklang" url: "https://git.thethomaas.net/TheThomaas/home-assistant-apps" arch: -- 2.43.4 From 6d7d9be77846d610069b848d7406167b7c35c978 Mon Sep 17 00:00:00 2001 From: TheThomaas Date: Sun, 6 Sep 2026 11:15:43 +0000 Subject: [PATCH 094/157] revert 152ab76a2e9cd3920f7ad575361acc6a22d24404 revert Actualiser cookcli/rootfs/etc/services.d/cookcli/run --- cookcli/rootfs/etc/services.d/cookcli/run | 29 ++++------------------- 1 file changed, 5 insertions(+), 24 deletions(-) diff --git a/cookcli/rootfs/etc/services.d/cookcli/run b/cookcli/rootfs/etc/services.d/cookcli/run index dde640d..087b1a1 100644 --- a/cookcli/rootfs/etc/services.d/cookcli/run +++ b/cookcli/rootfs/etc/services.d/cookcli/run @@ -6,28 +6,9 @@ bashio::log.info "=== Démarrage du service CookCLI ===" RECIPES_PATH=$(bashio::config 'recipes_path') PORT=9081 +LOG_LEVEL=$(bashio::config 'log_level') -# Récupérer le chemin Ingress -INGRESS_TOKEN=$(bashio::config 'ingress_token') -if [ -n "$INGRESS_TOKEN" ]; then - INGRESS_PATH="/api/hassio_ingress/${INGRESS_TOKEN}" - bashio::log.info "Chemin Ingress: ${INGRESS_PATH}" -else - INGRESS_PATH="" -fi - -bashio::log.info "Démarrage de CookCLI sur le port ${PORT}..." - -# Si CookCLI supporte --base-path -if [ -n "$INGRESS_PATH" ]; then - exec /usr/local/bin/cook server "${RECIPES_PATH}" \ - --port "${PORT}" \ - --host "0.0.0.0" \ - "${INGRESS_PATH}" \ - >> /proc/1/fd/1 2>&1 -else - exec /usr/local/cook server "${RECIPES_PATH}" \ - --port "${PORT}" \ - --host "0.0.0.0" \ - >> /proc/1/fd/1 2>&1 -fi \ No newline at end of file +exec /usr/local/bin/cook server "${RECIPES_PATH}" \ + --port "${PORT}" \ + --host "0.0.0.0" \ + >> /proc/1/fd/1 2>&1 \ No newline at end of file -- 2.43.4 From ab5b9f4d9737a372dfb38ccc0feab3e99618e375 Mon Sep 17 00:00:00 2001 From: TheThomaas Date: Sun, 6 Sep 2026 11:21:32 +0000 Subject: [PATCH 095/157] Actualiser cookcli/rootfs/etc/nginx/nginx.conf --- cookcli/rootfs/etc/nginx/nginx.conf | 38 +++++++++++++++++++++++++++-- 1 file changed, 36 insertions(+), 2 deletions(-) diff --git a/cookcli/rootfs/etc/nginx/nginx.conf b/cookcli/rootfs/etc/nginx/nginx.conf index 1442175..be73cf0 100644 --- a/cookcli/rootfs/etc/nginx/nginx.conf +++ b/cookcli/rootfs/etc/nginx/nginx.conf @@ -24,15 +24,49 @@ http { proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header X-Forwarded-Proto $scheme; + proxy_set_header X-Forwarded-Host $host; + proxy_set_header X-Forwarded-Port $server_port; - # Proxy simple vers CookCLI + # Désactiver le buffering + proxy_buffering off; + + # Proxy vers CookCLI location / { proxy_pass http://127.0.0.1:9081; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; - proxy_buffering off; + + # --- RÉÉCRITURE DES URLs POUR L'INGRESS --- + # Capture le chemin Ingress depuis les headers + set $ingress_path $http_x_forwarded_prefix; + if ($ingress_path = "") { + set $ingress_path ""; + } + + # Sub_filter pour réécrire les URLs absolues + sub_filter_once off; + sub_filter_types text/html text/css application/javascript; + + # Réécriture des URLs de base + sub_filter 'href="/' 'href="$ingress_path/'; + sub_filter 'src="/' 'src="$ingress_path/'; + sub_filter 'action="/' 'action="$ingress_path/'; + + # Réécriture spécifique pour les chemins courants + sub_filter '"/static/' '"$ingress_path/static/'; + sub_filter '"/assets/' '"$ingress_path/assets/'; + sub_filter '"/css/' '"$ingress_path/css/'; + sub_filter '"/js/' '"$ingress_path/js/'; + + # Si l'application utilise des chemins relatifs, les forcer + sub_filter ' Date: Sun, 6 Sep 2026 11:21:59 +0000 Subject: [PATCH 096/157] Actualiser cookcli/config.yaml --- cookcli/config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cookcli/config.yaml b/cookcli/config.yaml index 78bf316..bcb0409 100644 --- a/cookcli/config.yaml +++ b/cookcli/config.yaml @@ -1,7 +1,7 @@ --- name: CookCLI Server DEV slug: cookcli -version: 1.0.34 +version: 1.0.35 description: "Serveur CookCLI avec synchronisation Git - Gestionnaire de recettes Cooklang" url: "https://git.thethomaas.net/TheThomaas/home-assistant-apps" arch: -- 2.43.4 From 8f68c251770d483781344d0abdd6cc78f44df9e6 Mon Sep 17 00:00:00 2001 From: TheThomaas Date: Sun, 6 Sep 2026 11:23:55 +0000 Subject: [PATCH 097/157] revert ab5b9f4d9737a372dfb38ccc0feab3e99618e375 revert Actualiser cookcli/rootfs/etc/nginx/nginx.conf --- cookcli/rootfs/etc/nginx/nginx.conf | 38 ++--------------------------- 1 file changed, 2 insertions(+), 36 deletions(-) diff --git a/cookcli/rootfs/etc/nginx/nginx.conf b/cookcli/rootfs/etc/nginx/nginx.conf index be73cf0..1442175 100644 --- a/cookcli/rootfs/etc/nginx/nginx.conf +++ b/cookcli/rootfs/etc/nginx/nginx.conf @@ -24,49 +24,15 @@ http { proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header X-Forwarded-Proto $scheme; - proxy_set_header X-Forwarded-Host $host; - proxy_set_header X-Forwarded-Port $server_port; - # Désactiver le buffering - proxy_buffering off; - - # Proxy vers CookCLI + # Proxy simple vers CookCLI location / { proxy_pass http://127.0.0.1:9081; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; - - # --- RÉÉCRITURE DES URLs POUR L'INGRESS --- - # Capture le chemin Ingress depuis les headers - set $ingress_path $http_x_forwarded_prefix; - if ($ingress_path = "") { - set $ingress_path ""; - } - - # Sub_filter pour réécrire les URLs absolues - sub_filter_once off; - sub_filter_types text/html text/css application/javascript; - - # Réécriture des URLs de base - sub_filter 'href="/' 'href="$ingress_path/'; - sub_filter 'src="/' 'src="$ingress_path/'; - sub_filter 'action="/' 'action="$ingress_path/'; - - # Réécriture spécifique pour les chemins courants - sub_filter '"/static/' '"$ingress_path/static/'; - sub_filter '"/assets/' '"$ingress_path/assets/'; - sub_filter '"/css/' '"$ingress_path/css/'; - sub_filter '"/js/' '"$ingress_path/js/'; - - # Si l'application utilise des chemins relatifs, les forcer - sub_filter ' Date: Sun, 6 Sep 2026 11:24:28 +0000 Subject: [PATCH 098/157] Actualiser cookcli/config.yaml --- cookcli/config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cookcli/config.yaml b/cookcli/config.yaml index bcb0409..be74b1e 100644 --- a/cookcli/config.yaml +++ b/cookcli/config.yaml @@ -1,7 +1,7 @@ --- name: CookCLI Server DEV slug: cookcli -version: 1.0.35 +version: 1.0.36 description: "Serveur CookCLI avec synchronisation Git - Gestionnaire de recettes Cooklang" url: "https://git.thethomaas.net/TheThomaas/home-assistant-apps" arch: -- 2.43.4 From 98ebbecda95924b1e842ba8d6f6ce432fe4507f5 Mon Sep 17 00:00:00 2001 From: TheThomaas Date: Sun, 6 Sep 2026 13:52:32 +0000 Subject: [PATCH 099/157] Actualiser cookcli/rootfs/etc/services.d/cookcli/run --- cookcli/rootfs/etc/services.d/cookcli/run | 32 +++++++++++++++++------ 1 file changed, 24 insertions(+), 8 deletions(-) diff --git a/cookcli/rootfs/etc/services.d/cookcli/run b/cookcli/rootfs/etc/services.d/cookcli/run index 087b1a1..ebcd411 100644 --- a/cookcli/rootfs/etc/services.d/cookcli/run +++ b/cookcli/rootfs/etc/services.d/cookcli/run @@ -1,14 +1,30 @@ #!/usr/bin/with-contenv bashio set -e -# L'environnement est déjà initialisé par cont-init.d -bashio::log.info "=== Démarrage du service CookCLI ===" - RECIPES_PATH=$(bashio::config 'recipes_path') PORT=9081 -LOG_LEVEL=$(bashio::config 'log_level') -exec /usr/local/bin/cook server "${RECIPES_PATH}" \ - --port "${PORT}" \ - --host "0.0.0.0" \ - >> /proc/1/fd/1 2>&1 \ No newline at end of file +# Récupérer le chemin Ingress +INGRESS_TOKEN=$(bashio::config 'ingress_token') +if [ -n "$INGRESS_TOKEN" ]; then + INGRESS_PATH="/api/hassio_ingress/${INGRESS_TOKEN}" + bashio::log.info "Chemin Ingress: ${INGRESS_PATH}" +else + INGRESS_PATH="" +fi + +bashio::log.info "Démarrage de CookCLI sur le port ${PORT}..." + +# Si CookCLI supporte --base-path +if [ -n "$INGRESS_PATH" ]; then + exec cook server "${RECIPES_PATH}" \ + --port "${PORT}" \ + --host "0.0.0.0" \ + --url-prefix "${INGRESS_PATH}" \ + >> /proc/1/fd/1 2>&1 +else + exec cook server "${RECIPES_PATH}" \ + --port "${PORT}" \ + --host "0.0.0.0" \ + >> /proc/1/fd/1 2>&1 +fi \ No newline at end of file -- 2.43.4 From 1adff5f3623d1e8258ecf455d4277991a7b3e45e Mon Sep 17 00:00:00 2001 From: TheThomaas Date: Sun, 6 Sep 2026 13:52:41 +0000 Subject: [PATCH 100/157] Actualiser cookcli/config.yaml --- cookcli/config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cookcli/config.yaml b/cookcli/config.yaml index be74b1e..a5fc2e8 100644 --- a/cookcli/config.yaml +++ b/cookcli/config.yaml @@ -1,7 +1,7 @@ --- name: CookCLI Server DEV slug: cookcli -version: 1.0.36 +version: 1.0.37 description: "Serveur CookCLI avec synchronisation Git - Gestionnaire de recettes Cooklang" url: "https://git.thethomaas.net/TheThomaas/home-assistant-apps" arch: -- 2.43.4 From 0c1e0e6edbdba6b57f664864f77053183d505396 Mon Sep 17 00:00:00 2001 From: TheThomaas Date: Sun, 6 Sep 2026 13:54:55 +0000 Subject: [PATCH 101/157] Actualiser cookcli/rootfs/etc/services.d/cookcli/run --- cookcli/rootfs/etc/services.d/cookcli/run | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cookcli/rootfs/etc/services.d/cookcli/run b/cookcli/rootfs/etc/services.d/cookcli/run index ebcd411..0d921b1 100644 --- a/cookcli/rootfs/etc/services.d/cookcli/run +++ b/cookcli/rootfs/etc/services.d/cookcli/run @@ -4,6 +4,8 @@ set -e RECIPES_PATH=$(bashio::config 'recipes_path') PORT=9081 +bashio::log.info "Chemin Ingress: ${INGRESS_PATH}" + # Récupérer le chemin Ingress INGRESS_TOKEN=$(bashio::config 'ingress_token') if [ -n "$INGRESS_TOKEN" ]; then -- 2.43.4 From db82ef904b054daad98aa1e8dbfa1c36e2cbc9fb Mon Sep 17 00:00:00 2001 From: TheThomaas Date: Sun, 6 Sep 2026 13:57:18 +0000 Subject: [PATCH 102/157] Actualiser cookcli/config.yaml --- cookcli/config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cookcli/config.yaml b/cookcli/config.yaml index a5fc2e8..0117a8d 100644 --- a/cookcli/config.yaml +++ b/cookcli/config.yaml @@ -1,7 +1,7 @@ --- name: CookCLI Server DEV slug: cookcli -version: 1.0.37 +version: 1.0.38 description: "Serveur CookCLI avec synchronisation Git - Gestionnaire de recettes Cooklang" url: "https://git.thethomaas.net/TheThomaas/home-assistant-apps" arch: -- 2.43.4 From c36778dca27a29fbc26a9443baf9f820de0eff62 Mon Sep 17 00:00:00 2001 From: TheThomaas Date: Sun, 6 Sep 2026 13:59:11 +0000 Subject: [PATCH 103/157] Actualiser cookcli/rootfs/etc/services.d/cookcli/run --- cookcli/rootfs/etc/services.d/cookcli/run | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cookcli/rootfs/etc/services.d/cookcli/run b/cookcli/rootfs/etc/services.d/cookcli/run index 0d921b1..e587a6e 100644 --- a/cookcli/rootfs/etc/services.d/cookcli/run +++ b/cookcli/rootfs/etc/services.d/cookcli/run @@ -4,7 +4,7 @@ set -e RECIPES_PATH=$(bashio::config 'recipes_path') PORT=9081 -bashio::log.info "Chemin Ingress: ${INGRESS_PATH}" +bashio::log.info "Chemin Ingress: ${HA_TOKEN}" # Récupérer le chemin Ingress INGRESS_TOKEN=$(bashio::config 'ingress_token') -- 2.43.4 From 0d7ae3f57e1dfb49123a5e16420d1ba7812a8693 Mon Sep 17 00:00:00 2001 From: TheThomaas Date: Sun, 6 Sep 2026 13:59:20 +0000 Subject: [PATCH 104/157] Actualiser cookcli/config.yaml --- cookcli/config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cookcli/config.yaml b/cookcli/config.yaml index 0117a8d..3c7f019 100644 --- a/cookcli/config.yaml +++ b/cookcli/config.yaml @@ -1,7 +1,7 @@ --- name: CookCLI Server DEV slug: cookcli -version: 1.0.38 +version: 1.0.39 description: "Serveur CookCLI avec synchronisation Git - Gestionnaire de recettes Cooklang" url: "https://git.thethomaas.net/TheThomaas/home-assistant-apps" arch: -- 2.43.4 From 740a842869c0418920da473e547b631112d98f25 Mon Sep 17 00:00:00 2001 From: TheThomaas Date: Sun, 6 Sep 2026 14:01:36 +0000 Subject: [PATCH 105/157] Actualiser cookcli/rootfs/etc/services.d/cookcli/run --- cookcli/rootfs/etc/services.d/cookcli/run | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/cookcli/rootfs/etc/services.d/cookcli/run b/cookcli/rootfs/etc/services.d/cookcli/run index e587a6e..4845f89 100644 --- a/cookcli/rootfs/etc/services.d/cookcli/run +++ b/cookcli/rootfs/etc/services.d/cookcli/run @@ -4,8 +4,6 @@ set -e RECIPES_PATH=$(bashio::config 'recipes_path') PORT=9081 -bashio::log.info "Chemin Ingress: ${HA_TOKEN}" - # Récupérer le chemin Ingress INGRESS_TOKEN=$(bashio::config 'ingress_token') if [ -n "$INGRESS_TOKEN" ]; then @@ -22,7 +20,7 @@ if [ -n "$INGRESS_PATH" ]; then exec cook server "${RECIPES_PATH}" \ --port "${PORT}" \ --host "0.0.0.0" \ - --url-prefix "${INGRESS_PATH}" \ + --url-prefix "./" \ >> /proc/1/fd/1 2>&1 else exec cook server "${RECIPES_PATH}" \ -- 2.43.4 From dfc1b9508c50c18bffe2b37c22a6ad6744bc40cb Mon Sep 17 00:00:00 2001 From: TheThomaas Date: Sun, 6 Sep 2026 14:02:23 +0000 Subject: [PATCH 106/157] Actualiser cookcli/config.yaml --- cookcli/config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cookcli/config.yaml b/cookcli/config.yaml index 3c7f019..541041e 100644 --- a/cookcli/config.yaml +++ b/cookcli/config.yaml @@ -1,7 +1,7 @@ --- name: CookCLI Server DEV slug: cookcli -version: 1.0.39 +version: 1.0.40 description: "Serveur CookCLI avec synchronisation Git - Gestionnaire de recettes Cooklang" url: "https://git.thethomaas.net/TheThomaas/home-assistant-apps" arch: -- 2.43.4 From 9845b814463e09a836b884420c8ab9c0860f8334 Mon Sep 17 00:00:00 2001 From: TheThomaas Date: Sun, 6 Sep 2026 14:11:06 +0000 Subject: [PATCH 107/157] Actualiser cookcli/rootfs/etc/services.d/cookcli/run --- cookcli/rootfs/etc/services.d/cookcli/run | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/cookcli/rootfs/etc/services.d/cookcli/run b/cookcli/rootfs/etc/services.d/cookcli/run index 4845f89..9383f6d 100644 --- a/cookcli/rootfs/etc/services.d/cookcli/run +++ b/cookcli/rootfs/etc/services.d/cookcli/run @@ -5,15 +5,15 @@ RECIPES_PATH=$(bashio::config 'recipes_path') PORT=9081 # Récupérer le chemin Ingress -INGRESS_TOKEN=$(bashio::config 'ingress_token') -if [ -n "$INGRESS_TOKEN" ]; then - INGRESS_PATH="/api/hassio_ingress/${INGRESS_TOKEN}" - bashio::log.info "Chemin Ingress: ${INGRESS_PATH}" -else - INGRESS_PATH="" -fi +#INGRESS_TOKEN=$(bashio::config 'ingress_token') +#if [ -n "$INGRESS_TOKEN" ]; then +# INGRESS_PATH="/api/hassio_ingress/${INGRESS_TOKEN}" +# bashio::log.info "Chemin Ingress: ${INGRESS_PATH}" +#else +# INGRESS_PATH="" +#fi -bashio::log.info "Démarrage de CookCLI sur le port ${PORT}..." +bashio::log.info "${INGRESS_PATH} Démarrage de CookCLI sur le port ${PORT}..." # Si CookCLI supporte --base-path if [ -n "$INGRESS_PATH" ]; then -- 2.43.4 From 312988496db6522d9b80f06a1708b04f7dc2fd59 Mon Sep 17 00:00:00 2001 From: TheThomaas Date: Sun, 6 Sep 2026 14:11:22 +0000 Subject: [PATCH 108/157] Actualiser cookcli/config.yaml --- cookcli/config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cookcli/config.yaml b/cookcli/config.yaml index 541041e..621ff24 100644 --- a/cookcli/config.yaml +++ b/cookcli/config.yaml @@ -1,7 +1,7 @@ --- name: CookCLI Server DEV slug: cookcli -version: 1.0.40 +version: 1.0.41 description: "Serveur CookCLI avec synchronisation Git - Gestionnaire de recettes Cooklang" url: "https://git.thethomaas.net/TheThomaas/home-assistant-apps" arch: -- 2.43.4 From 42efe5c07779b9e06b8766cc711f1d7b645eda4c Mon Sep 17 00:00:00 2001 From: TheThomaas Date: Tue, 8 Sep 2026 11:26:31 +0000 Subject: [PATCH 109/157] Actualiser cookcli/rootfs/etc/services.d/cookcli/run --- cookcli/rootfs/etc/services.d/cookcli/run | 28 ++++------------------- 1 file changed, 5 insertions(+), 23 deletions(-) diff --git a/cookcli/rootfs/etc/services.d/cookcli/run b/cookcli/rootfs/etc/services.d/cookcli/run index 9383f6d..7cd8f43 100644 --- a/cookcli/rootfs/etc/services.d/cookcli/run +++ b/cookcli/rootfs/etc/services.d/cookcli/run @@ -4,27 +4,9 @@ set -e RECIPES_PATH=$(bashio::config 'recipes_path') PORT=9081 -# Récupérer le chemin Ingress -#INGRESS_TOKEN=$(bashio::config 'ingress_token') -#if [ -n "$INGRESS_TOKEN" ]; then -# INGRESS_PATH="/api/hassio_ingress/${INGRESS_TOKEN}" -# bashio::log.info "Chemin Ingress: ${INGRESS_PATH}" -#else -# INGRESS_PATH="" -#fi +bashio::log.info "Démarrage de CookCLI sur le port ${PORT}..." -bashio::log.info "${INGRESS_PATH} Démarrage de CookCLI sur le port ${PORT}..." - -# Si CookCLI supporte --base-path -if [ -n "$INGRESS_PATH" ]; then - exec cook server "${RECIPES_PATH}" \ - --port "${PORT}" \ - --host "0.0.0.0" \ - --url-prefix "./" \ - >> /proc/1/fd/1 2>&1 -else - exec cook server "${RECIPES_PATH}" \ - --port "${PORT}" \ - --host "0.0.0.0" \ - >> /proc/1/fd/1 2>&1 -fi \ No newline at end of file +exec cook server "${RECIPES_PATH}" \ + --port "${PORT}" \ + --host "0.0.0.0" \ + >> /proc/1/fd/1 2>&1 \ No newline at end of file -- 2.43.4 From 75d5fac1e89cd2aa94b97b8aa9fe7d036ea22af5 Mon Sep 17 00:00:00 2001 From: TheThomaas Date: Tue, 8 Sep 2026 11:26:44 +0000 Subject: [PATCH 110/157] Actualiser cookcli/config.yaml --- cookcli/config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cookcli/config.yaml b/cookcli/config.yaml index 621ff24..67389f8 100644 --- a/cookcli/config.yaml +++ b/cookcli/config.yaml @@ -1,7 +1,7 @@ --- name: CookCLI Server DEV slug: cookcli -version: 1.0.41 +version: 1.0.42 description: "Serveur CookCLI avec synchronisation Git - Gestionnaire de recettes Cooklang" url: "https://git.thethomaas.net/TheThomaas/home-assistant-apps" arch: -- 2.43.4 From 7524c3d6ebea06e04aa484faa09965c16341420d Mon Sep 17 00:00:00 2001 From: TheThomaas Date: Tue, 8 Sep 2026 11:27:54 +0000 Subject: [PATCH 111/157] Actualiser cookcli/config.yaml --- cookcli/config.yaml | 5 ----- 1 file changed, 5 deletions(-) diff --git a/cookcli/config.yaml b/cookcli/config.yaml index 67389f8..169951f 100644 --- a/cookcli/config.yaml +++ b/cookcli/config.yaml @@ -50,11 +50,6 @@ schema: ingress_enabled: bool ingress_path: str? -# Activation de l'interface web (si CookCLI a une UI) -ingress: false -panel_icon: mdi:chef-hat -panel_title: "CookCLI" - #--- Permissions Ingress --- ingress: - port: 9080 -- 2.43.4 From 395c5930b4a8fa818d40cd4e9d3256c712d5c68e Mon Sep 17 00:00:00 2001 From: TheThomaas Date: Tue, 8 Sep 2026 11:31:34 +0000 Subject: [PATCH 112/157] Actualiser cookcli/rootfs/etc/nginx/nginx.conf --- cookcli/rootfs/etc/nginx/nginx.conf | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/cookcli/rootfs/etc/nginx/nginx.conf b/cookcli/rootfs/etc/nginx/nginx.conf index 1442175..e973fea 100644 --- a/cookcli/rootfs/etc/nginx/nginx.conf +++ b/cookcli/rootfs/etc/nginx/nginx.conf @@ -33,6 +33,21 @@ http { proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; proxy_buffering off; + + + set_by_lua_block $ingress_path { + return "/app/19e08496_cookcli" + } + + sub_filter_once off; + sub_filter_types text/html text/css application/javascript; + sub_filter 'href="/' 'href="$ingress_path/'; + sub_filter 'src="/' 'src="$ingress_path/'; + sub_filter 'action="/' 'action="$ingress_path/'; + + # Gérer les redirections + proxy_redirect http://127.0.0.1:9081/ $scheme://$host$ingress_path/; + proxy_redirect http://127.0.0.1:9081 $scheme://$host$ingress_path; } } } -- 2.43.4 From e9667a5d39ed7d86d0994782186ada824b8db67d Mon Sep 17 00:00:00 2001 From: TheThomaas Date: Tue, 8 Sep 2026 11:31:45 +0000 Subject: [PATCH 113/157] Actualiser cookcli/config.yaml --- cookcli/config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cookcli/config.yaml b/cookcli/config.yaml index 169951f..9d95e22 100644 --- a/cookcli/config.yaml +++ b/cookcli/config.yaml @@ -1,7 +1,7 @@ --- name: CookCLI Server DEV slug: cookcli -version: 1.0.42 +version: 1.0.43 description: "Serveur CookCLI avec synchronisation Git - Gestionnaire de recettes Cooklang" url: "https://git.thethomaas.net/TheThomaas/home-assistant-apps" arch: -- 2.43.4 From d64d82acdca1264cc85741a272f6e32adfc60233 Mon Sep 17 00:00:00 2001 From: TheThomaas Date: Tue, 8 Sep 2026 11:34:10 +0000 Subject: [PATCH 114/157] Actualiser cookcli/rootfs/etc/nginx/nginx.conf --- cookcli/rootfs/etc/nginx/nginx.conf | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/cookcli/rootfs/etc/nginx/nginx.conf b/cookcli/rootfs/etc/nginx/nginx.conf index e973fea..2506628 100644 --- a/cookcli/rootfs/etc/nginx/nginx.conf +++ b/cookcli/rootfs/etc/nginx/nginx.conf @@ -35,19 +35,15 @@ http { proxy_buffering off; - set_by_lua_block $ingress_path { - return "/app/19e08496_cookcli" - } - sub_filter_once off; sub_filter_types text/html text/css application/javascript; - sub_filter 'href="/' 'href="$ingress_path/'; - sub_filter 'src="/' 'src="$ingress_path/'; - sub_filter 'action="/' 'action="$ingress_path/'; + sub_filter 'href="/' 'href="/app/19e08496_cookcli/'; + sub_filter 'src="/' 'src="/app/19e08496_cookcli/'; + sub_filter 'action="/' 'action="/app/19e08496_cookcli/'; # Gérer les redirections - 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/app/19e08496_cookcli/; + proxy_redirect http://127.0.0.1:9081 $scheme://$host/app/19e08496_cookcli; } } } -- 2.43.4 From 1c3b35052d4f0ca02a825c437d2ad610426e231f Mon Sep 17 00:00:00 2001 From: TheThomaas Date: Tue, 8 Sep 2026 11:34:18 +0000 Subject: [PATCH 115/157] Actualiser cookcli/config.yaml --- cookcli/config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cookcli/config.yaml b/cookcli/config.yaml index 9d95e22..2e42199 100644 --- a/cookcli/config.yaml +++ b/cookcli/config.yaml @@ -1,7 +1,7 @@ --- name: CookCLI Server DEV slug: cookcli -version: 1.0.43 +version: 1.0.44 description: "Serveur CookCLI avec synchronisation Git - Gestionnaire de recettes Cooklang" url: "https://git.thethomaas.net/TheThomaas/home-assistant-apps" arch: -- 2.43.4 From cede26906d3b6018da385ad0eb542c3c9b29e2f8 Mon Sep 17 00:00:00 2001 From: TheThomaas Date: Tue, 8 Sep 2026 11:37:48 +0000 Subject: [PATCH 116/157] Actualiser cookcli/rootfs/etc/nginx/nginx.conf --- cookcli/rootfs/etc/nginx/nginx.conf | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/cookcli/rootfs/etc/nginx/nginx.conf b/cookcli/rootfs/etc/nginx/nginx.conf index 2506628..708eb29 100644 --- a/cookcli/rootfs/etc/nginx/nginx.conf +++ b/cookcli/rootfs/etc/nginx/nginx.conf @@ -37,13 +37,13 @@ http { sub_filter_once off; sub_filter_types text/html text/css application/javascript; - sub_filter 'href="/' 'href="/app/19e08496_cookcli/'; - sub_filter 'src="/' 'src="/app/19e08496_cookcli/'; - sub_filter 'action="/' 'action="/app/19e08496_cookcli/'; + sub_filter 'href="/' 'href="/api/hassio_ingress/8-13u1LdgJuV6yFRcXJAyE7ntZo2W_RHldPJ0xyiiKQ/'; + sub_filter 'src="/' 'src="/api/hassio_ingress/8-13u1LdgJuV6yFRcXJAyE7ntZo2W_RHldPJ0xyiiKQ/'; + sub_filter 'action="/' 'action="/api/hassio_ingress/8-13u1LdgJuV6yFRcXJAyE7ntZo2W_RHldPJ0xyiiKQ/'; # Gérer les redirections - proxy_redirect http://127.0.0.1:9081/ $scheme://$host/app/19e08496_cookcli/; - proxy_redirect http://127.0.0.1:9081 $scheme://$host/app/19e08496_cookcli; + proxy_redirect http://127.0.0.1:9081/ $scheme://$host/api/hassio_ingress/8-13u1LdgJuV6yFRcXJAyE7ntZo2W_RHldPJ0xyiiKQ/; + proxy_redirect http://127.0.0.1:9081 $scheme://$host/api/hassio_ingress/8-13u1LdgJuV6yFRcXJAyE7ntZo2W_RHldPJ0xyiiKQ; } } } -- 2.43.4 From 7c7d7f78b15846546052a152cbefaec5ed3f6445 Mon Sep 17 00:00:00 2001 From: TheThomaas Date: Tue, 8 Sep 2026 11:37:55 +0000 Subject: [PATCH 117/157] Actualiser cookcli/config.yaml --- cookcli/config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cookcli/config.yaml b/cookcli/config.yaml index 2e42199..413907f 100644 --- a/cookcli/config.yaml +++ b/cookcli/config.yaml @@ -1,7 +1,7 @@ --- name: CookCLI Server DEV slug: cookcli -version: 1.0.44 +version: 1.0.45 description: "Serveur CookCLI avec synchronisation Git - Gestionnaire de recettes Cooklang" url: "https://git.thethomaas.net/TheThomaas/home-assistant-apps" arch: -- 2.43.4 From 9070c43628f7578fea91cf3aee8214f3696df27c Mon Sep 17 00:00:00 2001 From: TheThomaas Date: Tue, 8 Sep 2026 12:07:15 +0000 Subject: [PATCH 118/157] Actualiser cookcli/rootfs/etc/nginx/nginx.conf --- cookcli/rootfs/etc/nginx/nginx.conf | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/cookcli/rootfs/etc/nginx/nginx.conf b/cookcli/rootfs/etc/nginx/nginx.conf index 708eb29..b20e45e 100644 --- a/cookcli/rootfs/etc/nginx/nginx.conf +++ b/cookcli/rootfs/etc/nginx/nginx.conf @@ -14,10 +14,31 @@ http { access_log /proc/1/fd/1; error_log /proc/1/fd/2; + upstream cookcli_backend { + server 127.0.0.1:9081; # Le port interne de CookCLI + } + server { listen 9080; server_name localhost; + location / { + # Proxy simple et direct vers CookCLI + proxy_pass http://cookcli_backend; + proxy_http_version 1.1; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection "upgrade"; + proxy_set_header Host $host; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header X-Forwarded-Proto $scheme; + } + } + + server { + listen 9081; + server_name localhost; + client_max_body_size 10M; # Headers de base @@ -28,13 +49,12 @@ http { # Proxy simple vers CookCLI location / { - proxy_pass http://127.0.0.1:9081; + proxy_pass http://cookcli_backend; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; proxy_buffering off; - sub_filter_once off; sub_filter_types text/html text/css application/javascript; sub_filter 'href="/' 'href="/api/hassio_ingress/8-13u1LdgJuV6yFRcXJAyE7ntZo2W_RHldPJ0xyiiKQ/'; -- 2.43.4 From d161790b2577907412d64a397322301988c38759 Mon Sep 17 00:00:00 2001 From: TheThomaas Date: Tue, 8 Sep 2026 12:07:24 +0000 Subject: [PATCH 119/157] Actualiser cookcli/config.yaml --- cookcli/config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cookcli/config.yaml b/cookcli/config.yaml index 413907f..e8aee57 100644 --- a/cookcli/config.yaml +++ b/cookcli/config.yaml @@ -1,7 +1,7 @@ --- name: CookCLI Server DEV slug: cookcli -version: 1.0.45 +version: 1.0.46 description: "Serveur CookCLI avec synchronisation Git - Gestionnaire de recettes Cooklang" url: "https://git.thethomaas.net/TheThomaas/home-assistant-apps" arch: -- 2.43.4 From 2790799384694d9830e6eec37111c06cb139770f Mon Sep 17 00:00:00 2001 From: TheThomaas Date: Tue, 8 Sep 2026 12:14:56 +0000 Subject: [PATCH 120/157] Actualiser cookcli/rootfs/etc/nginx/nginx.conf --- cookcli/rootfs/etc/nginx/nginx.conf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cookcli/rootfs/etc/nginx/nginx.conf b/cookcli/rootfs/etc/nginx/nginx.conf index b20e45e..2929f23 100644 --- a/cookcli/rootfs/etc/nginx/nginx.conf +++ b/cookcli/rootfs/etc/nginx/nginx.conf @@ -37,7 +37,7 @@ http { server { listen 9081; - server_name localhost; + server_name localhost_ingress; client_max_body_size 10M; @@ -56,7 +56,7 @@ http { proxy_buffering off; sub_filter_once off; - sub_filter_types text/html text/css application/javascript; + sub_filter_types text/css application/javascript; sub_filter 'href="/' 'href="/api/hassio_ingress/8-13u1LdgJuV6yFRcXJAyE7ntZo2W_RHldPJ0xyiiKQ/'; sub_filter 'src="/' 'src="/api/hassio_ingress/8-13u1LdgJuV6yFRcXJAyE7ntZo2W_RHldPJ0xyiiKQ/'; sub_filter 'action="/' 'action="/api/hassio_ingress/8-13u1LdgJuV6yFRcXJAyE7ntZo2W_RHldPJ0xyiiKQ/'; -- 2.43.4 From 932f21e127233e5c0f80027897f794a5a2112185 Mon Sep 17 00:00:00 2001 From: TheThomaas Date: Tue, 8 Sep 2026 12:15:20 +0000 Subject: [PATCH 121/157] Actualiser cookcli/config.yaml --- cookcli/config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cookcli/config.yaml b/cookcli/config.yaml index e8aee57..7d5ff75 100644 --- a/cookcli/config.yaml +++ b/cookcli/config.yaml @@ -1,7 +1,7 @@ --- name: CookCLI Server DEV slug: cookcli -version: 1.0.46 +version: 1.0.47 description: "Serveur CookCLI avec synchronisation Git - Gestionnaire de recettes Cooklang" url: "https://git.thethomaas.net/TheThomaas/home-assistant-apps" arch: -- 2.43.4 From cd4d89c55093ca3258284b21256d107150696df2 Mon Sep 17 00:00:00 2001 From: TheThomaas Date: Tue, 8 Sep 2026 12:17:11 +0000 Subject: [PATCH 122/157] Actualiser cookcli/rootfs/etc/nginx/nginx.conf --- cookcli/rootfs/etc/nginx/nginx.conf | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/cookcli/rootfs/etc/nginx/nginx.conf b/cookcli/rootfs/etc/nginx/nginx.conf index 2929f23..7ed37d8 100644 --- a/cookcli/rootfs/etc/nginx/nginx.conf +++ b/cookcli/rootfs/etc/nginx/nginx.conf @@ -14,17 +14,13 @@ http { access_log /proc/1/fd/1; error_log /proc/1/fd/2; - upstream cookcli_backend { - server 127.0.0.1:9081; # Le port interne de CookCLI - } - server { listen 9080; server_name localhost; location / { # Proxy simple et direct vers CookCLI - proxy_pass http://cookcli_backend; + proxy_pass http://127.0.0.1:9081; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; @@ -49,7 +45,7 @@ http { # Proxy simple vers CookCLI location / { - proxy_pass http://cookcli_backend; + proxy_pass http://127.0.0.1:9081; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; -- 2.43.4 From fe86a172d2d230ed84df3698ba64d40e66de8429 Mon Sep 17 00:00:00 2001 From: TheThomaas Date: Tue, 8 Sep 2026 12:17:19 +0000 Subject: [PATCH 123/157] Actualiser cookcli/config.yaml --- cookcli/config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cookcli/config.yaml b/cookcli/config.yaml index 7d5ff75..408478b 100644 --- a/cookcli/config.yaml +++ b/cookcli/config.yaml @@ -1,7 +1,7 @@ --- name: CookCLI Server DEV slug: cookcli -version: 1.0.47 +version: 1.0.48 description: "Serveur CookCLI avec synchronisation Git - Gestionnaire de recettes Cooklang" url: "https://git.thethomaas.net/TheThomaas/home-assistant-apps" arch: -- 2.43.4 From a9888654690e0a78437766b72c0d31575c2567a0 Mon Sep 17 00:00:00 2001 From: TheThomaas Date: Tue, 8 Sep 2026 12:22:10 +0000 Subject: [PATCH 124/157] Actualiser cookcli/rootfs/etc/nginx/nginx.conf --- cookcli/rootfs/etc/nginx/nginx.conf | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/cookcli/rootfs/etc/nginx/nginx.conf b/cookcli/rootfs/etc/nginx/nginx.conf index 7ed37d8..3b40e74 100644 --- a/cookcli/rootfs/etc/nginx/nginx.conf +++ b/cookcli/rootfs/etc/nginx/nginx.conf @@ -14,23 +14,6 @@ http { access_log /proc/1/fd/1; error_log /proc/1/fd/2; - server { - listen 9080; - server_name localhost; - - location / { - # Proxy simple et direct vers CookCLI - proxy_pass http://127.0.0.1:9081; - proxy_http_version 1.1; - proxy_set_header Upgrade $http_upgrade; - proxy_set_header Connection "upgrade"; - proxy_set_header Host $host; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header X-Forwarded-Proto $scheme; - } - } - server { listen 9081; server_name localhost_ingress; -- 2.43.4 From 53b839e32125d8858fa4b147eab6dc7e371410b8 Mon Sep 17 00:00:00 2001 From: TheThomaas Date: Tue, 8 Sep 2026 12:23:37 +0000 Subject: [PATCH 125/157] Actualiser cookcli/rootfs/etc/nginx/nginx.conf --- cookcli/rootfs/etc/nginx/nginx.conf | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cookcli/rootfs/etc/nginx/nginx.conf b/cookcli/rootfs/etc/nginx/nginx.conf index 3b40e74..d8453bb 100644 --- a/cookcli/rootfs/etc/nginx/nginx.conf +++ b/cookcli/rootfs/etc/nginx/nginx.conf @@ -16,7 +16,10 @@ http { server { listen 9081; - server_name localhost_ingress; + allow 172.30.32.2; + deny all; + + server_name localhost; client_max_body_size 10M; -- 2.43.4 From ddf243400d3f0d93fb1b8e3f3ac0f7f8a45f6a95 Mon Sep 17 00:00:00 2001 From: TheThomaas Date: Tue, 8 Sep 2026 12:24:25 +0000 Subject: [PATCH 126/157] Actualiser cookcli/config.yaml --- cookcli/config.yaml | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/cookcli/config.yaml b/cookcli/config.yaml index 408478b..213c374 100644 --- a/cookcli/config.yaml +++ b/cookcli/config.yaml @@ -1,7 +1,7 @@ --- name: CookCLI Server DEV slug: cookcli -version: 1.0.48 +version: 1.0.49 description: "Serveur CookCLI avec synchronisation Git - Gestionnaire de recettes Cooklang" url: "https://git.thethomaas.net/TheThomaas/home-assistant-apps" arch: @@ -18,37 +18,37 @@ ingress_port: 9080 ingress_entry: / panel_icon: mdi:chef-hat panel_title: "CookCLI" -panel admin: false # Mettre à true si seulement les admins doivent voir l'interface +panel_admin: false # Mettre à true si seulement les admins doivent voir l'interface -ports: - 9080/tcp: 9080 -ports_description: - 9080/tcp: "Port du serveur CookCLI" +# ports: +# 9080/tcp: 9080 +# ports_description: +# 9080/tcp: "Port du serveur CookCLI" init: false options: recipes_path: /config/recipes - port: 9080 + # port: 9080 log_level: info git_repository: "" git_branch: main git_sync_interval: 3600 git_username: "" git_password: "" - ingress_enabled: true - ingress_path: "" + # ingress_enabled: true + # ingress_path: "" schema: recipes_path: str - port: int(1,65535) + # port: int(1,65535) log_level: list(trace|debug|info|notice|warning|error|fatal) git_repository: str? git_branch: str git_sync_interval: int(60,86400)? git_username: str? git_password: password? - ingress_enabled: bool - ingress_path: str? + # ingress_enabled: bool + # ingress_path: str? #--- Permissions Ingress --- ingress: -- 2.43.4 From de70e564e659f8ec6d4bc2a02d00a7506789b28f Mon Sep 17 00:00:00 2001 From: TheThomaas Date: Tue, 8 Sep 2026 12:26:40 +0000 Subject: [PATCH 127/157] Actualiser cookcli/rootfs/etc/nginx/nginx.conf --- cookcli/rootfs/etc/nginx/nginx.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cookcli/rootfs/etc/nginx/nginx.conf b/cookcli/rootfs/etc/nginx/nginx.conf index d8453bb..545ce35 100644 --- a/cookcli/rootfs/etc/nginx/nginx.conf +++ b/cookcli/rootfs/etc/nginx/nginx.conf @@ -15,7 +15,7 @@ http { error_log /proc/1/fd/2; server { - listen 9081; + listen 9080; allow 172.30.32.2; deny all; -- 2.43.4 From 37cfb434cd738cdf07040893d90a18f0acb70a2b Mon Sep 17 00:00:00 2001 From: TheThomaas Date: Tue, 8 Sep 2026 12:27:51 +0000 Subject: [PATCH 128/157] Actualiser cookcli/config.yaml --- cookcli/config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cookcli/config.yaml b/cookcli/config.yaml index 213c374..837b36e 100644 --- a/cookcli/config.yaml +++ b/cookcli/config.yaml @@ -1,7 +1,7 @@ --- name: CookCLI Server DEV slug: cookcli -version: 1.0.49 +version: 1.0.50 description: "Serveur CookCLI avec synchronisation Git - Gestionnaire de recettes Cooklang" url: "https://git.thethomaas.net/TheThomaas/home-assistant-apps" arch: -- 2.43.4 From 89e7662e9031d1bb0a329caaf2cb8e289bbbed95 Mon Sep 17 00:00:00 2001 From: TheThomaas Date: Tue, 8 Sep 2026 12:30:40 +0000 Subject: [PATCH 129/157] Actualiser cookcli/rootfs/etc/services.d/nginx/run --- cookcli/rootfs/etc/services.d/nginx/run | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cookcli/rootfs/etc/services.d/nginx/run b/cookcli/rootfs/etc/services.d/nginx/run index 656aa10..5f187ca 100644 --- a/cookcli/rootfs/etc/services.d/nginx/run +++ b/cookcli/rootfs/etc/services.d/nginx/run @@ -3,6 +3,8 @@ set -e bashio::log.info "=== Démarrage du service Nginx ===" +bashio::log.info "=== ${bashio::addon.ingress_entry} ===" + # Attendre que CookCLI soit prêt bashio::log.info "Attente de CookCLI sur le port 9081..." for i in $(seq 1 30); do -- 2.43.4 From 0bf1810d93c816285bfda8a355ce2a90d93a7c11 Mon Sep 17 00:00:00 2001 From: TheThomaas Date: Tue, 8 Sep 2026 12:30:46 +0000 Subject: [PATCH 130/157] Actualiser cookcli/config.yaml --- cookcli/config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cookcli/config.yaml b/cookcli/config.yaml index 837b36e..d5372ef 100644 --- a/cookcli/config.yaml +++ b/cookcli/config.yaml @@ -1,7 +1,7 @@ --- name: CookCLI Server DEV slug: cookcli -version: 1.0.50 +version: 1.0.51 description: "Serveur CookCLI avec synchronisation Git - Gestionnaire de recettes Cooklang" url: "https://git.thethomaas.net/TheThomaas/home-assistant-apps" arch: -- 2.43.4 From e3fe7ecf836143119312c864efaa6dcb6e3ff16b Mon Sep 17 00:00:00 2001 From: TheThomaas Date: Tue, 8 Sep 2026 12:32:34 +0000 Subject: [PATCH 131/157] Actualiser cookcli/rootfs/etc/services.d/nginx/run --- cookcli/rootfs/etc/services.d/nginx/run | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cookcli/rootfs/etc/services.d/nginx/run b/cookcli/rootfs/etc/services.d/nginx/run index 5f187ca..55ff7af 100644 --- a/cookcli/rootfs/etc/services.d/nginx/run +++ b/cookcli/rootfs/etc/services.d/nginx/run @@ -3,7 +3,8 @@ set -e bashio::log.info "=== Démarrage du service Nginx ===" -bashio::log.info "=== ${bashio::addon.ingress_entry} ===" +INGRESS_PATH=$(bashio::addon.ingress_entry) +bashio::log.info "=== ${INGRESS_PATH} ===" # Attendre que CookCLI soit prêt bashio::log.info "Attente de CookCLI sur le port 9081..." -- 2.43.4 From 2af6a06973fa88937d8c63ca851cbd69c892c3e1 Mon Sep 17 00:00:00 2001 From: TheThomaas Date: Tue, 8 Sep 2026 12:32:40 +0000 Subject: [PATCH 132/157] Actualiser cookcli/config.yaml --- cookcli/config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cookcli/config.yaml b/cookcli/config.yaml index d5372ef..a4d4057 100644 --- a/cookcli/config.yaml +++ b/cookcli/config.yaml @@ -1,7 +1,7 @@ --- name: CookCLI Server DEV slug: cookcli -version: 1.0.51 +version: 1.0.52 description: "Serveur CookCLI avec synchronisation Git - Gestionnaire de recettes Cooklang" url: "https://git.thethomaas.net/TheThomaas/home-assistant-apps" arch: -- 2.43.4 From 4d3d7bc5e8c1f16068bb6641fe1f061f9e38de86 Mon Sep 17 00:00:00 2001 From: TheThomaas Date: Tue, 8 Sep 2026 12:35:28 +0000 Subject: [PATCH 133/157] Actualiser cookcli/rootfs/etc/services.d/nginx/run --- cookcli/rootfs/etc/services.d/nginx/run | 3 --- 1 file changed, 3 deletions(-) diff --git a/cookcli/rootfs/etc/services.d/nginx/run b/cookcli/rootfs/etc/services.d/nginx/run index 55ff7af..656aa10 100644 --- a/cookcli/rootfs/etc/services.d/nginx/run +++ b/cookcli/rootfs/etc/services.d/nginx/run @@ -3,9 +3,6 @@ set -e bashio::log.info "=== Démarrage du service Nginx ===" -INGRESS_PATH=$(bashio::addon.ingress_entry) -bashio::log.info "=== ${INGRESS_PATH} ===" - # Attendre que CookCLI soit prêt bashio::log.info "Attente de CookCLI sur le port 9081..." for i in $(seq 1 30); do -- 2.43.4 From c9af09a0018cf799aaf42b26768368a4c88b1317 Mon Sep 17 00:00:00 2001 From: TheThomaas Date: Tue, 8 Sep 2026 12:37:45 +0000 Subject: [PATCH 134/157] Actualiser cookcli/rootfs/etc/nginx/nginx.conf --- cookcli/rootfs/etc/nginx/nginx.conf | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/cookcli/rootfs/etc/nginx/nginx.conf b/cookcli/rootfs/etc/nginx/nginx.conf index 545ce35..18d3426 100644 --- a/cookcli/rootfs/etc/nginx/nginx.conf +++ b/cookcli/rootfs/etc/nginx/nginx.conf @@ -4,6 +4,9 @@ events { worker_connections 1024; } +# INGRESS_PATH=$(bashio::addon.ingress_entry) +# bashio::log.info "=== ${INGRESS_PATH} ===" + http { include /etc/nginx/mime.types; default_type application/octet-stream; @@ -37,15 +40,17 @@ http { proxy_set_header Connection "upgrade"; proxy_buffering off; + set $ingress_path $http_x_forwarded_prefix; + sub_filter_once off; sub_filter_types text/css application/javascript; - sub_filter 'href="/' 'href="/api/hassio_ingress/8-13u1LdgJuV6yFRcXJAyE7ntZo2W_RHldPJ0xyiiKQ/'; - sub_filter 'src="/' 'src="/api/hassio_ingress/8-13u1LdgJuV6yFRcXJAyE7ntZo2W_RHldPJ0xyiiKQ/'; - sub_filter 'action="/' 'action="/api/hassio_ingress/8-13u1LdgJuV6yFRcXJAyE7ntZo2W_RHldPJ0xyiiKQ/'; + sub_filter 'href="/' 'href="$ingress_path/'; + sub_filter 'src="/' 'src="$ingress_path/'; + sub_filter 'action="/' 'action="$ingress_path/'; # Gérer les redirections - proxy_redirect http://127.0.0.1:9081/ $scheme://$host/api/hassio_ingress/8-13u1LdgJuV6yFRcXJAyE7ntZo2W_RHldPJ0xyiiKQ/; - proxy_redirect http://127.0.0.1:9081 $scheme://$host/api/hassio_ingress/8-13u1LdgJuV6yFRcXJAyE7ntZo2W_RHldPJ0xyiiKQ; + proxy_redirect http://127.0.0.1:9081/ $scheme://$host$ingress_path/; + proxy_redirect http://127.0.0.1:9081 $scheme://$host$ingress_path; } } } -- 2.43.4 From d9061bafe2e61f105da79cde59006621b36719a7 Mon Sep 17 00:00:00 2001 From: TheThomaas Date: Tue, 8 Sep 2026 12:37:55 +0000 Subject: [PATCH 135/157] Actualiser cookcli/config.yaml --- cookcli/config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cookcli/config.yaml b/cookcli/config.yaml index a4d4057..7b3ffa1 100644 --- a/cookcli/config.yaml +++ b/cookcli/config.yaml @@ -1,7 +1,7 @@ --- name: CookCLI Server DEV slug: cookcli -version: 1.0.52 +version: 1.0.53 description: "Serveur CookCLI avec synchronisation Git - Gestionnaire de recettes Cooklang" url: "https://git.thethomaas.net/TheThomaas/home-assistant-apps" arch: -- 2.43.4 From 1fcc6b05be0fefbe21d4e6f205897b4f366819e6 Mon Sep 17 00:00:00 2001 From: TheThomaas Date: Tue, 8 Sep 2026 12:43:11 +0000 Subject: [PATCH 136/157] Ajouter cookcli/rootfs/etc/cont-init.d/99-nginx-config.sh --- .../rootfs/etc/cont-init.d/99-nginx-config.sh | 67 +++++++++++++++++++ 1 file changed, 67 insertions(+) create mode 100644 cookcli/rootfs/etc/cont-init.d/99-nginx-config.sh diff --git a/cookcli/rootfs/etc/cont-init.d/99-nginx-config.sh b/cookcli/rootfs/etc/cont-init.d/99-nginx-config.sh new file mode 100644 index 0000000..06e4ed4 --- /dev/null +++ b/cookcli/rootfs/etc/cont-init.d/99-nginx-config.sh @@ -0,0 +1,67 @@ +#!/usr/bin/with-contenv bashio +set -e + +bashio::log.info "=== Génération de la configuration Nginx ===" + +INGRESS_PATH=$(bashio::addon.ingress_entry) +bashio::log.info "=== ${INGRESS_PATH} ===" + +bashio::log.info "Chemin Ingress: ${INGRESS_PATH}" + +# Générer la configuration complète avec la valeur injectée +cat > /etc/nginx/nginx.conf << EOF +worker_processes 1; + +events { + worker_connections 1024; +} + +http { + include /etc/nginx/mime.types; + default_type application/octet-stream; + + sendfile on; + keepalive_timeout 65; + + access_log /proc/1/fd/1; + error_log /proc/1/fd/2; + + server { + listen 9080; + allow 172.30.32.2; + deny all; + + server_name localhost; + + client_max_body_size 10M; + + # Headers de base + proxy_set_header Host \$host; + proxy_set_header X-Real-IP \$remote_addr; + proxy_set_header X-Forwarded-For \$proxy_add_x_forwarded_for; + proxy_set_header X-Forwarded-Proto \$scheme; + + # Proxy simple vers CookCLI + location / { + proxy_pass http://127.0.0.1:9081; + proxy_http_version 1.1; + proxy_set_header Upgrade \$http_upgrade; + proxy_set_header Connection "upgrade"; + proxy_buffering off; + + sub_filter_once off; + sub_filter_types text/css application/javascript; + sub_filter 'href="/' 'href="${INGRESS_PATH}/'; + sub_filter 'src="/' 'src="${INGRESS_PATH}/'; + sub_filter 'action="/' 'action="${INGRESS_PATH}/'; + + # Gérer les redirections + proxy_redirect http://127.0.0.1:9081/ \$scheme://$host${INGRESS_PATH}/; + proxy_redirect http://127.0.0.1:9081 \$scheme://$host${INGRESS_PATH}; + } + } +} + +EOF + +bashio::log.info "✅ Configuration Nginx générée avec succès" \ No newline at end of file -- 2.43.4 From db4356f14d3c8223fdd98fe309b8756e9c7d9124 Mon Sep 17 00:00:00 2001 From: TheThomaas Date: Tue, 8 Sep 2026 12:44:32 +0000 Subject: [PATCH 137/157] Actualiser cookcli/rootfs/etc/services.d/nginx/run --- cookcli/rootfs/etc/services.d/nginx/run | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/cookcli/rootfs/etc/services.d/nginx/run b/cookcli/rootfs/etc/services.d/nginx/run index 656aa10..7293f75 100644 --- a/cookcli/rootfs/etc/services.d/nginx/run +++ b/cookcli/rootfs/etc/services.d/nginx/run @@ -3,11 +3,17 @@ set -e bashio::log.info "=== Démarrage du service Nginx ===" +# Vérifier que la configuration existe +if [ ! -f /etc/nginx/nginx.conf ]; then + bashio::log.error "❌ Configuration Nginx manquante !" + exit 1 +fi + # Attendre que CookCLI soit prêt bashio::log.info "Attente de CookCLI sur le port 9081..." for i in $(seq 1 30); do if nc -z 127.0.0.1 9081 2>/dev/null; then - bashio::log.info "✅ CookCLI est prêt (port 9081 accessible)" + bashio::log.info "✅ CookCLI est prêt" break fi bashio::log.info "⏳ Tentative ${i}/30..." -- 2.43.4 From 4ebc782f5fccc59f5e98a178669ce7b1b9930b6d Mon Sep 17 00:00:00 2001 From: TheThomaas Date: Tue, 8 Sep 2026 12:44:48 +0000 Subject: [PATCH 138/157] Actualiser cookcli/config.yaml --- cookcli/config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cookcli/config.yaml b/cookcli/config.yaml index 7b3ffa1..5ba5b3e 100644 --- a/cookcli/config.yaml +++ b/cookcli/config.yaml @@ -1,7 +1,7 @@ --- name: CookCLI Server DEV slug: cookcli -version: 1.0.53 +version: 1.0.54 description: "Serveur CookCLI avec synchronisation Git - Gestionnaire de recettes Cooklang" url: "https://git.thethomaas.net/TheThomaas/home-assistant-apps" arch: -- 2.43.4 From 16bfa8345fab9cb8bdf828b4db04e4a6a7c5b977 Mon Sep 17 00:00:00 2001 From: TheThomaas Date: Tue, 8 Sep 2026 12:47:11 +0000 Subject: [PATCH 139/157] Actualiser cookcli/rootfs/etc/cont-init.d/99-nginx-config.sh --- cookcli/rootfs/etc/cont-init.d/99-nginx-config.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cookcli/rootfs/etc/cont-init.d/99-nginx-config.sh b/cookcli/rootfs/etc/cont-init.d/99-nginx-config.sh index 06e4ed4..aaf3ce6 100644 --- a/cookcli/rootfs/etc/cont-init.d/99-nginx-config.sh +++ b/cookcli/rootfs/etc/cont-init.d/99-nginx-config.sh @@ -56,8 +56,8 @@ http { sub_filter 'action="/' 'action="${INGRESS_PATH}/'; # Gérer les redirections - 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}; } } } -- 2.43.4 From 1da820f889dabd4b906aaf62f18a11b4efdc6e62 Mon Sep 17 00:00:00 2001 From: TheThomaas Date: Tue, 8 Sep 2026 12:47:18 +0000 Subject: [PATCH 140/157] Actualiser cookcli/config.yaml --- cookcli/config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cookcli/config.yaml b/cookcli/config.yaml index 5ba5b3e..ba0deb6 100644 --- a/cookcli/config.yaml +++ b/cookcli/config.yaml @@ -1,7 +1,7 @@ --- name: CookCLI Server DEV slug: cookcli -version: 1.0.54 +version: 1.0.55 description: "Serveur CookCLI avec synchronisation Git - Gestionnaire de recettes Cooklang" url: "https://git.thethomaas.net/TheThomaas/home-assistant-apps" arch: -- 2.43.4 From b3ef5814d2143be1eb990557704d5626f3f80f6f Mon Sep 17 00:00:00 2001 From: TheThomaas Date: Tue, 8 Sep 2026 12:49:56 +0000 Subject: [PATCH 141/157] Supprimer cookcli/rootfs/etc/nginx/nginx.conf --- cookcli/rootfs/etc/nginx/nginx.conf | 57 ----------------------------- 1 file changed, 57 deletions(-) delete mode 100644 cookcli/rootfs/etc/nginx/nginx.conf diff --git a/cookcli/rootfs/etc/nginx/nginx.conf b/cookcli/rootfs/etc/nginx/nginx.conf deleted file mode 100644 index 18d3426..0000000 --- a/cookcli/rootfs/etc/nginx/nginx.conf +++ /dev/null @@ -1,57 +0,0 @@ -worker_processes 1; - -events { - worker_connections 1024; -} - -# INGRESS_PATH=$(bashio::addon.ingress_entry) -# bashio::log.info "=== ${INGRESS_PATH} ===" - -http { - include /etc/nginx/mime.types; - default_type application/octet-stream; - - sendfile on; - keepalive_timeout 65; - - access_log /proc/1/fd/1; - error_log /proc/1/fd/2; - - server { - listen 9080; - allow 172.30.32.2; - deny all; - - server_name localhost; - - client_max_body_size 10M; - - # Headers de base - proxy_set_header Host $host; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header X-Forwarded-Proto $scheme; - - # Proxy simple vers CookCLI - location / { - proxy_pass http://127.0.0.1:9081; - proxy_http_version 1.1; - proxy_set_header Upgrade $http_upgrade; - proxy_set_header Connection "upgrade"; - proxy_buffering off; - - set $ingress_path $http_x_forwarded_prefix; - - sub_filter_once off; - sub_filter_types text/css application/javascript; - sub_filter 'href="/' 'href="$ingress_path/'; - sub_filter 'src="/' 'src="$ingress_path/'; - sub_filter 'action="/' 'action="$ingress_path/'; - - # Gérer les redirections - proxy_redirect http://127.0.0.1:9081/ $scheme://$host$ingress_path/; - proxy_redirect http://127.0.0.1:9081 $scheme://$host$ingress_path; - } - } -} - \ No newline at end of file -- 2.43.4 From b8006639739070cc824d24fb20f43fd5b1073fe4 Mon Sep 17 00:00:00 2001 From: TheThomaas Date: Tue, 8 Sep 2026 12:50:13 +0000 Subject: [PATCH 142/157] Actualiser cookcli/rootfs/etc/cont-init.d/99-nginx-config.sh --- cookcli/rootfs/etc/cont-init.d/99-nginx-config.sh | 6 ------ 1 file changed, 6 deletions(-) diff --git a/cookcli/rootfs/etc/cont-init.d/99-nginx-config.sh b/cookcli/rootfs/etc/cont-init.d/99-nginx-config.sh index aaf3ce6..5b19a6c 100644 --- a/cookcli/rootfs/etc/cont-init.d/99-nginx-config.sh +++ b/cookcli/rootfs/etc/cont-init.d/99-nginx-config.sh @@ -3,12 +3,6 @@ set -e bashio::log.info "=== Génération de la configuration Nginx ===" -INGRESS_PATH=$(bashio::addon.ingress_entry) -bashio::log.info "=== ${INGRESS_PATH} ===" - -bashio::log.info "Chemin Ingress: ${INGRESS_PATH}" - -# Générer la configuration complète avec la valeur injectée cat > /etc/nginx/nginx.conf << EOF worker_processes 1; -- 2.43.4 From 4780bc5bd76a3d967efcfb7252f344ebc5fb04e0 Mon Sep 17 00:00:00 2001 From: TheThomaas Date: Tue, 8 Sep 2026 12:54:23 +0000 Subject: [PATCH 143/157] Actualiser cookcli/rootfs/etc/services.d/cookcli/run --- cookcli/rootfs/etc/services.d/cookcli/run | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cookcli/rootfs/etc/services.d/cookcli/run b/cookcli/rootfs/etc/services.d/cookcli/run index 7cd8f43..6f33ac2 100644 --- a/cookcli/rootfs/etc/services.d/cookcli/run +++ b/cookcli/rootfs/etc/services.d/cookcli/run @@ -1,7 +1,7 @@ #!/usr/bin/with-contenv bashio set -e -RECIPES_PATH=$(bashio::config 'recipes_path') +RECIPES_PATH=/config/recipes PORT=9081 bashio::log.info "Démarrage de CookCLI sur le port ${PORT}..." -- 2.43.4 From 1ca9e08cea1a2cc28b27e63da766ae7c483f0237 Mon Sep 17 00:00:00 2001 From: TheThomaas Date: Tue, 8 Sep 2026 12:56:52 +0000 Subject: [PATCH 144/157] Actualiser cookcli/config.yaml --- cookcli/config.yaml | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) diff --git a/cookcli/config.yaml b/cookcli/config.yaml index ba0deb6..c515dee 100644 --- a/cookcli/config.yaml +++ b/cookcli/config.yaml @@ -1,7 +1,7 @@ --- name: CookCLI Server DEV slug: cookcli -version: 1.0.55 +version: 1.0.56 description: "Serveur CookCLI avec synchronisation Git - Gestionnaire de recettes Cooklang" url: "https://git.thethomaas.net/TheThomaas/home-assistant-apps" arch: @@ -20,35 +20,23 @@ panel_icon: mdi:chef-hat panel_title: "CookCLI" panel_admin: false # Mettre à true si seulement les admins doivent voir l'interface -# ports: -# 9080/tcp: 9080 -# ports_description: -# 9080/tcp: "Port du serveur CookCLI" +ports: + 9080/tcp: null init: false options: - recipes_path: /config/recipes - # port: 9080 - log_level: info git_repository: "" git_branch: main git_sync_interval: 3600 git_username: "" git_password: "" - # ingress_enabled: true - # ingress_path: "" schema: - recipes_path: str - # port: int(1,65535) - log_level: list(trace|debug|info|notice|warning|error|fatal) git_repository: str? git_branch: str git_sync_interval: int(60,86400)? git_username: str? git_password: password? - # ingress_enabled: bool - # ingress_path: str? #--- Permissions Ingress --- ingress: -- 2.43.4 From a88fc729abb170cd479fc3339dd98cf371d22f4a Mon Sep 17 00:00:00 2001 From: TheThomaas Date: Tue, 8 Sep 2026 12:58:16 +0000 Subject: [PATCH 145/157] Actualiser cookcli/rootfs/etc/cont-init.d/99-nginx-config.sh --- cookcli/rootfs/etc/cont-init.d/99-nginx-config.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cookcli/rootfs/etc/cont-init.d/99-nginx-config.sh b/cookcli/rootfs/etc/cont-init.d/99-nginx-config.sh index 5b19a6c..baf940a 100644 --- a/cookcli/rootfs/etc/cont-init.d/99-nginx-config.sh +++ b/cookcli/rootfs/etc/cont-init.d/99-nginx-config.sh @@ -3,6 +3,8 @@ set -e bashio::log.info "=== Génération de la configuration Nginx ===" +INGRESS_PATH=$(bashio::addon.ingress_entry) + cat > /etc/nginx/nginx.conf << EOF worker_processes 1; -- 2.43.4 From 324b7de943f4269bf584dca6d9cc8977de24a2b3 Mon Sep 17 00:00:00 2001 From: TheThomaas Date: Tue, 8 Sep 2026 12:58:26 +0000 Subject: [PATCH 146/157] Actualiser cookcli/config.yaml --- cookcli/config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cookcli/config.yaml b/cookcli/config.yaml index c515dee..b969e18 100644 --- a/cookcli/config.yaml +++ b/cookcli/config.yaml @@ -1,7 +1,7 @@ --- name: CookCLI Server DEV slug: cookcli -version: 1.0.56 +version: 1.0.57 description: "Serveur CookCLI avec synchronisation Git - Gestionnaire de recettes Cooklang" url: "https://git.thethomaas.net/TheThomaas/home-assistant-apps" arch: -- 2.43.4 From 3ac99116805781bfb3f4bd9aeb30ea9f7614d812 Mon Sep 17 00:00:00 2001 From: TheThomaas Date: Tue, 8 Sep 2026 13:00:03 +0000 Subject: [PATCH 147/157] Actualiser cookcli/rootfs/etc/cont-init.d/50-cookcli.sh --- cookcli/rootfs/etc/cont-init.d/50-cookcli.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cookcli/rootfs/etc/cont-init.d/50-cookcli.sh b/cookcli/rootfs/etc/cont-init.d/50-cookcli.sh index 2f76499..33c857a 100644 --- a/cookcli/rootfs/etc/cont-init.d/50-cookcli.sh +++ b/cookcli/rootfs/etc/cont-init.d/50-cookcli.sh @@ -24,6 +24,6 @@ fi bashio::log.info "✅ CookCLI est prêt : $(/usr/local/bin/cook --version 2>&1 | head -n1)" # Créer le dossier des recettes -RECIPES_PATH=$(bashio::config 'recipes_path') +RECIPES_PATH=/config/recipes mkdir -p "${RECIPES_PATH}" bashio::log.info "✅ Dossier des recettes : ${RECIPES_PATH}" \ No newline at end of file -- 2.43.4 From 4c67d9727ef20f2f53b2ef16489d70f0ed956d55 Mon Sep 17 00:00:00 2001 From: TheThomaas Date: Tue, 8 Sep 2026 13:00:24 +0000 Subject: [PATCH 148/157] Actualiser cookcli/config.yaml --- cookcli/config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cookcli/config.yaml b/cookcli/config.yaml index b969e18..8252f3e 100644 --- a/cookcli/config.yaml +++ b/cookcli/config.yaml @@ -1,7 +1,7 @@ --- name: CookCLI Server DEV slug: cookcli -version: 1.0.57 +version: 1.0.58 description: "Serveur CookCLI avec synchronisation Git - Gestionnaire de recettes Cooklang" url: "https://git.thethomaas.net/TheThomaas/home-assistant-apps" arch: -- 2.43.4 From 3552926e31d22c7b05bdef51afbc508e348ac81b Mon Sep 17 00:00:00 2001 From: TheThomaas Date: Tue, 8 Sep 2026 13:01:55 +0000 Subject: [PATCH 149/157] Actualiser cookcli/rootfs/etc/services.d/git-sync/run --- cookcli/rootfs/etc/services.d/git-sync/run | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cookcli/rootfs/etc/services.d/git-sync/run b/cookcli/rootfs/etc/services.d/git-sync/run index dfc72d3..ccad01b 100644 --- a/cookcli/rootfs/etc/services.d/git-sync/run +++ b/cookcli/rootfs/etc/services.d/git-sync/run @@ -7,7 +7,7 @@ sync_git() { local BRANCH=$(bashio::config 'git_branch') local USERNAME=$(bashio::config 'git_username') local PASSWORD=$(bashio::config 'git_password') - local RECIPES_PATH=$(bashio::config 'recipes_path') + local RECIPES_PATH=/config/recipes if [ -z "$REPO" ]; then bashio::log.info "Aucun dépôt Git configuré. Attente..." -- 2.43.4 From 2093cb359d792a79e7687795751048616b1a23f8 Mon Sep 17 00:00:00 2001 From: TheThomaas Date: Tue, 8 Sep 2026 13:02:13 +0000 Subject: [PATCH 150/157] Actualiser cookcli/config.yaml --- cookcli/config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cookcli/config.yaml b/cookcli/config.yaml index 8252f3e..eb94dfb 100644 --- a/cookcli/config.yaml +++ b/cookcli/config.yaml @@ -1,7 +1,7 @@ --- name: CookCLI Server DEV slug: cookcli -version: 1.0.58 +version: 1.0.59 description: "Serveur CookCLI avec synchronisation Git - Gestionnaire de recettes Cooklang" url: "https://git.thethomaas.net/TheThomaas/home-assistant-apps" arch: -- 2.43.4 From c61724f9ebed7ad6a464b3dedd8d5eb76fa56b19 Mon Sep 17 00:00:00 2001 From: TheThomaas Date: Tue, 8 Sep 2026 13:12:48 +0000 Subject: [PATCH 151/157] Actualiser cookcli/README.md --- cookcli/README.md | 52 +++++++++++++++++++---------------------------- 1 file changed, 21 insertions(+), 31 deletions(-) diff --git a/cookcli/README.md b/cookcli/README.md index ce89860..c7f5053 100644 --- a/cookcli/README.md +++ b/cookcli/README.md @@ -1,42 +1,32 @@ -# CookCLI Server Add-on pour Home Assistant +# CookCLI Server Add-on -Serveur CookCLI avec synchronisation Git automatique pour gérer vos recettes Cooklang. +![Version](https://img.shields.io/badge/version-0.10.0-blue.svg) +[![License](https://img.shields.io/badge/license-MIT-green.svg)](LICENSE) -## 🚀 Fonctionnalités +Serveur CookCLI avec synchronisation Git automatique -- Serveur CookCLI prêt à l'emploi -- Synchronisation Git automatique des recettes -- Interface accessible via le port 9080 -- Intégration avec l'API CookCLI pour Home Assistant +--- -## 📦 Installation +## 🚀 Installation rapide -1. Ajoutez ce dépôt en tant que dépôt d'add-ons dans Home Assistant -2. Installez l'add-on "CookCLI Server" -3. Configurez les options (dépôt Git, intervalle de sync, etc.) -4. Démarrez l'add-on +[![Open your Home Assistant instance and show the add app repository dialog with a specific repository URL pre-filled.](https://my.home-assistant.io/badges/supervisor_add_addon_repository.svg)](https://my.home-assistant.io/redirect/supervisor_add_addon_repository/?repository_url=https%3A%2F%2Fgit.thethomaas.net%2FTheThomaas%2Fhome-assistant-apps) + +1. **Ajoutez le dépôt** dans Supervisor → Add-ons → Dépôts : + ``` + https://git.thethomaas.net/TheThomaas/home-assistant-apps + ``` +2. **Installez** l'add-on "CookCLI Server". +3. **Configurez** (au minimum `git_repository`). +4. **Démarrez** l'add-on. + +--- ## ⚙️ Configuration -### Options disponibles - -- `recipes_path` : Dossier où stocker les recettes (défaut: `/config/recipes`) -- `port` : Port du serveur (défaut: 9080) -- `log_level` : Niveau de log (debug, info, warning, error) -- `git_repository` : URL du dépôt Git (ex: https://github.com/user/recipes.git) -- `git_branch` : Branche à utiliser (défaut: main) -- `git_sync_interval` : Intervalle de synchronisation en secondes (défaut: 3600) -- `git_username` : Nom d'utilisateur pour l'authentification (optionnel) -- `git_password` : Mot de passe ou token (optionnel) - -### Exemple avec dépôt Git - ```yaml -recipes_path: /config/recipes -port: 9080 -log_level: info -git_repository: https://github.com/mon-user/mes-recettes.git +git_repository: https://github.com/user/recipes.git # Obligatoire git_branch: main git_sync_interval: 3600 -git_username: mon-user -git_password: mon-token-github \ No newline at end of file +git_username: "" # Pour dépôt privé +git_password: "" # Token ou mot de passe +``` -- 2.43.4 From 38d2c0b50d3013498cd00175ab0033b7ef11dcf8 Mon Sep 17 00:00:00 2001 From: TheThomaas Date: Tue, 8 Sep 2026 13:14:01 +0000 Subject: [PATCH 152/157] Actualiser cookcli/LICENSE --- cookcli/LICENSE | 687 ++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 670 insertions(+), 17 deletions(-) diff --git a/cookcli/LICENSE b/cookcli/LICENSE index 14083ca..f288702 100644 --- a/cookcli/LICENSE +++ b/cookcli/LICENSE @@ -1,21 +1,674 @@ -The MIT License (MIT) + GNU GENERAL PUBLIC LICENSE + Version 3, 29 June 2007 -Copyright (c) 2015 Cyrill Kulka + Copyright (C) 2007 Free Software Foundation, Inc. + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: + Preamble -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. + The GNU General Public License is a free, copyleft license for +software and other kinds of works. -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. \ No newline at end of file + The licenses for most software and other practical works are designed +to take away your freedom to share and change the works. By contrast, +the GNU General Public License is intended to guarantee your freedom to +share and change all versions of a program--to make sure it remains free +software for all its users. We, the Free Software Foundation, use the +GNU General Public License for most of our software; it applies also to +any other work released this way by its authors. You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +them if you wish), that you receive source code or can get it if you +want it, that you can change the software or use pieces of it in new +free programs, and that you know you can do these things. + + To protect your rights, we need to prevent others from denying you +these rights or asking you to surrender the rights. Therefore, you have +certain responsibilities if you distribute copies of the software, or if +you modify it: responsibilities to respect the freedom of others. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must pass on to the recipients the same +freedoms that you received. You must make sure that they, too, receive +or can get the source code. And you must show them these terms so they +know their rights. + + Developers that use the GNU GPL protect your rights with two steps: +(1) assert copyright on the software, and (2) offer you this License +giving you legal permission to copy, distribute and/or modify it. + + For the developers' and authors' protection, the GPL clearly explains +that there is no warranty for this free software. For both users' and +authors' sake, the GPL requires that modified versions be marked as +changed, so that their problems will not be attributed erroneously to +authors of previous versions. + + Some devices are designed to deny users access to install or run +modified versions of the software inside them, although the manufacturer +can do so. This is fundamentally incompatible with the aim of +protecting users' freedom to change the software. The systematic +pattern of such abuse occurs in the area of products for individuals to +use, which is precisely where it is most unacceptable. Therefore, we +have designed this version of the GPL to prohibit the practice for those +products. If such problems arise substantially in other domains, we +stand ready to extend this provision to those domains in future versions +of the GPL, as needed to protect the freedom of users. + + Finally, every program is threatened constantly by software patents. +States should not allow patents to restrict development and use of +software on general-purpose computers, but in those that do, we wish to +avoid the special danger that patents applied to a free program could +make it effectively proprietary. To prevent this, the GPL assures that +patents cannot be used to render the program non-free. + + The precise terms and conditions for copying, distribution and +modification follow. + + TERMS AND CONDITIONS + + 0. Definitions. + + "This License" refers to version 3 of the GNU General Public License. + + "Copyright" also means copyright-like laws that apply to other kinds of +works, such as semiconductor masks. + + "The Program" refers to any copyrightable work licensed under this +License. Each licensee is addressed as "you". "Licensees" and +"recipients" may be individuals or organizations. + + To "modify" a work means to copy from or adapt all or part of the work +in a fashion requiring copyright permission, other than the making of an +exact copy. The resulting work is called a "modified version" of the +earlier work or a work "based on" the earlier work. + + A "covered work" means either the unmodified Program or a work based +on the Program. + + To "propagate" a work means to do anything with it that, without +permission, would make you directly or secondarily liable for +infringement under applicable copyright law, except executing it on a +computer or modifying a private copy. Propagation includes copying, +distribution (with or without modification), making available to the +public, and in some countries other activities as well. + + To "convey" a work means any kind of propagation that enables other +parties to make or receive copies. Mere interaction with a user through +a computer network, with no transfer of a copy, is not conveying. + + An interactive user interface displays "Appropriate Legal Notices" +to the extent that it includes a convenient and prominently visible +feature that (1) displays an appropriate copyright notice, and (2) +tells the user that there is no warranty for the work (except to the +extent that warranties are provided), that licensees may convey the +work under this License, and how to view a copy of this License. If +the interface presents a list of user commands or options, such as a +menu, a prominent item in the list meets this criterion. + + 1. Source Code. + + The "source code" for a work means the preferred form of the work +for making modifications to it. "Object code" means any non-source +form of a work. + + A "Standard Interface" means an interface that either is an official +standard defined by a recognized standards body, or, in the case of +interfaces specified for a particular programming language, one that +is widely used among developers working in that language. + + The "System Libraries" of an executable work include anything, other +than the work as a whole, that (a) is included in the normal form of +packaging a Major Component, but which is not part of that Major +Component, and (b) serves only to enable use of the work with that +Major Component, or to implement a Standard Interface for which an +implementation is available to the public in source code form. A +"Major Component", in this context, means a major essential component +(kernel, window system, and so on) of the specific operating system +(if any) on which the executable work runs, or a compiler used to +produce the work, or an object code interpreter used to run it. + + The "Corresponding Source" for a work in object code form means all +the source code needed to generate, install, and (for an executable +work) run the object code and to modify the work, including scripts to +control those activities. However, it does not include the work's +System Libraries, or general-purpose tools or generally available free +programs which are used unmodified in performing those activities but +which are not part of the work. For example, Corresponding Source +includes interface definition files associated with source files for +the work, and the source code for shared libraries and dynamically +linked subprograms that the work is specifically designed to require, +such as by intimate data communication or control flow between those +subprograms and other parts of the work. + + The Corresponding Source need not include anything that users +can regenerate automatically from other parts of the Corresponding +Source. + + The Corresponding Source for a work in source code form is that +same work. + + 2. Basic Permissions. + + All rights granted under this License are granted for the term of +copyright on the Program, and are irrevocable provided the stated +conditions are met. This License explicitly affirms your unlimited +permission to run the unmodified Program. The output from running a +covered work is covered by this License only if the output, given its +content, constitutes a covered work. This License acknowledges your +rights of fair use or other equivalent, as provided by copyright law. + + You may make, run and propagate covered works that you do not +convey, without conditions so long as your license otherwise remains +in force. You may convey covered works to others for the sole purpose +of having them make modifications exclusively for you, or provide you +with facilities for running those works, provided that you comply with +the terms of this License in conveying all material for which you do +not control copyright. Those thus making or running the covered works +for you must do so exclusively on your behalf, under your direction +and control, on terms that prohibit them from making any copies of +your copyrighted material outside their relationship with you. + + Conveying under any other circumstances is permitted solely under +the conditions stated below. Sublicensing is not allowed; section 10 +makes it unnecessary. + + 3. Protecting Users' Legal Rights From Anti-Circumvention Law. + + No covered work shall be deemed part of an effective technological +measure under any applicable law fulfilling obligations under article +11 of the WIPO copyright treaty adopted on 20 December 1996, or +similar laws prohibiting or restricting circumvention of such +measures. + + When you convey a covered work, you waive any legal power to forbid +circumvention of technological measures to the extent such circumvention +is effected by exercising rights under this License with respect to +the covered work, and you disclaim any intention to limit operation or +modification of the work as a means of enforcing, against the work's +users, your or third parties' legal rights to forbid circumvention of +technological measures. + + 4. Conveying Verbatim Copies. + + You may convey verbatim copies of the Program's source code as you +receive it, in any medium, provided that you conspicuously and +appropriately publish on each copy an appropriate copyright notice; +keep intact all notices stating that this License and any +non-permissive terms added in accord with section 7 apply to the code; +keep intact all notices of the absence of any warranty; and give all +recipients a copy of this License along with the Program. + + You may charge any price or no price for each copy that you convey, +and you may offer support or warranty protection for a fee. + + 5. Conveying Modified Source Versions. + + You may convey a work based on the Program, or the modifications to +produce it from the Program, in the form of source code under the +terms of section 4, provided that you also meet all of these conditions: + + a) The work must carry prominent notices stating that you modified + it, and giving a relevant date. + + b) The work must carry prominent notices stating that it is + released under this License and any conditions added under section + 7. This requirement modifies the requirement in section 4 to + "keep intact all notices". + + c) You must license the entire work, as a whole, under this + License to anyone who comes into possession of a copy. This + License will therefore apply, along with any applicable section 7 + additional terms, to the whole of the work, and all its parts, + regardless of how they are packaged. This License gives no + permission to license the work in any other way, but it does not + invalidate such permission if you have separately received it. + + d) If the work has interactive user interfaces, each must display + Appropriate Legal Notices; however, if the Program has interactive + interfaces that do not display Appropriate Legal Notices, your + work need not make them do so. + + A compilation of a covered work with other separate and independent +works, which are not by their nature extensions of the covered work, +and which are not combined with it such as to form a larger program, +in or on a volume of a storage or distribution medium, is called an +"aggregate" if the compilation and its resulting copyright are not +used to limit the access or legal rights of the compilation's users +beyond what the individual works permit. Inclusion of a covered work +in an aggregate does not cause this License to apply to the other +parts of the aggregate. + + 6. Conveying Non-Source Forms. + + You may convey a covered work in object code form under the terms +of sections 4 and 5, provided that you also convey the +machine-readable Corresponding Source under the terms of this License, +in one of these ways: + + a) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by the + Corresponding Source fixed on a durable physical medium + customarily used for software interchange. + + b) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by a + written offer, valid for at least three years and valid for as + long as you offer spare parts or customer support for that product + model, to give anyone who possesses the object code either (1) a + copy of the Corresponding Source for all the software in the + product that is covered by this License, on a durable physical + medium customarily used for software interchange, for a price no + more than your reasonable cost of physically performing this + conveying of source, or (2) access to copy the + Corresponding Source from a network server at no charge. + + c) Convey individual copies of the object code with a copy of the + written offer to provide the Corresponding Source. This + alternative is allowed only occasionally and noncommercially, and + only if you received the object code with such an offer, in accord + with subsection 6b. + + d) Convey the object code by offering access from a designated + place (gratis or for a charge), and offer equivalent access to the + Corresponding Source in the same way through the same place at no + further charge. You need not require recipients to copy the + Corresponding Source along with the object code. If the place to + copy the object code is a network server, the Corresponding Source + may be on a different server (operated by you or a third party) + that supports equivalent copying facilities, provided you maintain + clear directions next to the object code saying where to find the + Corresponding Source. Regardless of what server hosts the + Corresponding Source, you remain obligated to ensure that it is + available for as long as needed to satisfy these requirements. + + e) Convey the object code using peer-to-peer transmission, provided + you inform other peers where the object code and Corresponding + Source of the work are being offered to the general public at no + charge under subsection 6d. + + A separable portion of the object code, whose source code is excluded +from the Corresponding Source as a System Library, need not be +included in conveying the object code work. + + A "User Product" is either (1) a "consumer product", which means any +tangible personal property which is normally used for personal, family, +or household purposes, or (2) anything designed or sold for incorporation +into a dwelling. In determining whether a product is a consumer product, +doubtful cases shall be resolved in favor of coverage. For a particular +product received by a particular user, "normally used" refers to a +typical or common use of that class of product, regardless of the status +of the particular user or of the way in which the particular user +actually uses, or expects or is expected to use, the product. A product +is a consumer product regardless of whether the product has substantial +commercial, industrial or non-consumer uses, unless such uses represent +the only significant mode of use of the product. + + "Installation Information" for a User Product means any methods, +procedures, authorization keys, or other information required to install +and execute modified versions of a covered work in that User Product from +a modified version of its Corresponding Source. The information must +suffice to ensure that the continued functioning of the modified object +code is in no case prevented or interfered with solely because +modification has been made. + + If you convey an object code work under this section in, or with, or +specifically for use in, a User Product, and the conveying occurs as +part of a transaction in which the right of possession and use of the +User Product is transferred to the recipient in perpetuity or for a +fixed term (regardless of how the transaction is characterized), the +Corresponding Source conveyed under this section must be accompanied +by the Installation Information. But this requirement does not apply +if neither you nor any third party retains the ability to install +modified object code on the User Product (for example, the work has +been installed in ROM). + + The requirement to provide Installation Information does not include a +requirement to continue to provide support service, warranty, or updates +for a work that has been modified or installed by the recipient, or for +the User Product in which it has been modified or installed. Access to a +network may be denied when the modification itself materially and +adversely affects the operation of the network or violates the rules and +protocols for communication across the network. + + Corresponding Source conveyed, and Installation Information provided, +in accord with this section must be in a format that is publicly +documented (and with an implementation available to the public in +source code form), and must require no special password or key for +unpacking, reading or copying. + + 7. Additional Terms. + + "Additional permissions" are terms that supplement the terms of this +License by making exceptions from one or more of its conditions. +Additional permissions that are applicable to the entire Program shall +be treated as though they were included in this License, to the extent +that they are valid under applicable law. If additional permissions +apply only to part of the Program, that part may be used separately +under those permissions, but the entire Program remains governed by +this License without regard to the additional permissions. + + When you convey a copy of a covered work, you may at your option +remove any additional permissions from that copy, or from any part of +it. (Additional permissions may be written to require their own +removal in certain cases when you modify the work.) You may place +additional permissions on material, added by you to a covered work, +for which you have or can give appropriate copyright permission. + + Notwithstanding any other provision of this License, for material you +add to a covered work, you may (if authorized by the copyright holders of +that material) supplement the terms of this License with terms: + + a) Disclaiming warranty or limiting liability differently from the + terms of sections 15 and 16 of this License; or + + b) Requiring preservation of specified reasonable legal notices or + author attributions in that material or in the Appropriate Legal + Notices displayed by works containing it; or + + c) Prohibiting misrepresentation of the origin of that material, or + requiring that modified versions of such material be marked in + reasonable ways as different from the original version; or + + d) Limiting the use for publicity purposes of names of licensors or + authors of the material; or + + e) Declining to grant rights under trademark law for use of some + trade names, trademarks, or service marks; or + + f) Requiring indemnification of licensors and authors of that + material by anyone who conveys the material (or modified versions of + it) with contractual assumptions of liability to the recipient, for + any liability that these contractual assumptions directly impose on + those licensors and authors. + + All other non-permissive additional terms are considered "further +restrictions" within the meaning of section 10. If the Program as you +received it, or any part of it, contains a notice stating that it is +governed by this License along with a term that is a further +restriction, you may remove that term. If a license document contains +a further restriction but permits relicensing or conveying under this +License, you may add to a covered work material governed by the terms +of that license document, provided that the further restriction does +not survive such relicensing or conveying. + + If you add terms to a covered work in accord with this section, you +must place, in the relevant source files, a statement of the +additional terms that apply to those files, or a notice indicating +where to find the applicable terms. + + Additional terms, permissive or non-permissive, may be stated in the +form of a separately written license, or stated as exceptions; +the above requirements apply either way. + + 8. Termination. + + You may not propagate or modify a covered work except as expressly +provided under this License. Any attempt otherwise to propagate or +modify it is void, and will automatically terminate your rights under +this License (including any patent licenses granted under the third +paragraph of section 11). + + However, if you cease all violation of this License, then your +license from a particular copyright holder is reinstated (a) +provisionally, unless and until the copyright holder explicitly and +finally terminates your license, and (b) permanently, if the copyright +holder fails to notify you of the violation by some reasonable means +prior to 60 days after the cessation. + + Moreover, your license from a particular copyright holder is +reinstated permanently if the copyright holder notifies you of the +violation by some reasonable means, this is the first time you have +received notice of violation of this License (for any work) from that +copyright holder, and you cure the violation prior to 30 days after +your receipt of the notice. + + Termination of your rights under this section does not terminate the +licenses of parties who have received copies or rights from you under +this License. If your rights have been terminated and not permanently +reinstated, you do not qualify to receive new licenses for the same +material under section 10. + + 9. Acceptance Not Required for Having Copies. + + You are not required to accept this License in order to receive or +run a copy of the Program. Ancillary propagation of a covered work +occurring solely as a consequence of using peer-to-peer transmission +to receive a copy likewise does not require acceptance. However, +nothing other than this License grants you permission to propagate or +modify any covered work. These actions infringe copyright if you do +not accept this License. Therefore, by modifying or propagating a +covered work, you indicate your acceptance of this License to do so. + + 10. Automatic Licensing of Downstream Recipients. + + Each time you convey a covered work, the recipient automatically +receives a license from the original licensors, to run, modify and +propagate that work, subject to this License. You are not responsible +for enforcing compliance by third parties with this License. + + An "entity transaction" is a transaction transferring control of an +organization, or substantially all assets of one, or subdividing an +organization, or merging organizations. If propagation of a covered +work results from an entity transaction, each party to that +transaction who receives a copy of the work also receives whatever +licenses to the work the party's predecessor in interest had or could +give under the previous paragraph, plus a right to possession of the +Corresponding Source of the work from the predecessor in interest, if +the predecessor has it or can get it with reasonable efforts. + + You may not impose any further restrictions on the exercise of the +rights granted or affirmed under this License. For example, you may +not impose a license fee, royalty, or other charge for exercise of +rights granted under this License, and you may not initiate litigation +(including a cross-claim or counterclaim in a lawsuit) alleging that +any patent claim is infringed by making, using, selling, offering for +sale, or importing the Program or any portion of it. + + 11. Patents. + + A "contributor" is a copyright holder who authorizes use under this +License of the Program or a work on which the Program is based. The +work thus licensed is called the contributor's "contributor version". + + A contributor's "essential patent claims" are all patent claims +owned or controlled by the contributor, whether already acquired or +hereafter acquired, that would be infringed by some manner, permitted +by this License, of making, using, or selling its contributor version, +but do not include claims that would be infringed only as a +consequence of further modification of the contributor version. For +purposes of this definition, "control" includes the right to grant +patent sublicenses in a manner consistent with the requirements of +this License. + + Each contributor grants you a non-exclusive, worldwide, royalty-free +patent license under the contributor's essential patent claims, to +make, use, sell, offer for sale, import and otherwise run, modify and +propagate the contents of its contributor version. + + In the following three paragraphs, a "patent license" is any express +agreement or commitment, however denominated, not to enforce a patent +(such as an express permission to practice a patent or covenant not to +sue for patent infringement). To "grant" such a patent license to a +party means to make such an agreement or commitment not to enforce a +patent against the party. + + If you convey a covered work, knowingly relying on a patent license, +and the Corresponding Source of the work is not available for anyone +to copy, free of charge and under the terms of this License, through a +publicly available network server or other readily accessible means, +then you must either (1) cause the Corresponding Source to be so +available, or (2) arrange to deprive yourself of the benefit of the +patent license for this particular work, or (3) arrange, in a manner +consistent with the requirements of this License, to extend the patent +license to downstream recipients. "Knowingly relying" means you have +actual knowledge that, but for the patent license, your conveying the +covered work in a country, or your recipient's use of the covered work +in a country, would infringe one or more identifiable patents in that +country that you have reason to believe are valid. + + If, pursuant to or in connection with a single transaction or +arrangement, you convey, or propagate by procuring conveyance of, a +covered work, and grant a patent license to some of the parties +receiving the covered work authorizing them to use, propagate, modify +or convey a specific copy of the covered work, then the patent license +you grant is automatically extended to all recipients of the covered +work and works based on it. + + A patent license is "discriminatory" if it does not include within +the scope of its coverage, prohibits the exercise of, or is +conditioned on the non-exercise of one or more of the rights that are +specifically granted under this License. You may not convey a covered +work if you are a party to an arrangement with a third party that is +in the business of distributing software, under which you make payment +to the third party based on the extent of your activity of conveying +the work, and under which the third party grants, to any of the +parties who would receive the covered work from you, a discriminatory +patent license (a) in connection with copies of the covered work +conveyed by you (or copies made from those copies), or (b) primarily +for and in connection with specific products or compilations that +contain the covered work, unless you entered into that arrangement, +or that patent license was granted, prior to 28 March 2007. + + Nothing in this License shall be construed as excluding or limiting +any implied license or other defenses to infringement that may +otherwise be available to you under applicable patent law. + + 12. No Surrender of Others' Freedom. + + If conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot convey a +covered work so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you may +not convey it at all. For example, if you agree to terms that obligate you +to collect a royalty for further conveying from those to whom you convey +the Program, the only way you could satisfy both those terms and this +License would be to refrain entirely from conveying the Program. + + 13. Use with the GNU Affero General Public License. + + Notwithstanding any other provision of this License, you have +permission to link or combine any covered work with a work licensed +under version 3 of the GNU Affero General Public License into a single +combined work, and to convey the resulting work. The terms of this +License will continue to apply to the part which is the covered work, +but the special requirements of the GNU Affero General Public License, +section 13, concerning interaction through a network will apply to the +combination as such. + + 14. Revised Versions of this License. + + The Free Software Foundation may publish revised and/or new versions of +the GNU General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + + Each version is given a distinguishing version number. If the +Program specifies that a certain numbered version of the GNU General +Public License "or any later version" applies to it, you have the +option of following the terms and conditions either of that numbered +version or of any later version published by the Free Software +Foundation. If the Program does not specify a version number of the +GNU General Public License, you may choose any version ever published +by the Free Software Foundation. + + If the Program specifies that a proxy can decide which future +versions of the GNU General Public License can be used, that proxy's +public statement of acceptance of a version permanently authorizes you +to choose that version for the Program. + + Later license versions may give you additional or different +permissions. However, no additional obligations are imposed on any +author or copyright holder as a result of your choosing to follow a +later version. + + 15. Disclaimer of Warranty. + + THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY +APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT +HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY +OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, +THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM +IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF +ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + + 16. Limitation of Liability. + + IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS +THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY +GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE +USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF +DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD +PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), +EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF +SUCH DAMAGES. + + 17. Interpretation of Sections 15 and 16. + + If the disclaimer of warranty and limitation of liability provided +above cannot be given local legal effect according to their terms, +reviewing courts shall apply local law that most closely approximates +an absolute waiver of all civil liability in connection with the +Program, unless a warranty or assumption of liability accompanies a +copy of the Program in return for a fee. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +state the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + + Copyright (C) + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . + +Also add information on how to contact you by electronic and paper mail. + + If the program does terminal interaction, make it output a short +notice like this when it starts in an interactive mode: + + Copyright (C) + This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, your program's commands +might be different; for a GUI interface, you would use an "about box". + + You should also get your employer (if you work as a programmer) or school, +if any, to sign a "copyright disclaimer" for the program, if necessary. +For more information on this, and how to apply and follow the GNU GPL, see +. + + The GNU General Public License does not permit incorporating your program +into proprietary programs. If your program is a subroutine library, you +may consider it more useful to permit linking proprietary applications with +the library. If this is what you want to do, use the GNU Lesser General +Public License instead of this License. But first, please read +. -- 2.43.4 From aa09d0b3348a0978b35740b9d4c1b050301249e2 Mon Sep 17 00:00:00 2001 From: TheThomaas Date: Tue, 8 Sep 2026 13:14:20 +0000 Subject: [PATCH 153/157] Actualiser cookcli/README.md --- cookcli/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cookcli/README.md b/cookcli/README.md index c7f5053..3f6e2db 100644 --- a/cookcli/README.md +++ b/cookcli/README.md @@ -1,7 +1,7 @@ # CookCLI Server Add-on ![Version](https://img.shields.io/badge/version-0.10.0-blue.svg) -[![License](https://img.shields.io/badge/license-MIT-green.svg)](LICENSE) +[![License](https://img.shields.io/badge/license-GPLv3-green.svg)](LICENSE) Serveur CookCLI avec synchronisation Git automatique -- 2.43.4 From 9c1f2152da02a9aa3b987d55d3498f994e860e91 Mon Sep 17 00:00:00 2001 From: TheThomaas Date: Tue, 8 Sep 2026 13:17:09 +0000 Subject: [PATCH 154/157] Actualiser cookcli/config.yaml --- cookcli/config.yaml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/cookcli/config.yaml b/cookcli/config.yaml index eb94dfb..18a8f00 100644 --- a/cookcli/config.yaml +++ b/cookcli/config.yaml @@ -1,8 +1,8 @@ --- name: CookCLI Server DEV slug: cookcli -version: 1.0.59 -description: "Serveur CookCLI avec synchronisation Git - Gestionnaire de recettes Cooklang" +version: 0.10.0 +description: "Serveur CookCLI avec synchronisation Git" url: "https://git.thethomaas.net/TheThomaas/home-assistant-apps" arch: - amd64 @@ -18,7 +18,6 @@ ingress_port: 9080 ingress_entry: / panel_icon: mdi:chef-hat panel_title: "CookCLI" -panel_admin: false # Mettre à true si seulement les admins doivent voir l'interface ports: 9080/tcp: null -- 2.43.4 From a90ea6b15420430b82b072b190f1680e87b2d4a0 Mon Sep 17 00:00:00 2001 From: TheThomaas Date: Tue, 8 Sep 2026 13:17:18 +0000 Subject: [PATCH 155/157] Actualiser cookcli/README.md --- cookcli/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cookcli/README.md b/cookcli/README.md index 3f6e2db..96761bb 100644 --- a/cookcli/README.md +++ b/cookcli/README.md @@ -3,7 +3,7 @@ ![Version](https://img.shields.io/badge/version-0.10.0-blue.svg) [![License](https://img.shields.io/badge/license-GPLv3-green.svg)](LICENSE) -Serveur CookCLI avec synchronisation Git automatique +Serveur CookCLI avec synchronisation Git --- -- 2.43.4 From cc4d1d0ade5052dbaa151ff286787b9e96bc11d1 Mon Sep 17 00:00:00 2001 From: TheThomaas Date: Tue, 8 Sep 2026 13:18:58 +0000 Subject: [PATCH 156/157] Actualiser cookcli/config.yaml --- cookcli/config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cookcli/config.yaml b/cookcli/config.yaml index 18a8f00..f909f1c 100644 --- a/cookcli/config.yaml +++ b/cookcli/config.yaml @@ -3,7 +3,7 @@ name: CookCLI Server DEV slug: cookcli version: 0.10.0 description: "Serveur CookCLI avec synchronisation Git" -url: "https://git.thethomaas.net/TheThomaas/home-assistant-apps" +url: "https://git.thethomaas.net/TheThomaas/home-assistant-apps/src/branch/main/cookcli" arch: - amd64 - aarch64 -- 2.43.4 From ecbefdab8fb41a39e4a41fea631a4138d6b5cfe8 Mon Sep 17 00:00:00 2001 From: TheThomaas Date: Tue, 8 Sep 2026 13:19:06 +0000 Subject: [PATCH 157/157] Actualiser cookcli/config.yaml --- cookcli/config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cookcli/config.yaml b/cookcli/config.yaml index f909f1c..c9e0023 100644 --- a/cookcli/config.yaml +++ b/cookcli/config.yaml @@ -1,5 +1,5 @@ --- -name: CookCLI Server DEV +name: CookCLI Server slug: cookcli version: 0.10.0 description: "Serveur CookCLI avec synchronisation Git" -- 2.43.4