Configuration reference
OLDP is configured through django-configurations.
Settings live in src/oldp/settings.py and are grouped into predefined
configuration classes selected with the DJANGO_CONFIGURATION environment
variable. Most individual settings can additionally be overridden through
environment variables (all prefixed with DJANGO_).
This page is the single source of truth for OLDP’s environment variables. Other pages (the README, Getting Started, Deployment) link here rather than restating the table.
Configuration classes
Set DJANGO_CONFIGURATION to one of:
Class |
Use case |
|---|---|
|
Local development (default). |
|
Production. Requires |
|
Automated tests. Uses SQLite and a mock Elasticsearch backend by default. |
export DJANGO_SETTINGS_MODULE=oldp.settings
export DJANGO_CONFIGURATION=DevConfiguration
When running with the German theme, point DJANGO_SETTINGS_MODULE at the theme
package instead — see The OLDP ecosystem and the
oldp-de project.
Core / Django
Variable name |
Default value |
Comment |
|---|---|---|
|
|
Tells Django which settings file to use (Python path syntax). |
|
|
Predefined settings class: |
|
|
Set this to a secret value in production mode. |
|
|
Enable to show debugging messages and errors. |
|
|
Format: |
|
|
Canonical public base URL, used for absolute URLs and MCP OAuth discovery. Set to the HTTPS production origin, e.g. |
|
|
Format: |
|
(empty) |
Trusted browser origins for CSRF and MCP Origin validation. Format: |
|
Format: |
|
|
|
Time zone. |
|
(empty) |
Comma-separated |
Database
Variable name |
Default value |
Comment |
|---|---|---|
|
|
Database connection (usually MySQL or SQLite). |
Elasticsearch
Variable name |
Default value |
Comment |
|---|---|---|
|
|
Elasticsearch connection (scheme, host, port). |
|
|
Elasticsearch index name. |
See Elasticsearch for index management and reindexing.
Caching (Redis / file cache)
Variable name |
Default value |
Comment |
|---|---|---|
|
|
Set to |
|
|
Cache backend selector. Set to |
|
|
Default TTL in seconds for cached API and HTML views ( |
|
|
TTL in seconds for stats endpoints, which aggregate over the full corpus. |
|
|
Redis cache URL when |
|
|
File cache directory when |
Anonymous CDN cache
These tune AnonymousPublicCacheMiddleware, which makes anonymous public pages
CDN-cacheable.
Variable name |
Default value |
Comment |
|---|---|---|
|
|
Master switch for |
|
|
Comma-separated URL prefixes treated as anonymous-cacheable. |
|
|
Comma-separated exact paths treated as anonymous-cacheable (e.g. the homepage). |
|
|
CDN edge TTL in seconds for anonymous public-cacheable responses. |
|
|
Browser TTL in seconds for anonymous public-cacheable responses. |
MCP server
See MCP Server for the full tool catalogue.
Variable name |
Default value |
Comment |
|---|---|---|
|
|
Anonymous MCP request rate limit. Anthropic MCP IPs share a single anonymous bucket. |
|
|
Authenticated MCP request rate limit per user. |
Email
Variable name |
Default value |
Comment |
|---|---|---|
|
|
Emails are sent from this address. |
|
|
SMTP server. |
|
SMTP user. |
|
|
SMTP password. |
|
|
|
Enable TLS. |
|
|
SMTP port. |
|
|
Messages from the feedback widget are sent to this address. |
Logging
Variable name |
Default value |
Comment |
|---|---|---|
|
|
Name of log file (in the logs directory). |
|
|
Max size of |
|
|
Number of rotated backups ( |
Testing
Variable name |
Default value |
Comment |
|---|---|---|
|
|
Run tests that require Elasticsearch. |
|
|
Run tests that require web access. |
See Testing for how these interact with the test configuration.