Notification when syncthing shares are inactives.
2.3K
Get notified when a Syncthingâ folder stops receiving changes.
Ideal to make sure your backups, phone photo uploads or shared folders are still syncing: if a folder has not changed for too long, you get an alert by email, Gotify or Discord. Everything is configured from a web UI.
linux/amd64 and linux/arm64services:
syncthing-monitor:
image: waazaafr/syncthing-inactivity-notification:latest
container_name: syncthing-inactivity-notification
restart: unless-stopped
ports:
- "8080:8080"
volumes:
- ./data:/data
environment:
SECRET_KEY: "changeme_secret_key_very_long_and_random"
PUID: 99
PGID: 100
docker run -d \
--name syncthing-inactivity-notification \
--restart unless-stopped \
-p 8080:8080 \
-v ./data:/data \
-e SECRET_KEY="changeme_secret_key_very_long_and_random" \
-e PUID=99 \
-e PGID=100 \
waazaafr/syncthing-inactivity-notification:latest
Then open http://localhost:8080â .
đĄ To generate a
SECRET_KEY:openssl rand -hex 32
â ī¸ No password is set at first start, and the web UI is open to anyone who can reach it. Set a password in Settings right away: the login page (user
admin) is enabled as soon as a password exists.
http://192.168.1.10:8384) and API key.Your Syncthing folders are then imported automatically, and refreshed every hour. The polling interval, the language and the password are also set in Settings.
In Channels, create one or more channels, and use the test button to check them:
| Channel | What you need |
|---|---|
| Your SMTP server, port, credentials and security mode (STARTTLS or SSL) | |
| Gotify | Your Gotify server URL and an application token |
| Discord | A webhook URL: Server Settings â Integrations â Webhooks |
In Folders, choose the folders to monitor and set for each one:
| Setting | Default | Description |
|---|---|---|
| Inactivity threshold | 1440 min (24 h) | How long without changes before the folder is considered inactive |
| Notification time | 8 (08:00 UTC) | Hour of the day when the alert is sent |
| Channels | â | Where the alert is sent |
| Repeat (per channel) | off, every 1440 min | Send reminders while the folder stays inactive |
| Variable | Default | Required | Description |
|---|---|---|---|
SECRET_KEY | â | â | Secret used to sign login sessions. Use a long, random value. |
PUID | 99 | User ID the app runs as (owner of /data) | |
PGID | 100 | Group ID the app runs as | |
DB_PATH | /data/syncthing_monitor.db | Path of the SQLite database | |
SYNCTHING_URL | â | Syncthing URL, e.g. http://192.168.1.10:8384 | |
SYNCTHING_APIKEY | â | Syncthing API key |
âšī¸
SYNCTHING_URLandSYNCTHING_APIKEYare handy for a first setup, but they override the values saved in the web UI at every start. If you want to manage the connection from the web UI, don't set them.
| Path | Content |
|---|---|
/data | SQLite database: settings, channels, folders and alert history. Mount it to keep your configuration. |
At startup, /data is owned by PUID:PGID.
| Port | Service |
|---|---|
8080 | Web UI |
A Docker healthcheck is built into the image.
Content type
Image
Digest
sha256:85b594804âĻ
Size
54.4 MB
Last updated
4 months ago
docker pull waazaafr/syncthing-inactivity-notification