Full env variable table built

This commit is contained in:
Michael Zufelt 2021-04-08 10:14:52 -04:00
parent f5a7882899
commit 611361ef47

View File

@ -64,7 +64,7 @@ Docker image is available at [https://hub.docker.com/r/teddit/teddit](https://hu
The following variables may be set to customize your deployment at runtime. The following variables may be set to customize your deployment at runtime.
| Variable | Description | | Variable | Description |
|-------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| |-|-|
| domain | Defines URL for Teddit to use (i.e. teddit.domain.com). Defaults to **127.0.0.1** | | domain | Defines URL for Teddit to use (i.e. teddit.domain.com). Defaults to **127.0.0.1** |
| use_reddit_oauth | *Boolean* If true, "reddit_app_id" must be set with your own Reddit app ID. If false, Teddit uses Reddit's public API. Defaults to **false** | | use_reddit_oauth | *Boolean* If true, "reddit_app_id" must be set with your own Reddit app ID. If false, Teddit uses Reddit's public API. Defaults to **false** |
| cert_dir | Defines location of certificates if using HTTPS (i.e. /home/teddit/le/live/teddit.net). No trailing slash. | | cert_dir | Defines location of certificates if using HTTPS (i.e. /home/teddit/le/live/teddit.net). No trailing slash. |
@ -83,16 +83,16 @@ The following variables may be set to customize your deployment at runtime.
| listen_address | Sets the address Teddit listens for requests on. Defaults to **0.0.0.0** | | listen_address | Sets the address Teddit listens for requests on. Defaults to **0.0.0.0** |
| https_enabled | *Boolean* Sets whether or not to enable HTTPS for Teddit. Defaults to **false** | | https_enabled | *Boolean* Sets whether or not to enable HTTPS for Teddit. Defaults to **false** |
| redirect_http_to_https | *Boolean* Sets whether to force redirection from HTTP to HTTPS. Defaults to **false** | | redirect_http_to_https | *Boolean* Sets whether to force redirection from HTTP to HTTPS. Defaults to **false** |
| redirect_www | | | redirect_www | *Boolean* Defaults to **false** |
| use_compression | | | use_compression | *Boolean* Defaults to **true** |
| use_view_cache | | | use_view_cache | *Boolean* Defaults to **false** |
| use_helmet | | | use_helmet | *Boolean* Recommended to be true when using https. Defaults to **false** |
| use_helmet_hsts | | | use_helmet_hsts | *Boolean* Recommended to be true when using https. Defaults to **false** |
| trust_proxy | | | trust_proxy | *Boolean* Enable trust_proxy if you are using a reverse proxy like nginx or traefik. Defaults to **false** |
| trust_proxy_address | | | trust_proxy_address | Location of trust_proxy. Defaults to **127.0.0.1** |
| nsfw_enabled | | | nsfw_enabled | *Boolean* Enable NSFW (over 18) content. If false, a warning is shown to the user before opening any NSFW post. When the NFSW content is disabled, NSFW posts are hidden from subreddits and from user page feeds. Note: Users can set this to true or false from their preferences. Defaults to **true** |
| post_comments_sort | | | post_comments_sort | Defines default sort preference. Options are *confidence* (default sorting option in Reddit), *top*, *new*, *controversal*, *old*, *random*, *qa*, *live*. Defaults to **confidence** |
| reddit_app_id | | | reddit_app_id | If "use_reddit_oauth" config key is set to true, you have to obtain your Reddit app ID. For testing purposes it's okay to use this project's default app ID. Create your Reddit app here: https://old.reddit.com/prefs/apps/. Make sure to create an "installed app" type of app. Default is **ABfYqdDc9qPh1w** |
### Manual ### Manual