2020-05-31 20:49:07 +00:00
|
|
|
[Unit]
|
|
|
|
Description=Conduit Matrix homeserver
|
|
|
|
After=network.target
|
|
|
|
|
|
|
|
[Service]
|
2022-05-10 07:26:19 +00:00
|
|
|
DynamicUser=yes
|
2020-05-31 20:49:07 +00:00
|
|
|
User=_matrix-conduit
|
|
|
|
Group=_matrix-conduit
|
|
|
|
Type=simple
|
|
|
|
|
2020-11-13 20:37:22 +00:00
|
|
|
AmbientCapabilities=
|
|
|
|
CapabilityBoundingSet=
|
|
|
|
LockPersonality=yes
|
|
|
|
MemoryDenyWriteExecute=yes
|
|
|
|
NoNewPrivileges=yes
|
|
|
|
ProtectClock=yes
|
|
|
|
ProtectControlGroups=yes
|
|
|
|
ProtectHome=yes
|
|
|
|
ProtectHostname=yes
|
|
|
|
ProtectKernelLogs=yes
|
|
|
|
ProtectKernelModules=yes
|
|
|
|
ProtectKernelTunables=yes
|
|
|
|
ProtectSystem=strict
|
|
|
|
PrivateDevices=yes
|
|
|
|
PrivateMounts=yes
|
|
|
|
PrivateTmp=yes
|
|
|
|
PrivateUsers=yes
|
|
|
|
RemoveIPC=yes
|
|
|
|
RestrictAddressFamilies=AF_INET AF_INET6
|
|
|
|
RestrictNamespaces=yes
|
|
|
|
RestrictRealtime=yes
|
|
|
|
RestrictSUIDSGID=yes
|
|
|
|
SystemCallArchitectures=native
|
|
|
|
SystemCallFilter=@system-service
|
|
|
|
SystemCallErrorNumber=EPERM
|
|
|
|
StateDirectory=matrix-conduit
|
|
|
|
|
2021-04-16 20:10:07 +00:00
|
|
|
Environment="CONDUIT_CONFIG=/etc/matrix-conduit/conduit.toml"
|
2020-05-31 20:49:07 +00:00
|
|
|
|
|
|
|
ExecStart=/usr/sbin/matrix-conduit
|
|
|
|
Restart=on-failure
|
|
|
|
RestartSec=10
|
|
|
|
StartLimitInterval=1m
|
|
|
|
StartLimitBurst=5
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|