Tagging v* builds both images on Gitea Actions and pushes them to the instance registry, then smoke-tests the published stack. The frontend read its backend URL through import.meta.env, which Vite resolves at build time, so an image could only point at whatever the build host had; it now reads it at runtime.
35 lines
1.3 KiB
Bash
35 lines
1.3 KiB
Bash
# Change this secret to something random
|
|
CHITAI_TOKEN_SECRET=secret
|
|
|
|
# Which release to run. Pin this to a tag (e.g. 0.1.0) for a real deployment so a
|
|
# restart cannot silently move you to a newer image.
|
|
CHITAI_VERSION=latest
|
|
|
|
# The URL you reach the app on, exactly as it appears in the browser. Logging in fails
|
|
# with a 403 if this does not match, because SvelteKit rejects the form POST as
|
|
# cross-origin. Include the port unless it is the scheme default.
|
|
CHITAI_ORIGIN=http://localhost:3000
|
|
|
|
# Setup the path to your initial library (optional)
|
|
CHITAI_DEFAULT_LIBRARY_NAME=Books
|
|
CHITAI_DEFAULT_LIBRARY_PATH="libraries/books"
|
|
|
|
# Duplicate detection when importing files (optional).
|
|
# Scope: "library" compares against the library being uploaded to, "global" against
|
|
# every library, "off" disables the check.
|
|
CHITAI_DUPLICATE_SCOPE=library
|
|
|
|
# Where the consume watcher parks files it refused as duplicates. Keep it outside
|
|
# CHITAI_CONSUME_PATH, or the watcher picks them straight back up.
|
|
CHITAI_DUPLICATE_PATH="duplicates"
|
|
|
|
# You probably should not change these
|
|
CHITAI_API_URL="http://backend:8000"
|
|
CHITAI_API_DEBUG=false
|
|
CHITAI_POSTGRES_HOST=db
|
|
CHITAI_POSTGRES_DB=chitai
|
|
CHITAI_POSTGRES_USER=chitai_user
|
|
CHITAI_POSTGRES_PASSWORD=chitai_password
|
|
CHITAI_POSTGRES_PORT=5432
|
|
CHITAI_POSTGRES_ECHO=false
|