mirror of https://gitlab.com/famedly/conduit.git
48 lines
953 B
SYSTEMD
48 lines
953 B
SYSTEMD
[Unit]
|
|
Description=Conduit Matrix homeserver
|
|
After=network.target
|
|
|
|
[Service]
|
|
DynamicUser=yes
|
|
User=_matrix-conduit
|
|
Group=_matrix-conduit
|
|
Type=simple
|
|
|
|
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
|
|
|
|
Environment="CONDUIT_CONFIG=/etc/matrix-conduit/conduit.toml"
|
|
|
|
ExecStart=/usr/sbin/matrix-conduit
|
|
Restart=on-failure
|
|
RestartSec=10
|
|
StartLimitInterval=1m
|
|
StartLimitBurst=5
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|