-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy path.env.dev
More file actions
30 lines (25 loc) · 1.55 KB
/
Copy path.env.dev
File metadata and controls
30 lines (25 loc) · 1.55 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Canonical local development defaults for running opencloning-db on the host.
# Runtime config is now required from env, so load this file before local CLI/API work.
# Load with: set -a && source .env.dev && set +a
export OPENCLONING_DB_URL=postgresql+psycopg://dbuser:dbpassword@localhost:5432/opencloning_dev
export ALEMBIC_CFG=packages/opencloning-db/alembic.ini
# OIDC bearer verification (required).
# Local default accepts test tokens (no JWKS):
# Authorization: Bearer test:<subject>|<display_name>
# Authorization: Bearer test:<subject>|<email>|<display_name>
# Seeded users have no OIDC identity yet; the first matching email links that row.
# For a real IdP, set OIDC_TEST_MODE=0 and a real OIDC_ISSUER_URL (and claim names).
export OIDC_SUBJECT_CLAIM=sub
export OIDC_EMAIL_CLAIM=email_address
export OIDC_NAME_CLAIM=display_name
export OIDC_AUTHORIZED_PARTIES=http://localhost:3002,http://localhost:3000
export OIDC_ISSUER_URL=https://your-idp.accounts.dev
export OIDC_TEST_MODE=1
# Common local frontend origins.
export ALLOWED_ORIGINS=http://localhost:3000,http://localhost:5173,http://localhost:3002
# Destructive db seed, db stubs, and /__test/reset-db only. Does not enable test bearer tokens.
export OPENCLONING_TESTING=1
# Switch database (uncomment one):
# export OPENCLONING_DB_URL=postgresql+psycopg://dbuser:dbpassword@localhost:5432/opencloning_test
# export OPENCLONING_DB_URL=postgresql+psycopg://dbuser:dbpassword@localhost:5432/opencloning_e2e
# export OPENCLONING_TEST_DATABASE_URL=postgresql+psycopg://dbuser:dbpassword@localhost:5432/opencloning_test