Add config system to read from file (#664)

Co-authored-by: Daniel Valentine <daniel@vielle.ws>
This commit is contained in:
Matthew E 2023-01-03 04:55:22 -05:00 committed by GitHub
parent 4817f51bc0
commit 5b06a3fc64
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 272 additions and 43 deletions

View file

@ -208,6 +208,13 @@ Assign a default value for each user-modifiable setting by passing environment v
| `HIDE_HLS_NOTIFICATION` | `["on", "off"]` | `off` |
| `AUTOPLAY_VIDEOS` | `["on", "off"]` | `off` |
You can also configure Libreddit with a configuration file. An example `libreddit.toml` can be found below:
```toml
LIBREDDIT_DEFAULT_WIDE = "on"
LIBREDDIT_DEFAULT_USE_HLS = "on"
```
### Examples
```bash