Add multi-user support via token-based routing and users.json config

Each user gets a unique secret token embedded in their webhook URL
(/webhook/:token). Credentials are loaded from users.json at startup
instead of environment variables, making it easy to add or remove users
without redeploying.

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
This commit is contained in:
nickandClaude Sonnet 4.6 committed 2026-06-18 17:27:08 -07:00
1 parent 902cd59d11
commit 68be646f37
4 files changed
+88 -24

No files matched your search

+14
View File
@@ -0,0 +1,14 @@
{
"abc123secrettoken": {
"nextcloudUrl": "https://nextcloud.example.com",
"username": "alice",
"password": "alice-app-password",
"folder": "AudioPen"
},
"xyz789anothertoken": {
"nextcloudUrl": "https://nextcloud.example.com",
"username": "bob",
"password": "bob-app-password",
"folder": "AudioPen"
}
}