Authority
  • Introduction
  • In Action
  • Performance at Scale
  • Roadmap / Features
  • Getting Started
    • Introduction
    • Installation
    • Configuration Overview
  • Authentication
    • Authentication Guide
    • API Documentation
    • Customizing Authentication
  • Security & Error Handling
    • Security Considerations
    • Error Handling & Troubleshooting
  • Providers
    • Client Providers
    • Owner Providers
  • API Endpoints
    • API Endpoints
  • DEVELOPMENT
    • Requirements
    • Database
    • User Interface
    • Specs
    • Deployment
      • Environment Variables
  • Reference
    • OAuth Terms
    • OAuth 2 Grant Flows
      • Device Flow
      • Authorization Flow
      • Client Credentials Flow
      • Refreshing Access Tokens
      • Access Token Response
      • Json Web Tokens
      • Legacy: Implicit grant
      • Legacy: Password
    • Open ID Connect
      • Configuration
      • Registering Clients
      • User Info
Powered by GitBook
On this page

Was this helpful?

Export as PDF
  1. DEVELOPMENT
  2. Deployment

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

BASE_URL

DEVICE_CODE_TTL

300

Duration in seconds

SSL_CERT

""

SSL_KEY

""

SSL_CA

""

SSL_MODE

""

PreviousDeploymentNextOAuth Terms

Last updated 7 months ago

Was this helpful?

http://localhost:4000