Skip to main content

Configuration

You can configure the application through the environment variables outlined below:

Variable NameTypeDescriptionRequired
LICENSE_KEYstringApplication license keyYes
DOCKER_REGISTRY_USERNAMEstringUsername to access the docker registryYes
DOCKER_REGISTRY_SECRETstringSecret to access docker registryYes
LOG_DIRstringDirectory to store logsYes
SESSION_SECRETstringSecret for session/cookie creation. You can use openssl rand -hex 32 to generate a random secretYes
DOMAIN_NAMEstringThe domain name the site is hosted on. This ensures nginx and URLs in the application point to the correct placeYes
SERVER_HOSTNAMEstringUsed for internal communication within the application. Best to leave to the default value.Yes
API_HOSTNAMEstringUsed for internal communication within the application. Best to leave to the default value.Yes
PREVIEW_SERVER_HOSTNAMEstringUsed for internal communication within the application. Best to leave to the default value.Yes
REDIS_SESSIONS_HOSTNAMEstringRedis instance for storing user sessions. Leave default if using the bundled redis application.Yes
REDIS_SESSIONS_PORTnumberThe port session redis instance is running onYes
REDIS_CACHE_HOSTNAMEstringRedis instance for cache purposes. Leave default if using the bundled redis application.Yes
REDIS_CACHE_PORTnumberThe port cache redis instance is running onYes
MYSQL_HOSTNAMEstringMysql instance. Leave default is using bundled mysql instance.Yes
MYSQL_PORTnumberPort for the mysql instance. Leave default is using bundled mysql instance.Yes
MYSQL_DATABASEstringWhich database name to use for the application within the mysql instanceYes
MYSQL_USERstringWhich mysql user to useYes
MYSQL_PASSWORDstringPassword for the mysql userYes
MYSQL_ROOT_PASSWORDstringPassword for the root user, only needed if you are setting up the bundled instance and want to set the root passwordNo
MYSQL_DATA_DIRstringThe directory where the mysql data will be storedYes
MYSQL_CONF_FILEstringPath pointing to an appropriate mysql.cnf fileYes
GRANT_ORIGINstringThe origin you want to use for Grant to authenticate users and let them sign inNo
GRANT_GITHUB_KEYstringThe key to setup Github-based OAuth. Read more hereNo
GRANT_GITHUB_SECRETstringGithub OAuth SecretNo
GRANT_GOOGLE_KEYstringThe key to setup Github-based OAuth. Read more hereNo
GRANT_GOOGLE_SECRETstringGoogle OAuth SecretNo
NGINX_WORKER_PROCESSESstring / numberHow many worker processes to use for nginx, default auto. Read more hereYes
NGINX_WORKER_CONNECTIONSnumberSet max connections per nginx worker. Read more hereYes
DISABLE_ACCOUNTSbooleanDisable the account feature entirely.No
MINIMAL_INTERFACEbooleanRemove superfluous links and buttons from the UI. Notably removes all links and buttons from the header.No
DISABLE_SAVE_AND_SHAREbooleanDisable the Save and Share feature in the application.No