mirror of
https://github.com/FuzzyGrim/Yamtrack.git
synced 2026-03-03 02:57:01 +00:00
add handling for ACCOUNT_DEFAULT_HTTP_PROTOCOL
This commit is contained in:
55
README.md
55
README.md
@@ -83,33 +83,34 @@ Note that the setting must include the correct protocol (`https` or `http`), and
|
||||
|
||||
### Environment variables
|
||||
|
||||
| Name | Notes |
|
||||
| ----------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||
| TMDB_API | The Movie Database API key for movies and tv shows, a default key is provided |
|
||||
| TMDB_NSFW | Default to `False`, set to `True` to include adult content in tv and movie searches |
|
||||
| TMDB_LANG | TMDB metadata language, uses a Language code in ISO 639-1 e.g `en`, for more specific results a country code in ISO 3166-1 can be added e.g `en-US` |
|
||||
| MAL_API | MyAnimeList API key, for anime and manga, a default key is provided |
|
||||
| MAL_NSFW | Default to `False`, set to `True` to include adult content in anime and manga searches from MyAnimeList |
|
||||
| MU_NSFW | Default to `False`, set to `True` to include adult content in manga searches from MangaUpdates |
|
||||
| IGDB_ID | IGDB API key for games, a default key is provided but it's recommended to get your own as it has a low rate limit |
|
||||
| IGDB_SECRET | IGDB API secret for games, a default value is provided but it's recommended to get your own as it has a low rate limit |
|
||||
| IGDB_NSFW | Default to `False`, set to `True` to include adult content in game searches |
|
||||
| SIMKL_ID | Simkl API key only needed for importing media from Simkl, a default key is provided but you can get one at [Simkl Developer](https://simkl.com/settings/developer/new/custom-search/) if needed |
|
||||
| SIMKL_SECRET | Simkl API secret for importing media from Simkl, a default secret is provided but you can get one at [Simkl Developer](https://simkl.com/settings/developer/new/custom-search/) if needed |
|
||||
| REDIS_URL | Default to `redis://localhost:6379`, Redis is needed for processing background tasks, set this to your redis server url |
|
||||
| SECRET | [Secret key](https://docs.djangoproject.com/en/stable/ref/settings/#secret-key) used for cryptographic signing, should be a random string |
|
||||
| URLS | Shortcut to set both the `CSRF` and `ALLOWED_HOSTS` settings, comma separated list of URLs, e.g. `https://yamtrack.mydomain.com` or `https://yamtrack.mydomain.com, https://yamtrack.mydomain2.com` |
|
||||
| ALLOWED_HOSTS | Comma separated list of host/domain names that this Django site can serve, e.g. `yamtrack.mydomain.com` or `yamtrack.mydomain.com, 192.168.1.1`. Default to `*` for all hosts |
|
||||
| CSRF | Comma separated list of trusted origins for `POST` requests when using reverse proxies, e.g. `https://yamtrack.mydomain.com` or `https://yamtrack.mydomain.com, https://yamtrack.mydomain2.com` |
|
||||
| REGISTRATION | Default to `True`, set to `False` to disable user registration |
|
||||
| DEBUG | Default to `False`, set to `True` for debugging |
|
||||
| PUID | User ID for the app, default to `1000` |
|
||||
| PGID | Group ID for the app, default to `1000` |
|
||||
| TZ | Timezone, like `Europe/Berlin`. Default to `UTC` |
|
||||
| WEB_CONCURRENCY | Number of webserver processes, default to `1` but it's recommended to have a value of [(2 x num cores) + 1](https://docs.gunicorn.org/en/latest/design.html#how-many-workers) |
|
||||
| SOCIAL_PROVIDERS | Comma-separated list of social authentication providers to enable, e.g. `allauth.socialaccount.providers.openid_connect,allauth.socialaccount.providers.github` |
|
||||
| SOCIALACCOUNT_PROVIDERS | JSON configuration for social providers, see the [Wiki](https://github.com/FuzzyGrim/Yamtrack/wiki/Social-Authentication-in-Yamtrack) for a OIDC configuration example. |
|
||||
| SOCIALACCOUNT_ONLY | Default to `False`, set to `True` to disable local authentication when using social authentication only |
|
||||
| Name | Notes |
|
||||
| ----------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||
| TMDB_API | The Movie Database API key for movies and tv shows, a default key is provided |
|
||||
| TMDB_NSFW | Default to `False`, set to `True` to include adult content in tv and movie searches |
|
||||
| TMDB_LANG | TMDB metadata language, uses a Language code in ISO 639-1 e.g `en`, for more specific results a country code in ISO 3166-1 can be added e.g `en-US` |
|
||||
| MAL_API | MyAnimeList API key, for anime and manga, a default key is provided |
|
||||
| MAL_NSFW | Default to `False`, set to `True` to include adult content in anime and manga searches from MyAnimeList |
|
||||
| MU_NSFW | Default to `False`, set to `True` to include adult content in manga searches from MangaUpdates |
|
||||
| IGDB_ID | IGDB API key for games, a default key is provided but it's recommended to get your own as it has a low rate limit |
|
||||
| IGDB_SECRET | IGDB API secret for games, a default value is provided but it's recommended to get your own as it has a low rate limit |
|
||||
| IGDB_NSFW | Default to `False`, set to `True` to include adult content in game searches |
|
||||
| SIMKL_ID | Simkl API key only needed for importing media from Simkl, a default key is provided but you can get one at [Simkl Developer](https://simkl.com/settings/developer/new/custom-search/) if needed |
|
||||
| SIMKL_SECRET | Simkl API secret for importing media from Simkl, a default secret is provided but you can get one at [Simkl Developer](https://simkl.com/settings/developer/new/custom-search/) if needed |
|
||||
| REDIS_URL | Default to `redis://localhost:6379`, Redis is needed for processing background tasks, set this to your redis server url |
|
||||
| SECRET | [Secret key](https://docs.djangoproject.com/en/stable/ref/settings/#secret-key) used for cryptographic signing, should be a random string |
|
||||
| URLS | Shortcut to set both the `CSRF` and `ALLOWED_HOSTS` settings, comma separated list of URLs, e.g. `https://yamtrack.mydomain.com` or `https://yamtrack.mydomain.com, https://yamtrack.mydomain2.com` |
|
||||
| ALLOWED_HOSTS | Comma separated list of host/domain names that this Django site can serve, e.g. `yamtrack.mydomain.com` or `yamtrack.mydomain.com, 192.168.1.1`. Default to `*` for all hosts |
|
||||
| CSRF | Comma separated list of trusted origins for `POST` requests when using reverse proxies, e.g. `https://yamtrack.mydomain.com` or `https://yamtrack.mydomain.com, https://yamtrack.mydomain2.com` |
|
||||
| REGISTRATION | Default to `True`, set to `False` to disable user registration |
|
||||
| DEBUG | Default to `False`, set to `True` for debugging |
|
||||
| PUID | User ID for the app, default to `1000` |
|
||||
| PGID | Group ID for the app, default to `1000` |
|
||||
| TZ | Timezone, like `Europe/Berlin`. Default to `UTC` |
|
||||
| WEB_CONCURRENCY | Number of webserver processes, default to `1` but it's recommended to have a value of [(2 x num cores) + 1](https://docs.gunicorn.org/en/latest/design.html#how-many-workers) |
|
||||
| SOCIAL_PROVIDERS | Comma-separated list of social authentication providers to enable, e.g. `allauth.socialaccount.providers.openid_connect,allauth.socialaccount.providers.github` |
|
||||
| SOCIALACCOUNT_PROVIDERS | JSON configuration for social providers, see the [Wiki](https://github.com/FuzzyGrim/Yamtrack/wiki/Social-Authentication-in-Yamtrack) for a OIDC configuration example. |
|
||||
| ACCOUNT_DEFAULT_HTTP_PROTOCOL | Protocol for social providers, if your `redirect_uri` in OIDC config is `https` set this to `https`, default is determined based on your `CSRF_TRUSTED_ORIGINS` settings |
|
||||
| SOCIALACCOUNT_ONLY | Default to `False`, set to `True` to disable local authentication when using social authentication only |
|
||||
|
||||
### Environment variables for PostgreSQL
|
||||
|
||||
|
||||
Reference in New Issue
Block a user