Environment Variables

All server settings are defined using environment variables

Environment Variable

Default Value

Description

CRYSTAL_ENV

Development

CRYSTAL_LOG_SOURCES

"*"

CRYSTAL_LOG_LEVEL

debug

CRYSTAL_WORKERS

4

the number of CPU cores to use

PORT

4000

PORT_REUSE

true

HOST

0.0;0.0

Binds the server to a particular ip address on the host machine

DATABASE_URL

postgres://auth_user:auth_pass@db:5432/authority_db?initial_pool_size=10&checkout_timeout=3P

PostgreSQL database connection URL

SECRET_KEY

secret_key

The encryption key to use signed JWTs

CODE_TTL

5

Duration in seconds

ACCESS_TOKEN_TTL

60

Duration in seconds

TEMPLATES_PATH

./public/templates

SESSION_KEY

session_id

DEVICE_CODE_TTL

300

Duration in seconds

SSL_CERT

""

SSL_KEY

""

SSL_CA

""

SSL_MODE

""

Last updated