summarylogtreecommitdiffstats
path: root/mautrix-telegram.service
blob: 1a4152891d9e2c43a6050a7f7dd74b46ea9afb9b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
[Unit]
Description=Matrix-Telegram hybrid puppeting/relaybot bridge

[Service]
ExecStart=python -m mautrix_telegram -b /usr/share/mautrix-telegram/example-config.yaml -c /etc/mautrix-telegram/config.yaml -r /etc/mautrix-telegram/registration.yaml
Restart=on-failure
User=mautrix-telegram
WorkingDirectory=~

ReadWritePaths=/var/lib/mautrix-telegram

NoNewPrivileges=yes
MemoryDenyWriteExecute=true
PrivateDevices=yes
PrivateTmp=yes
ProtectSystem=strict
ProtectControlGroups=true
RestrictSUIDSGID=true
RestrictRealtime=true
LockPersonality=true
ProtectKernelLogs=true
ProtectKernelTunables=true
ProtectHostname=true
ProtectKernelModules=true
ProtectClock=true
SystemCallArchitectures=native

[Install]
WantedBy=multi-user.target