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