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