31 lines
1.7 KiB
YAML
31 lines
1.7 KiB
YAML
# The server's config.yaml. Copy it to $APP_DATA/config.yaml, which the
|
|
# container reads as /data/config.yaml (APP_CONFIG in the Dockerfile), and set
|
|
# the hostname. deploy.sh refuses a config without `database` or `auth.enabled`.
|
|
# Every key left out keeps its default; ../../config.example.yaml lists them all.
|
|
# Ours: the keys are roledesk's (app/config.py); an unknown one is an error.
|
|
|
|
server:
|
|
host: 0.0.0.0 # the container's interface; SWAG is in front of it
|
|
port: 8787 # the port the proxy conf and the HEALTHCHECK use
|
|
|
|
database: /data/roledesk.db # in the volume; /app, the working directory, is not writable
|
|
|
|
auth:
|
|
enabled: always # the lock must not depend on how the process was started
|
|
secure_cookie: always # auto needs uvicorn to trust X-Forwarded-Proto, which only `app serve` off loopback sets
|
|
rp_id: app.example.com # the hostname passkeys are bound to; changing it voids every passkey
|
|
origin: https://app.example.com # what the browser's address bar shows, scheme included
|
|
|
|
# Who answers when a stage needs a model (extract, summarise, judge). `auto`
|
|
# takes ANTHROPIC_API_KEY when the compose file passes one and otherwise the
|
|
# subscription CLI with CLAUDE_CODE_OAUTH_TOKEN, so switching is an .env edit.
|
|
# The stages themselves are switched under Settings, Sources, Runs.
|
|
agent:
|
|
backend: auto
|
|
|
|
# The vectors behind prompt and CV closeness. The model is not in the image:
|
|
# the first `embed` job downloads it (~460 MB) into HOME, the /data volume, so
|
|
# it happens once per server and not once per release. Changing it re-embeds.
|
|
embed:
|
|
model: intfloat/multilingual-e5-small
|