-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #30 from Dunedan/enable-mod-mam
Enable mod_mam for Message Archive Management
- Loading branch information
Showing
4 changed files
with
60 additions
and
1 deletion.
There are no files selected for viewing
23 changes: 23 additions & 0 deletions
23
roles/ejabberd/files/ejabberd-delete-old-mam-messages.service
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,23 @@ | ||
[Unit] | ||
Description=Deletion of MAM messages stored by ejabberd | ||
|
||
[Service] | ||
Type=oneshot | ||
ExecStart=/usr/sbin/ejabberdctl delete_old_mam_messages all 31 | ||
|
||
User=ejabberd | ||
Group=ejabberd | ||
|
||
NoNewPrivileges=true | ||
PrivateDevices=true | ||
PrivateMounts=true | ||
PrivateTmp=true | ||
PrivateUsers=false | ||
ProtectClock=true | ||
ProtectControlGroups=true | ||
ProtectHome=true | ||
ProtectHostname=true | ||
ProtectKernelLogs=true | ||
ProtectKernelModules=true | ||
ProtectKernelTunables=true | ||
ProtectSystem=true |
10 changes: 10 additions & 0 deletions
10
roles/ejabberd/files/ejabberd-delete-old-mam-messages.timer
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,10 @@ | ||
[Unit] | ||
Description=Run monthly deletion of MAM messages stored by ejabberd | ||
|
||
[Timer] | ||
OnCalendar=monthly | ||
RandomizedDelaySec=1h | ||
FixedRandomDelay=true | ||
|
||
[Install] | ||
WantedBy=timers.target |
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
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