Config
Zipline is primarily configured through environment variables. These can be set in a .env
file in the root of the project, or through docker-compose.yml
if using Docker.
Most of Zipline's settings are also configurable through the settings dashboard.
By default, only the DATABASE_URL
and CORE_SECRET
environment variables are required. The rest are optional and have default values.
It is important that the CORE_SECRET
is not easily guessable. This secret is
used to sign website cookies, and should be kept private. If the secret is
comprimised, it is recommended to change it immediately, as it can be used to
gain unauthorized access to the website.
Example
DATABASE_URL=postgresql://user:password@localhost:5432/ziplineCORE_SECRET="secret"CORE_PORT=3000CORE_HOSTNAME=0.0.0.0DATASOURCE_TYPE=localDATASOURCE_LOCAL_DIRECTORY=./uploads
Links
Variables that are in the core
, datasource
, and ssl
categories can ONLY be set through environment variables. The rest can be configured through the settings dashboard, or through environment variables that are documented in the settings page.