-
-
Save matteyeux/e542a354e61e47c616086a11d5a99879 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=Gitea (Git with a cup of tea) | |
After=syslog.target | |
After=network.target | |
Requires=mysql.service | |
[Service] | |
# Modify these two values and uncomment them if you have | |
# repos with lots of files and get an HTTP error 500 because | |
# of that | |
### | |
#LimitMEMLOCK=infinity | |
#LimitNOFILE=65535 | |
RestartSec=2s | |
Type=simple | |
User=gitea | |
Group=gitea | |
WorkingDirectory=/opt/gitea | |
ExecStart=/opt/gitea/gitea-1.7.1-linux-arm64 web -c /opt/gitea/custom/conf/app.ini | |
Restart=always | |
Environment=USER=gitea HOME=/opt/gitea GITEA_WORK_DIR=/opt/gitea | |
# Use private /tmp and /var/tmp, which are discarded after gitea stops. | |
PrivateTmp=true | |
# Use a minimal /dev | |
PrivateDevices=true | |
# Hide /home, /root, and /run/user. Nobody will steal your SSH-keys. | |
ProtectHome=true | |
# Make /usr, /boot, /etc and possibly some more folders RO. | |
ProtectSystem=full | |
ReadWriteDirectories=/opt/gitea | |
[Install] | |
WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment