txtdiary/README.md
Mylloon 4f9e8002f7
All checks were successful
ci/woodpecker/push/publish Pipeline was successful
example on how to setup dev env
2024-03-08 18:39:37 +01:00

30 lines
1 KiB
Markdown

# txtdiary
[![status-badge](https://ci.mylloon.fr/api/badges/71/status.svg)](https://ci.mylloon.fr/repos/71)
personal diary with txt style, can be private!
## environment variables
| name | description | required |
| :----------------: | :---------------------------------: | :-------------: |
| `TD_USERNAME` | user name | no |
| `TD_USERPASS` | user password | yes |
| `TD_PRIVATE` | post visibility | empty = `false` |
| `TD_LOGINLIFETIME` | login lifetime (days) | empty = `7` |
| `TD_BASEROUTE` | base route, must start with a slash | no |
## volumes (docker)
| path | description |
| :--------------: | :--------------------: |
| `/txtdiary/data` | where posts are stored |
## local run
for example, using `pass` password:
```sh
$ pip install -r requirements.txt
$ TD_USERPASS=pass FLASK_APP=src/app flask run
```