Sign up (with export icon)

Environmental variables

These are the environment variables used to configure the application when the container is started. The list contains a full set of available environmental variables.

Detailed instructions and explanations can be found in dedicated sections for each part of the configuration. Use the menu on the left side to select the section you are interested in.

Variable Required Details
DATABASE_DRIVER optional default: “mysql”
DATABASE_HOST required
DATABASE_PORT optional default: 3306
DATABASE_USER optional default: “root”, but it is highly recommended you change it
DATABASE_PASSWORD optional default: “password”, but it is highly recommended you change it
DATABASE_DATABASE optional default: “cs-on-premises”
DATABASE_SCHEMA optional default: “cs-on-premises”, used for Postgres driver
DATABASE_SSL_ENABLE optional
DATABASE_SSL_CA optional
DATABASE_SSL_KEY optional
DATABASE_SSL_CERT optional
REDIS_HOST required
REDIS_PORT optional default: 6379
REDIS_DB optional default: 1
REDIS_PASSWORD optional
REDIS_TLS_CA optional
REDIS_TLS_KEY optional
REDIS_TLS_CERT optional
REDIS_TLS_ENABLE optional default: false
REDIS_DISABLE_DNS_LOOKUP optional default: false
REDIS_CLUSTER_NODES optional
REDIS_IP_FAMILY optional required only when using an IPv6 domain as REDIS_HOST or REDIS_CLUSTER_NODES
APPLICATION_HTTP_PORT optional default: 8000
APPLICATION_EXTERNAL_ENDPOINT optional the public URL of the server, such as “https://cs.example.com”; must start with http or https, or the server does not start; required for Coauthor when a chat app signs in with OAuth from another machine, and for the Server-side Editor API or Coauthor live documents with an external Collaboration Worker
AI_API_BASE_URL optional the address of CKEditor AI On-Premises; required when integrating with it
ENVIRONMENTS_MANAGEMENT_SECRET_KEY required
LICENSE_KEY required
COLLABORATION_STORAGE_DRIVER optional default: “database”
COLLABORATION_STORAGE_LOCATION optional default: “/var/cs/collaboration”, required for file system driver
COLLABORATION_STORAGE_ACCESS_KEY_ID optional AWS S3 driver, leave out to use the default AWS credential chain
COLLABORATION_STORAGE_SECRET_ACCESS_KEY optional AWS S3 driver, leave out to use the default AWS credential chain
COLLABORATION_STORAGE_REGION optional required for AWS S3 driver
COLLABORATION_STORAGE_ENDPOINT optional required for AWS S3 driver
COLLABORATION_STORAGE_BUCKET optional required for AWS S3 driver
COLLABORATION_STORAGE_ACCOUNT_NAME optional required for Azure Blob Storage driver
COLLABORATION_STORAGE_ACCOUNT_KEY optional required for Azure Blob Storage driver
COLLABORATION_STORAGE_CONTAINER optional required for Azure Blob Storage driver
USE_BUILT_IN_COLLABORATION_WORKER optional default: true
ENABLE_METRIC_LOGS optional default: false
ENABLE_METRICS_ENDPOINT optional default: false, turns on the Coauthor metrics endpoint
METRICS_HTTP_PORT optional default: 8099
ENABLE_SNAPSHOTS optional default: true
ENABLE_OBSERVABILITY_HUB optional default: true
OBSERVABILITY_HUB_RETENTION_IN_DAYS optional default: 14
EDITOR_API_ACCESS_KEY optional recommended when using the Server-side Editor API
KEEP_ALIVE_EDITORS_MAX_OPEN_PAGES optional default: 15 in the server image, 20 in the cs-worker image
MIGRATE_ONLY optional default: false