Configuration
Grappa is configured exclusively through environment variables.
| Setting name | Description | Required | Values |
|---|---|---|---|
DEBUG |
Set the platform in production or development mode. It is insecure to run a public instance in development mode. |
✅ |
|
DATABASE_URL |
Credentials to connect to the PostgreSQL database. |
✅ |
|
SECRET_KEY |
Random string used to build securely authentication cookies. Must be unique per instance. |
✅ |
|
ALLOWED_HOSTS |
List of public hostnames where HTTP requests come from. Any request received from an hostname not listed here will be rejected. When using multiple values, use a comma to separate them. |
✅ |
|
CORS_ALLOWED_ORIGINS |
List of public hostnames where Javascript requests come from. Beware this list must have http(s) scheme before the hostname. When using multiple values, use a comma to separate them. |
✅ |
|
CSRF_TRUSTED_ORIGINS |
List of public hostnames where form publication requests come from. Beware this list must have http(s) scheme before the hostname. When using multiple values, use a comma to separate them. |
✅ |
|
REDIS_URL |
URL used to reach the Redis server for asynchronous tasks. |
✅ |
|
INSTANCE_URL |
Public hostname used to host the instance. It is mainly used to build urls in emails. |
✅ |
|
EMAIL_URL |
Credentials to send emails with the application. An SMTP email account is required to send grappa emails such as "Forget password", etc. |
|
|
DEFAULT_FROM_EMAIL |
The email address which will be used to send the emails. |
|
|
SENTRY_DSN |
Sentry private DSN used to publish Python exceptions. |
|
|
CACHE_URL |
Cache to be used by grappa. We recommend to use Redis cache for production as in-memory cache will not work with docker. Dummy cache is not supported with OIDC. |
|
|
OIDC_ENABLED |
Allow using an external OpenID Connect supplier for authentication, disabled by default. If enabled, the below settings are required to be set:
This is set to |
|
|
OIDC_PROVIDER |
Provider used for OpenID Connect protocol authentication. |
One of:
|
|
OIDC_PROVIDER_DISCOVERY_URI |
Root URI of the provider, or URI of the OpenID Provider Configuration request. This will be used to discover the URLs of all endpoints and the rest of the configuration to use for this provider. If the URI does not end with Required when OIDC is enabled. |
||
OIDC_CLIENT_ID |
Client ID used to authenticate against the OpenID server. Required when OIDC is enabled. |
|
|
OIDC_CLIENT_SECRET |
Client secret used to authenticate against the OpenID server. Required when OIDC is enabled. |
|
|
PROMETHEUS_METRICS_PORT |
Network port used to expose internal monitoring metrics. That port should not be exposed publicly. Defaults to |
|
|
DJANGO_LOG_LEVEL |
Minimum log level for logs displayed on |
|
|
STORAGE_DIR |
Directory used to store generated files (cluster thumbnails and CSV exports). Should be set as a docker volume mounted on the container for persistence. |
|
|
ELEMENTS_IMPORT_CHUNKS |
Number of elements iterated over by batch during Arkindex import, while reading the API (defaults to 100) |
|
|
ELEMENTS_UPDATE_CHUNKS |
Number of elements updated at once in the local database at the end of import (defaults to 100) |
|