2020-05-31 22:49:07 +02:00
|
|
|
[Unit]
|
|
|
|
Description=Conduit Matrix homeserver
|
|
|
|
After=network.target
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
User=_matrix-conduit
|
|
|
|
Group=_matrix-conduit
|
|
|
|
Type=simple
|
|
|
|
|
2020-11-13 21:37:22 +01: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
|
|
|
|
|
2020-05-31 22:49:07 +02:00
|
|
|
Environment="ROCKET_ENV=production"
|
|
|
|
Environment="ROCKET_DATABASE_PATH=/var/lib/matrix-conduit"
|
2020-11-13 20:35:22 +01:00
|
|
|
EnvironmentFile=/etc/matrix-conduit/debian
|
|
|
|
EnvironmentFile=/etc/matrix-conduit/local
|
2020-05-31 22:49:07 +02:00
|
|
|
|
|
|
|
ExecStart=/usr/sbin/matrix-conduit
|
|
|
|
Restart=on-failure
|
|
|
|
RestartSec=10
|
|
|
|
StartLimitInterval=1m
|
|
|
|
StartLimitBurst=5
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|