gogs.service 743 B

1234567891011121314151617181920212223242526
  1. [Unit]
  2. Description=The Wesleys Gogs Service
  3. After=network.target syslog.target nss-lookup.target
  4. [Service]
  5. # Modify these two values and uncomment them if you have repos with
  6. # lots of files and get an HTTP error 500 because of that
  7. #LimitMEMLOCK=infinity
  8. #LimitNOFILE=65535
  9. Type=simple
  10. User=wesley
  11. Group=wesley
  12. WorkingDirectory=/home/wesley/gogs
  13. ExecStart=/home/wesley/gogs/gogs web
  14. Restart=always
  15. Environment=USER=wesley HOME=/home/wesley
  16. # Some distributions may not support these hardening directives. If you cannot start the service due
  17. # to an unknown option, comment out the ones not supported by your version of systemd.
  18. ProtectSystem=full
  19. PrivateDevices=yes
  20. PrivateTmp=yes
  21. NoNewPrivileges=true
  22. [Install]
  23. WantedBy=multi-user.target