copr-extras-online/gitea/gitea.service
2022-03-23 19:59:04 +00:00

58 lines
921 B
Desktop File

[Unit]
Description=Gitea git hosting.
After=mariadb.service
[Service]
ExecStart=/usr/bin/gitea web
User=git
Group=git
PIDFile=/run/gitea/gitea.pid
PrivateDevices=yes
MemoryMax=1G
MemoryHigh=750M
MemorySwapMax=1G
CPUWeight=50
ConfigurationDirectory=gitea
RuntimeDirectory=gitea
StateDirectory=gitea
Restart=always
PrivateTmp=yes
PrivateDevices=true
PrivateUsers=true
DevicePolicy=closed
ProtectSystem=strict
ProtectHome=tmpfs
BindPaths=/home/git
ProtectControlGroups=yes
ProtectKernelModules=yes
ProtectKernelTunables=yes
ProtectClock=true
ProtectKernelLogs=yes
ProtectHostname=yes
RestrictAddressFamilies=AF_INET AF_INET6
RestrictNamespaces=yes
RestrictRealtime=yes
RestrictSUIDSGID=yes
NoNewPrivileges=yes
LockPersonality=yes
MemoryDenyWriteExecute=yes
CapabilityBoundingSet=
SystemCallArchitectures=native
SystemCallFilter=@system-service
SystemCallErrorNumber=EPERM
[Install]
WantedBy=multi-user.target