Skip to content
Open
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
10 changes: 10 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Secrets are injected at runtime via compose env_file, never baked into the image.
.env

# Build output and local tooling — keep the build context small.
target
.git
.direnv
.jj
**/*.log
result
44 changes: 44 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# Copy to .env and fill in. Compose reads this file for every service.

# --- Postgres (db service + backend) ---
POSTGRES_USER=zako
POSTGRES_PASSWORD=zako
POSTGRES_DB=zako
# Host is the compose service name `db`. Use localhost:5432 when running outside compose.
DATABASE_URL=postgres://zako:zako@db:5432/zako

# --- Backend ---
# BIND_ADDR is set to 0.0.0.0:80 by compose; override only when running standalone.

# --- LLM provider (AI summary flow) ---
# Selects the backend: `anthropic` (default) or `openai` (any OpenAI-compatible API).
# Leave the active provider's API key empty to disable the summary flow (drafts return 502).
LLM_PROVIDER=anthropic

# Anthropic provider:
ANTHROPIC_API_KEY=
# Optional; defaults to claude-opus-4-8.
ANTHROPIC_MODEL=

# OpenAI-compatible provider (OpenAI, Ollama, OpenRouter, vLLM, ...):
OPENAI_API_KEY=
# Optional; defaults to https://api.openai.com/v1. For local Ollama use http://localhost:11434/v1.
OPENAI_BASE_URL=
# Optional; defaults to gpt-4o.
OPENAI_MODEL=

# --- Bot ---
DISCORD_TOKEN=
# BACKEND_URL is set to http://backend:80 by compose; override only when running standalone.
# Optional: register slash commands instantly in one guild (otherwise global, ~1h propagation).
GUILD_ID=
# Channel where confirmed issues are posted.
ISSUE_CHANNEL_ID=
# Forum channel; /issue new inside one of its threads copies the thread to the issue channel.
FORUM_ISSUE_CHANNEL_ID=
# Comma-separated Discord user IDs allowed to close/edit issues.
DEV_USER_IDS=

# --- Optional Redis author cache ---
# Start Redis with: podman compose --profile cache up
# REDIS_URL=redis://redis:6379
Loading