> For the complete documentation index, see [llms.txt](https://gift.icbest.ca/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://gift.icbest.ca/getting-started/environnement-variables.md).

# Environnement variables

### Docker Gunicorn variables

#### Can be set at container creation (v2.6.4 and up)

| Key               | what it does                                        | Default value |
| ----------------- | --------------------------------------------------- | ------------- |
| GUNICORN\_THREADS | The number of worker threads for handling requests. | 4             |
| GUNICORN\_BIND    | Chooses port inside the container                   | 0.0.0.0:5000  |

Example: `docker run -p 80:80 -e GUNICORN_THREADS=2 -e GUNICORN_THREADS=0.0.0.0:80 -v ./data:/app/data icbest/giftmanager`

### App Settings

#### Those settings can only be edited via the admin panel or directly in the .env in /data

<table><thead><tr><th>Key</th><th width="330">what it does</th><th>Default value</th></tr></thead><tbody><tr><td>SECRET_KEY</td><td>Used to secure session cookies.<br>Please change this value to your own.</td><td>changethis</td></tr><tr><td>MAILJET_API_KEY</td><td>Needed for emails on delete.<br>If not present, app will NOT try to contact mailjet servers.</td><td>[empty]</td></tr><tr><td>MAILJET_API_SECRET</td><td>Needed for emails on delete.</td><td>[empty]</td></tr><tr><td>SYSTEM_EMAIL</td><td>Email to send notification from.</td><td>[empty]</td></tr><tr><td>DELETE_DAYS</td><td>Days before auto-delete ideas bought<br><a href="/settings/deletion-script.md">See Deletion Script</a></td><td>30</td></tr><tr><td>OIDC_CLIENT_ID</td><td><a href="/settings/oidc-support.md">See OIDC Support</a></td><td>[empty]</td></tr><tr><td>OIDC_CLIENT_SECRET</td><td><a href="/settings/oidc-support.md">See OIDC Support</a></td><td>[empty]</td></tr><tr><td>OIDC_SERVER_METADATA_URL</td><td><a href="/settings/oidc-support.md">See OIDC Support</a></td><td>[empty]</td></tr><tr><td>OIDC_LOGOUT_URL</td><td><a href="/settings/oidc-support.md">See OIDC Support</a></td><td>[empty]</td></tr><tr><td>PRIMARY_OIDC_FIELD</td><td><a href="/settings/oidc-support.md#scopes-claims-and-database-field-mapping">See OIDC Support</a></td><td>email</td></tr><tr><td>SECONDARY_OIDC_FIELD</td><td><a href="/settings/oidc-support.md">See OIDC Support</a></td><td>preferred_username</td></tr><tr><td>PRIMARY_DB_FIELD</td><td><a href="/settings/oidc-support.md">See OIDC Support</a></td><td>email</td></tr><tr><td>SECONDARY_DB_FIELD</td><td><a href="/settings/oidc-support.md">See OIDC Support</a></td><td>username</td></tr><tr><td>ENABLE_AUTO_REGISTRATION</td><td><a href="/settings/oidc-support.md">See OIDC Support</a></td><td>false</td></tr><tr><td>ENABLE_DEFAULT_LOGIN</td><td><a href="/settings/oidc-support.md">See OIDC Support</a></td><td>true</td></tr><tr><td>LOGIN_PAGE_MESSAGE</td><td>Changes the message at the top of the login form. (Default will be empty in the .env because handled by the template)</td><td>No account? Contact a family member to create an account.</td></tr><tr><td>REORDERING</td><td>Allows reordering ideas on my_ideas page</td><td>true</td></tr><tr><td>IMGENABLED</td><td>Allows images in ideas (tries auto-fetch then ask user for link if failed)</td><td>false</td></tr><tr><td>CURRENCY_SYMBOL</td><td>Changes the symbol for the idea value</td><td>$</td></tr><tr><td>CURRENCY_POSITION</td><td>Changes the symbol position for the idea value</td><td>before</td></tr><tr><td>ENABLE_SELF_REGISTRATION</td><td>Allow people to self register on the login page.</td><td>false</td></tr><tr><td>JOINING_CODE</td><td>Needed to self register. (Empty will not ask for one at account creation)</td><td>[empty]</td></tr><tr><td>ENABLE_LINK_SHARING</td><td>Allows user to share their lists via external link.</td><td>true</td></tr></tbody></table>
