https://github.com/systemli/userli-synapse-user-retention
https://github.com/systemli/userli-synapse-user-retention
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/systemli/userli-synapse-user-retention
- Owner: systemli
- License: gpl-3.0
- Created: 2025-01-03T15:03:38.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-01T16:13:24.000Z (over 1 year ago)
- Last Synced: 2025-03-01T17:23:58.076Z (over 1 year ago)
- Language: Go
- Size: 35.2 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# userli-synapse-user-retention
[](https://github.com/systemli/userli-synapse-user-retention/actions/workflows/integration.yml) [](https://sonarcloud.io/summary/new_code?id=systemli_userli-synapse-user-retention) [](https://sonarcloud.io/summary/new_code?id=systemli_userli-synapse-user-retention) [](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
```