Files
tinyauth/README.md

41 lines
1.2 KiB
Markdown

# tinyauth
> Tinyauth is a simple authentication middleware that adds a simple login screen or OAuth with Google, Github or any other provider to all of your apps.
<!-- metadata -->
* **Category**: Utilities
* **Status**: 0
* **Image**: [`tinyauth`](https://ghcr.io/steveiliop56/tinyauth), 4, upstream
* **Healthcheck**: Yes
* **Backups**: No
* **Email**: No
* **Tests**: No
* **SSO**: Yes
<!-- endmetadata -->
## Quick start
* `abra app new tinyauth`
* `abra app secret insert <app-name> client_secret v1 yoursecret`
* `abra app config <app-name>`
* `abra app deploy <app-name>`
### Using the app with other services
When using tinyauth you probably need to set `TINY_MIDDLEWARE`. This variable needs to match the `STACK_NAME` of this app.
For example this app is deployed at `auth.example.com` the `TINY_MIDDLEWARE` should be `auth_example_com`.
## Add support to other recipes
1. Add an extension compose file with the following content.
```yaml
services:
app:
deploy:
labels:
- "traefik.http.routers.${STACK_NAME}.middlewares=${TINY_MIDDLEWARE}"
```
2. Add the `TINY_MIDDLEWARE` variable.
For more, see [`docs.coopcloud.tech`](https://docs.coopcloud.tech).