summarylogtreecommitdiffstats
path: root/misskey.service
blob: af53616f8dbca62b2dd1a0d9592674eeb3e8237f (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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
[Unit]
Description=Misskey Server
Requires=postgresql.service redis.service
After=postgresql.service redis.service

[Service]
Type=simple
User=misskey
Group=misskey
PermissionsStartOnly=true
WorkingDirectory=/usr/share/webapps/misskey
Environment=NODE_ENV=production
Environment=HOME=/usr/share/webapps/misskey
ExecStart=npm start
Restart=on-failure
ReadWritePaths=/etc/webapps/misskey/default.yml
ReadWritePaths=/var/cache/misskey
ReadWritePaths=/var/lib/misskey
LockPersonality=true
NoNewPrivileges=true
PrivateDevices=true
PrivateTmp=true
PrivateUsers=true
ProtectClock=true
ProtectControlGroups=true
ProtectHome=true
ProtectHostname=true
ProtectKernelLogs=true
ProtectKernelModules=true
ProtectKernelTunables=true
ProtectProc=invisible
ProtectSystem=strict
SocketBindAllow=3000
SocketBindAllow=443 # used to show previews and other things
SocketBindDeny=any
RestrictNamespaces=true
RestrictRealtime=true
RestrictSUIDSGID=true
SystemCallArchitectures=native
SystemCallFilter=@system-service
SystemCallErrorNumber=EPERM

[Install]
WantedBy=multi-user.target