From 13b79d60e0535b79bac004eaa2e49c7840e1f630 Mon Sep 17 00:00:00 2001 From: Denis Andreyev Date: Sun, 15 Nov 2026 18:25:32 +0500 Subject: [PATCH] deploy: public demo without basic auth and without an API key --- deploy/Caddyfile.snippet | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/deploy/Caddyfile.snippet b/deploy/Caddyfile.snippet index 4e1e17c..d277eef 100644 --- a/deploy/Caddyfile.snippet +++ b/deploy/Caddyfile.snippet @@ -1,9 +1,8 @@ -# Append to the host Caddyfile. Generate the hash with: caddy hash-password -# The host runs Caddy 2.6, which only knows "basicauth"; newer versions accept it as an alias of basic_auth. +# Append to the host Caddyfile, then: sudo caddy validate --config /etc/caddy/Caddyfile && sudo systemctl reload caddy +# The public demo has no login, so deploy/.env must not hold ANTHROPIC_API_KEY: without it nobody can spend +# credits, and stored evaluations, rules and reused results still work. To put a password back in front of +# it, add a basicauth block (Caddy 2.6 on the host only knows "basicauth"; generate the hash with caddy hash-password). cqa.unsoundmint.com { encode zstd gzip - basicauth { - cqa - } reverse_proxy 127.0.0.1:8787 }