This document describes all environment variables for revisium (self-hosted deployment).
cp .env.example .env
# Edit .env with your configuration
docker-compose up -d
Variable
Description
DATABASE_URL
PostgreSQL connection string
Variable
Default
Description
PORT
8080
HTTP server port
Variable
Default
Description
JWT_SECRET
(auto-generated)
JWT signing key. Must be explicitly set for multi-replica deployments (required for JWT sessions and deterministic internal API key derivation)
ADMIN_PASSWORD
admin
Default admin user password
ENDPOINT_PASSWORD
endpoint
Default endpoint user password
Note: Internal API keys for endpoint↔core authentication are derived automatically from JWT_SECRET. No additional env vars are needed.
Variable
Description
OAUTH_GOOGLE_CLIENT_ID
Google OAuth client ID
OAUTH_GOOGLE_CLIENT_SECRET
Google OAuth client secret
OAUTH_GITHUB_CLIENT_ID
GitHub OAuth client ID
OAUTH_GITHUB_CLIENT_SECRET
GitHub OAuth client secret
Variable
Description
FILE_PLUGIN_PUBLIC_ENDPOINT
Public URL for file access
S3_ENDPOINT
S3-compatible storage endpoint
S3_REGION
S3 region
S3_BUCKET
S3 bucket name
S3_ACCESS_KEY_ID
S3 access key
S3_SECRET_ACCESS_KEY
S3 secret key
Variable
Description
EMAIL_TRANSPORT
SMTP transport string
EMAIL_PUBLIC_URL
Public URL for email links
EMAIL_FROM
Sender email address
Variable
Default
Description
CACHE_ENABLED
false
Enable caching
CACHE_L1_MAX_SIZE
-
L1 memory cache max size
CACHE_L2_REDIS_URL
-
Redis URL for L2 cache
CACHE_BUS_HOST
-
Redis bus host
CACHE_BUS_PORT
-
Redis bus port
CACHE_DEBUG
false
Enable cache debug logs
GraphQL Customization (Optional)
Variable
Default
Description
GRAPHQL_HIDE_NODE_TYPES
false
Hide node types
GRAPHQL_HIDE_FLAT_TYPES
false
Hide flat types
GRAPHQL_FLAT_POSTFIX
Flat
Flat type postfix
GRAPHQL_NODE_POSTFIX
``
Node type postfix
GRAPHQL_PREFIX_FOR_TABLES
``
Table prefix
GRAPHQL_PREFIX_FOR_COMMON
``
Common prefix
Variable
Default
Description
METRICS_ENABLED
false
Enable Prometheus metrics
GRACEFUL_SHUTDOWN_TIMEOUT
10000
Shutdown delay (ms)
API Key Limits (Optional)
Variable
Default
Description
API_KEY_MAX_PER_USER
10
Maximum number of personal API keys per user
API_KEY_MAX_SERVICE_PER_ORG
100
Maximum number of service API keys per organization
Enterprise / Licensing (Optional)
Variable
Default
Description
REVISIUM_LICENSE_KEY
-
License key for enterprise features. If not set, all limits are disabled (unlimited). Validated against https://licensing.revisium.io
REVISIUM_BILLING_ENABLED
false
Enable billing/tariffs module
REVISIUM_SSO_ENABLED
false
Enable SSO module
REVISIUM_AUDIT_ENABLED
false
Enable audit log module
The following variables are deprecated and will be removed in v3.0.0 :
Deprecated
Replacement
EXPERIMENTAL_CACHE
CACHE_ENABLED
EXPERIMENTAL_CACHE_L1_MAX_SIZE
CACHE_L1_MAX_SIZE
EXPERIMENTAL_CACHE_L2_REDIS_URL
CACHE_L2_REDIS_URL
EXPERIMENTAL_CACHE_REDIS_BUS_HOST
CACHE_BUS_HOST
EXPERIMENTAL_CACHE_REDIS_BUS_PORT
CACHE_BUS_PORT
EXPERIMENTAL_CACHE_DEBUG
CACHE_DEBUG
OAUTH_GOOGLE_SECRET_ID
OAUTH_GOOGLE_CLIENT_SECRET
OAUTH_GITHUB_SECRET_ID
OAUTH_GITHUB_CLIENT_SECRET
Using deprecated variables will log a warning but continue to work.
services :
revisium :
image : revisium/revisium:latest
ports :
- 8080:8080
environment :
DATABASE_URL : postgresql://user:pass@db:5432/revisium
# Add optional variables as needed