Files

72 lines
1.9 KiB
Bash

# app
ENV_MODE=development
SHOW_DB_INSTALLATION_VERIFICATION_LOGS=true
# dev DB (used by docker-compose.yml and backend)
DEV_DB_NAME=databasus
DEV_DB_USERNAME=postgres
DEV_DB_PASSWORD=Q1234567
DATABASE_DSN="host=localhost user=postgres password=Q1234567 dbname=databasus port=5437 sslmode=disable"
DATABASE_URL=postgres://postgres:Q1234567@localhost:5437/databasus?sslmode=disable
# test DB (used by backend when IsTesting=true so tests don't pollute the dev DB)
TEST_DATABASE_DSN="host=localhost user=postgres password=Q1234567 dbname=databasus port=5438 sslmode=disable"
# migrations
GOOSE_DRIVER=postgres
GOOSE_DBSTRING=postgres://postgres:Q1234567@localhost:5437/databasus?sslmode=disable
GOOSE_TEST_DBSTRING=postgres://postgres:Q1234567@localhost:5438/databasus?sslmode=disable
# valkey
VALKEY_HOST=127.0.0.1
VALKEY_PORT=6379
VALKEY_USERNAME=
VALKEY_PASSWORD=
VALKEY_IS_SSL=false
# logging (see example values at https://databasus.com/advanced-config/#log-shipping)
LOG_LEVEL=info
LOG_FILE_IS_ENABLED=true
OPEN_TELEMETRY_URL=
OPEN_TELEMETRY_HEADERS=
# tests
TEST_PARALLEL_WORKERS=8
TEST_LOCALHOST=localhost
TEST_LOGICAL_POSTGRES_16_PORT=5004
TEST_PHYSICAL_POSTGRES_17_PORT=5007
TEST_PHYSICAL_POSTGRES_18_PORT=5008
# wal-backup (live remote-WAL test rig)
WAL_BACKUP_POSTGRES_18_PORT=5018
WAL_BACKUP_DB_NAME=testdb
WAL_BACKUP_DB_USER=testuser
WAL_BACKUP_DB_PASSWORD=testpassword
# oauth
GITHUB_CLIENT_ID=
GITHUB_CLIENT_SECRET=
GOOGLE_CLIENT_ID=
GOOGLE_CLIENT_SECRET=
# cloudflare turnstile
CLOUDFLARE_TURNSTILE_SITE_KEY=
CLOUDFLARE_TURNSTILE_SECRET_KEY=
# smtp
SMTP_HOST=test-mailpit
SMTP_PORT=1025
SMTP_USER=info@databasus.com
SMTP_PASSWORD=password
SMTP_FROM=info@databasus.com
SMTP_INSECURE_SKIP_VERIFY=false
# domain (used in email links)
DATABASUS_URL=
# frontend (vite)
VITE_GITHUB_CLIENT_ID=
VITE_GOOGLE_CLIENT_ID=
VITE_IS_EMAIL_CONFIGURED=false
VITE_CLOUDFLARE_TURNSTILE_SITE_KEY=