summarylogtreecommitdiffstats
path: root/mautrix-telegram.service
blob: 8bb68d1ebcf6c8cd5dd7f775bbd6da0dba3c1518 (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 -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