Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion environment/Caddyfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,10 @@ localhost {
respond 204
}

@authorized header X-Api-Key "supersecret123"
# Read from IGNIS_API_KEY at container start (see docker.env) rather than
# hardcoded here — a real key belongs in an untracked env file, not
# committed source.
@authorized header X-Api-Key {$IGNIS_API_KEY}
handle @authorized {
reverse_proxy ignis-app:{$APP_PORT:8080}
}
Expand Down
5 changes: 5 additions & 0 deletions environment/docker.env
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,8 @@ POSTGRES_DB=ignis
# matcher (see docker-compose.yml + Caddyfile). Add an origin here once —
# nothing to update in the Caddyfile itself.
ALLOWED_ORIGINS=http://localhost:5173,http://localhost:3000,http://localhost:8000,http://127.0.0.1:8000,https://thd-spatial-ai.github.io

# Read by ignis-reverse-proxy's Caddyfile to gate the app behind the
# X-Api-Key header. Callers must send this same value. Rotate before any
# real deployment — this is a local-dev placeholder, not a secret.
IGNIS_API_KEY=supersecret123
Loading