]>
Commit | Line | Data |
---|---|---|
46889254 C |
1 | [Unit] |
2 | Description=PeerTube daemon | |
9a515f76 | 3 | After=network.target postgresql.service redis-server.service |
46889254 C |
4 | |
5 | [Service] | |
6 | Type=simple | |
7 | Environment=NODE_ENV=production | |
59c48d49 | 8 | Environment=NODE_CONFIG_DIR=/var/www/peertube/config |
d2000ca6 C |
9 | User=peertube |
10 | Group=peertube | |
ec9bd7f0 | 11 | ExecStart=/usr/bin/node dist/server |
59c48d49 | 12 | WorkingDirectory=/var/www/peertube/peertube-latest |
46889254 C |
13 | SyslogIdentifier=peertube |
14 | Restart=always | |
15 | ||
3114c2c2 | 16 | ; Some security directives. |
3114c2c2 RK |
17 | ; Mount /usr, /boot, and /etc as read-only for processes invoked by this service. |
18 | ProtectSystem=full | |
19 | ; Sets up a new /dev mount for the process and only adds API pseudo devices | |
20 | ; like /dev/null, /dev/zero or /dev/random but not physical devices. Disabled | |
21 | ; by default because it may not work on devices like the Raspberry Pi. | |
22 | PrivateDevices=false | |
23 | ; Ensures that the service process and all its children can never gain new | |
24 | ; privileges through execve(). | |
25 | NoNewPrivileges=true | |
a46934c8 MK |
26 | ; This makes /home, /root, and /run/user inaccessible and empty for processes invoked |
27 | ; by this unit. Make sure that you do not depend on data inside these folders. | |
28 | ProtectHome=true | |
29 | ; Drops the sys admin capability from the daemon. | |
30 | CapabilityBoundingSet=~CAP_SYS_ADMIN | |
3114c2c2 | 31 | |
46889254 C |
32 | [Install] |
33 | WantedBy=multi-user.target |