From 03dd6c17df66fed94c85b21eb186c0b027409851 Mon Sep 17 00:00:00 2001 From: openclawd Date: Mon, 16 Feb 2026 13:04:47 +0000 Subject: [PATCH] Fix three critical issues: Docker healthcheck, USD->EUR pricing, static asset caching MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Docker healthcheck: Use Node.js instead of curl (not installed in slim image) - Pricing: Change from USD ($) to EUR (€) in frontend and backend Stripe integration - Static assets: Add Cache-Control headers (1 day) for /public and /docs files --- docker-compose.yml | 6 ++++++ public/index.html | 35 +++++++++++++++++++++++++++++++---- src/index.ts | 9 ++++++++- src/routes/billing.ts | 2 +- 4 files changed, 46 insertions(+), 6 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 1f63b04..41aa374 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -31,6 +31,12 @@ services: options: max-size: "10m" max-file: "3" + healthcheck: + test: ["CMD", "node", "-e", "fetch('http://localhost:3100/health').then(r=>{if(!r.ok)process.exit(1)}).catch(()=>process.exit(1))"] + interval: 30s + timeout: 5s + retries: 3 + start_period: 30s mem_limit: 2560m cpus: 1.5 diff --git a/public/index.html b/public/index.html index ed65055..c2c94c7 100644 --- a/public/index.html +++ b/public/index.html @@ -17,7 +17,7 @@