chore: add config examples to readme

Signed-off-by: jolheiser <john.olheiser@gmail.com>
main
jolheiser 2023-05-24 15:27:26 -05:00
parent 36a3521a7e
commit 3c3f671957
Signed by: jolheiser
GPG Key ID: B853ADA5DA7BBF7A
1 changed files with 25 additions and 0 deletions

View File

@ -2,6 +2,31 @@
Invite links for your [Gitea](https://gitea.io) instance!
## Setup
Configure Invitea with a config, environment variables, or flags.
```yaml
domain: http://localhost:8080
session-secret: honk
gitea-client-key: <client-key> # OAuth2 app key
gitea-client-secret: <client-secret> # OAuth2 app secret
gitea-token: <admin token> # Used for creating the accounts
gitea-url: https://git.jojodev.com
level: info
```
The CLI flags would match the key above and environment variables would match `INVITEA_<KEY>`.
```sh
./invitea --domain http://localhost8080 --session-secret honk
```
```sh
INVITEA_DOMAIN="http://localhost:8080"
INVITEA_SESSION_SECRET="honk"
```
## License
[MIT](LICENSE)