> For the complete documentation index, see [llms.txt](https://icij.gitbook.io/prophecies/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://icij.gitbook.io/prophecies/getting-started/configure-prophecies.md).

# Configure Prophecies

The application can be configured using the following environment variables:

<table data-full-width="true"><thead><tr><th>Environment Variable</th><th>Description</th><th>Default Value</th></tr></thead><tbody><tr><td><code>SECRET_KEY</code></td><td>Secret key for Django security</td><td>'django-insecure-...'</td></tr><tr><td><code>DEBUG</code></td><td>Debug mode toggle</td><td><code>False</code></td></tr><tr><td><code>TEMPLATE_DEBUG</code></td><td>Debug mode for templates</td><td>Value of <code>DEBUG</code></td></tr><tr><td><code>ALLOWED_HOSTS</code></td><td>Host/domain names that Django can serve</td><td>'localhost,127.0.0.1'</td></tr><tr><td><code>CSRF_TRUSTED_ORIGINS</code></td><td>Trusted origins for CSRF protection</td><td>'http://localhost:8080'</td></tr><tr><td><code>STATIC_URL</code></td><td>URL for static files</td><td>'/static/'</td></tr><tr><td><code>STATIC_ROOT</code></td><td>Directory for <code>collectstatic</code></td><td>Project root + 'run/static'</td></tr><tr><td><code>MEDIA_STORAGE</code></td><td>Type of media storage</td><td>'FS'</td></tr><tr><td><code>MEDIA_ROOT</code></td><td>Directory for user-uploaded files</td><td>'/media/' for S3, Project root + 'run/media' for FS</td></tr><tr><td><code>MEDIA_URL</code></td><td>URL for media files</td><td>'https://{AWS_S3_CUSTOM_DOMAIN}/' for S3, '/media/' for FS</td></tr><tr><td><code>AWS_ACCESS_KEY_ID</code></td><td>AWS access key ID for S3</td><td>None</td></tr><tr><td><code>AWS_SECRET_ACCESS_KEY</code></td><td>AWS secret access key for S3</td><td>None</td></tr><tr><td><code>AWS_STORAGE_BUCKET_NAME</code></td><td>AWS storage bucket name for S3</td><td>None</td></tr><tr><td><code>AWS_S3_REGION_NAME</code></td><td>AWS S3 region name</td><td>None</td></tr><tr><td><code>AWS_S3_SIGNATURE_VERSION</code></td><td>AWS S3 signature version</td><td>'s3v4'</td></tr><tr><td><code>AWS_QUERYSTRING_EXPIRE</code></td><td>AWS query string expiration time</td><td>'3600'</td></tr><tr><td><code>DATABASE_URL</code></td><td>Database URL for Django-environ to parse</td><td>'sqlite:///{root.path("db.sqlite3")()}'</td></tr><tr><td><code>USE_X_FORWARDED_HOST</code></td><td>Use <code>X-Forwarded-Host</code> header</td><td>Value of <code>DEBUG</code></td></tr><tr><td><code>SOCIAL_AUTH_URL_NAMESPACE</code></td><td>Namespace for social auth URLs</td><td>None</td></tr><tr><td><code>SOCIAL_AUTH_LOGIN_URL</code></td><td>Login URL for social auth</td><td>'/login/provider/'</td></tr><tr><td><code>SOCIAL_AUTH_PROVIDER_HOSTNAME</code></td><td>Hostname for OAuth provider</td><td>None</td></tr><tr><td><code>SOCIAL_AUTH_PROVIDER_KEY</code></td><td>Key for OAuth provider</td><td>None</td></tr><tr><td><code>SOCIAL_AUTH_PROVIDER_SECRET</code></td><td>Secret for OAuth provider</td><td>None</td></tr><tr><td><code>SOCIAL_AUTH_PROVIDER_PROFILE_URL</code></td><td>Profile URL for OAuth provider</td><td>None</td></tr><tr><td><code>SOCIAL_AUTH_PROVIDER_AUTHORIZATION_URL</code></td><td>Authorization URL for OAuth provider</td><td>None</td></tr><tr><td><code>SOCIAL_AUTH_PROVIDER_ACCESS_TOKEN_URL</code></td><td>Access token URL for OAuth provider</td><td>None</td></tr><tr><td><code>SOCIAL_AUTH_PROVIDER_ACCESS_TOKEN_METHOD</code></td><td>Access token method for OAuth provider</td><td>'POST'</td></tr><tr><td><code>SOCIAL_AUTH_PROVIDER_USERNAME_FIELD</code></td><td>Username field for OAuth provider</td><td>'username'</td></tr><tr><td><code>SOCIAL_AUTH_PROVIDER_GROUPS_FIELD</code></td><td>Groups field for OAuth provider</td><td>'groups'</td></tr><tr><td><code>SOCIAL_AUTH_PROVIDER_STAFF_GROUP</code></td><td>Staff group for OAuth provider</td><td>'staff'</td></tr><tr><td><code>CONSTANCE_PUBLIC_KEYS</code></td><td>Comma separated public keys for dynamic settings</td><td>'loginUrl'</td></tr><tr><td><code>DJANGO_ADMIN_LOGIN</code></td><td>Toggle for Django Admin native login</td><td>Value of <code>DEBUG</code></td></tr><tr><td><code>CACHE_URL</code></td><td>URL for cache backend</td><td>'filecache:///code/prophecies/run/cache/'</td></tr><tr><td><code>DJANGO_LOG_LEVEL</code></td><td>Logging level for Django</td><td>'INFO'</td></tr></tbody></table>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://icij.gitbook.io/prophecies/getting-started/configure-prophecies.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
