Fork of Pleroma with site-specific changes and feature branches https://git.pleroma.social/pleroma/pleroma
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
983B

  1. [Unit]
  2. Description=Pleroma social network
  3. After=network.target postgresql.service
  4. [Service]
  5. User=pleroma
  6. WorkingDirectory=/home/pleroma/pleroma
  7. Environment="HOME=/home/pleroma"
  8. Environment="MIX_ENV=prod"
  9. ExecStart=/usr/local/bin/mix phx.server
  10. ExecReload=/bin/kill $MAINPID
  11. KillMode=process
  12. Restart=on-failure
  13. ; Some security directives.
  14. ; Use private /tmp and /var/tmp folders inside a new file system namespace, which are discarded after the process stops.
  15. PrivateTmp=true
  16. ; Mount /usr, /boot, and /etc as read-only for processes invoked by this service.
  17. ProtectSystem=full
  18. ; Sets up a new /dev mount for the process and only adds API pseudo devices like /dev/null, /dev/zero or /dev/random but not physical devices. Disabled by default because it may not work on devices like the Raspberry Pi.
  19. PrivateDevices=false
  20. ; Ensures that the service process and all its children can never gain new privileges through execve().
  21. NoNewPrivileges=true
  22. [Install]
  23. WantedBy=multi-user.target