2023-12-21 17:51:49 +01:00
|
|
|
# txtdiary
|
|
|
|
|
2024-08-11 16:30:48 +02:00
|
|
|
![status-badge](https://git.mylloon.fr/Anri/txtdiary/badges/workflows/publish.yml/badge.svg)
|
2023-12-21 18:51:11 +01:00
|
|
|
|
2023-12-22 02:11:53 +01:00
|
|
|
personal diary with txt style, can be private!
|
2023-12-21 21:25:28 +01:00
|
|
|
|
2023-12-22 02:11:53 +01:00
|
|
|
## environment variables
|
2023-12-21 21:25:28 +01:00
|
|
|
|
2024-03-08 18:39:28 +01:00
|
|
|
| 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 |
|
2023-12-22 02:11:53 +01:00
|
|
|
|
|
|
|
## volumes (docker)
|
|
|
|
|
|
|
|
| path | description |
|
|
|
|
| :--------------: | :--------------------: |
|
|
|
|
| `/txtdiary/data` | where posts are stored |
|
2024-03-08 18:39:37 +01:00
|
|
|
|
|
|
|
## local run
|
|
|
|
|
|
|
|
for example, using `pass` password:
|
|
|
|
|
|
|
|
```sh
|
|
|
|
$ pip install -r requirements.txt
|
|
|
|
$ TD_USERPASS=pass FLASK_APP=src/app flask run
|
|
|
|
```
|