-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a0ba9bd
commit fd136e9
Showing
1 changed file
with
31 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# userli-synapse-user-retention | ||
|
||
[![Integration](https://github.com/systemli/userli-synapse-user-retention/actions/workflows/integration.yml/badge.svg)](https://github.com/systemli/userli-synapse-user-retention/actions/workflows/integration.yml) [![Maintainability Rating](https://sonarcloud.io/api/project_badges/measure?project=systemli_userli-synapse-user-retention&metric=sqale_rating)](https://sonarcloud.io/summary/new_code?id=systemli_userli-synapse-user-retention) [![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=systemli_userli-synapse-user-retention&metric=alert_status)](https://sonarcloud.io/summary/new_code?id=systemli_userli-synapse-user-retention) [![Coverage](https://sonarcloud.io/api/project_badges/measure?project=systemli_userli-synapse-user-retention&metric=coverage)](https://sonarcloud.io/summary/new_code?id=systemli_userli-synapse-user-retention) | ||
|
||
This project is a simple extention for Userli to update users when they are active in Matrix. | ||
It will also delete users that are not active anymore in Matrix. | ||
You can run this as a cronjob or a systemd timer. | ||
|
||
## Configuration | ||
|
||
The following environment variables are required: | ||
|
||
- `USERLI_URL`: The URL of the Userli instance. | ||
- `USERLI_DOMAIN`: The domain you are using for Matrix. | ||
- `USERLI_TOKEN`: The token to authenticate against the Userli instance. | ||
- `SYNAPSE_URL`: The URL of the Synapse instance. | ||
- `SYNAPSE_TOKEN`: The token to authenticate against the Synapse instance. | ||
|
||
## Usage | ||
|
||
We recommend to use the provided Docker image: | ||
|
||
```bash | ||
docker run -d --name userli-synapse-user-retention \ | ||
-e USERLI_URL=https://userli \ | ||
-e USERLI_DOMAIN=example.com \ | ||
-e USERLI_TOKEN=secret \ | ||
-e SYNAPSE_URL=https://synapse \ | ||
-e SYNAPSE_TOKEN=secret \ | ||
systemli/userli-synapse-user-retention:latest | ||
``` |