This commit is contained in:
zand
2026-09-08 17:18:05 +02:00
commit 364544d77e
11 changed files with 704 additions and 0 deletions
@@ -0,0 +1,12 @@
[Unit]
Description=Update Mastodon disposable email domain blocks through Docker Compose
After=network-online.target docker.service
Wants=network-online.target docker.service
[Service]
Type=oneshot
EnvironmentFile=/etc/mastodon-email-blocker/docker.env
ExecStart=/opt/mastodon-email-blocker/venv/bin/python /opt/mastodon-email-blocker/mastodon-email-blocker.py --backend docker --compose-dir ${COMPOSE_DIR} --compose-command ${COMPOSE_COMMAND} --compose-service ${COMPOSE_SERVICE} --mx-mode off
ReadWritePaths=/var/lib/mastodon-email-blocker
ReadOnlyPaths=/etc/mastodon-email-blocker
TimeoutStartSec=infinity
@@ -0,0 +1,12 @@
[Unit]
Description=Update Mastodon disposable email domain blocks
After=network-online.target
Wants=network-online.target
[Service]
Type=oneshot
EnvironmentFile=/etc/mastodon-email-blocker/native.env
ExecStart=/opt/mastodon-email-blocker/venv/bin/python /opt/mastodon-email-blocker/mastodon-email-blocker.py --backend native --mastodon-dir ${MASTODON_DIR} --ruby-bin ${RUBY_BIN} --mx-mode off
ReadWritePaths=/var/lib/mastodon-email-blocker
ReadOnlyPaths=/etc/mastodon-email-blocker
TimeoutStartSec=infinity
+10
View File
@@ -0,0 +1,10 @@
[Unit]
Description=Run Mastodon disposable email blocker daily
[Timer]
OnCalendar=*-*-* 04:20:00
RandomizedDelaySec=30m
Persistent=true
[Install]
WantedBy=timers.target