feat: remplacer Gotify par ntfy — push notifications multi-utilisateur avec isolation par topic
- Nouveau NtfyService: topic isolé par user (heimdall_{userId})
- Configuration globale Ntfy:BaseUrl + Ntfy:Token (plus de token par user)
- Renommage UserNotificationConfig: Gotify* → Ntfy*
- Migration des colonnes DB: gotify_enabled/url/token → ntfy_enabled/url
- Ajout service ntfy dans docker-compose (binwiederhier/ntfy)
- Mise à jour .env.example avec NTFY__BASE_URL et NTFY__TOKEN
- Suppression GotifyService et IGotifyService
This commit is contained in:
1 parent
1080f26591
commit
f800103239
25 files changed
+159
-117
No files matched your search
@@ -12,9 +12,8 @@ public class UserNotificationConfig : Entity<Guid>, IAuditableEntity
|
||||
public Guid UserId { get; private set; }
|
||||
public bool EmailEnabled { get; private set; }
|
||||
public string? EmailAddress { get; private set; }
|
||||
public bool GotifyEnabled { get; private set; }
|
||||
public string? GotifyUrl { get; private set; }
|
||||
public string? GotifyToken { get; private set; }
|
||||
public bool NtfyEnabled { get; private set; }
|
||||
public string? NtfyUrl { get; private set; }
|
||||
public string Language { get; private set; } = "fr";
|
||||
public bool DailyDigest { get; private set; }
|
||||
public bool WeeklyDigest { get; private set; }
|
||||
@@ -36,11 +35,10 @@ public class UserNotificationConfig : Entity<Guid>, IAuditableEntity
|
||||
EmailEnabled = enabled;
|
||||
}
|
||||
|
||||
public void UpdateGotify(string? url, string? token, bool enabled)
|
||||
public void UpdateNtfy(string? url, bool enabled)
|
||||
{
|
||||
GotifyUrl = url;
|
||||
GotifyToken = token;
|
||||
GotifyEnabled = enabled;
|
||||
NtfyUrl = url;
|
||||
NtfyEnabled = enabled;
|
||||
}
|
||||
|
||||
public void UpdateDigests(bool daily, bool weekly)
|
||||
|
||||
Reference in new issue
Block a user