gitea.service raw
1 [Unit]
2 Description=Gitea (Git with a cup of tea)
3 After=network.target
4 Wants=network.target
5
6 [Service]
7 Type=simple
8 User=mleku
9 Group=mleku
10 WorkingDirectory=/home/mleku/gitea
11 ExecStart=/home/mleku/gitea/bin/gitea web --config /home/mleku/gitea/custom/conf/app.ini
12 Restart=always
13 RestartSec=2s
14 Environment="USER=mleku" "HOME=/home/mleku" "GITEA_WORK_DIR=/home/mleku/gitea"
15
16 # Security enhancements
17 PrivateTmp=yes
18 NoNewPrivileges=true
19 ProtectSystem=strict
20 ProtectHome=no
21 ReadWritePaths=/home/mleku/gitea
22
23 # Limits
24 LimitNOFILE=65535
25 LimitNPROC=65535
26
27 [Install]
28 WantedBy=multi-user.target
29