From 9348336709b49d9fdca53dc5cb42fac20b0e89fc Mon Sep 17 00:00:00 2001 From: Daniel Bedeleanu Date: Mon, 13 Apr 2026 21:42:58 +0300 Subject: [PATCH] Build [v1.9.7] (Fix ERR_SSL_PROTOCOL_ERROR: Explicit HTTPS in Caddyfile) --- config/Caddyfile | 7 ++----- deploy.sh | 9 ++++++++- frontend/VERSION.json | 2 +- 3 files changed, 11 insertions(+), 7 deletions(-) diff --git a/config/Caddyfile b/config/Caddyfile index 6f4c1b5b..5278fbe5 100644 --- a/config/Caddyfile +++ b/config/Caddyfile @@ -1,12 +1,9 @@ -# TFM aInventory - Caddy Self-Signed Internal Proxy -# This replaces the need for `local-ssl-proxy` in Node. - -:{$FRONTEND_SSL_PORT} { +https://:{$FRONTEND_SSL_PORT} { tls internal reverse_proxy frontend:3000 } -:{$BACKEND_SSL_PORT} { +https://:{$BACKEND_SSL_PORT} { tls internal reverse_proxy backend:8000 } diff --git a/deploy.sh b/deploy.sh index 6e60e022..2233fae9 100755 --- a/deploy.sh +++ b/deploy.sh @@ -14,7 +14,14 @@ fi # 2. Source the env file for the current shell (helps some docker versions) export $(grep -v '^#' inventory.env | xargs) -# 3. Run Docker Compose with explicit env-file flag +# 3. Optional: Reset Caddy certificates if needed +if [[ "$*" == *"--reset-ssl"* ]]; then + echo "๐Ÿงน Resetting Caddy certificates..." + docker compose down + docker volume rm ainventory_caddy_data ainventory_caddy_config 2>/dev/null || true +fi + +# 4. Run Docker Compose with explicit env-file flag echo "๐Ÿš€ Building and starting containers..." docker compose --env-file inventory.env up -d --build --remove-orphans diff --git a/frontend/VERSION.json b/frontend/VERSION.json index 4db22074..97fcfb0c 100644 --- a/frontend/VERSION.json +++ b/frontend/VERSION.json @@ -1 +1 @@ -{"version": "1.9.6", "last_build": "2026-04-13-2136", "codename": "BundleFix", "commit": "7c3d0e10"} +{"version": "1.9.7", "last_build": "2026-04-13-2142", "codename": "SSLFix", "commit": "e5194a1d"}