Browse Source

Add missing files.

master
Rafal Kupiec 2 years ago
parent
commit
e5e32b7def
Signed by: belliash GPG Key ID: 4E829243E0CFE6B4
2 changed files with 48 additions and 0 deletions
  1. +14
    -0
      www-apps/gitea/files/gitea.confd-r1
  2. +34
    -0
      www-apps/gitea/files/gitea.service-r1

+ 14
- 0
www-apps/gitea/files/gitea.confd-r1 View File

@ -0,0 +1,14 @@
# Gitea configuration
GITEA_CONF="/etc/gitea/app.ini"
# Gitea user
GITEA_USER="git"
# Gitea group
GITEA_GROUP="git"
# Gitea working directory
GITEA_WORK_DIR="/var/lib/gitea"
# Gitea custom directory
GITEA_CUSTOM="${GITEA_WORK_DIR}/custom"

+ 34
- 0
www-apps/gitea/files/gitea.service-r1 View File

@ -0,0 +1,34 @@
[Unit]
Description=Gitea service
Documentation=https://docs.gitea.io/
AssertPathIsDirectory=/var/lib/gitea
AssertPathIsReadWrite=/var/lib/gitea
After=network.target
Requires=network.target
After=mysqld.service
After=postgresql-9.3.service
After=postgresql-9.4.service
After=postgresql-9.5.service
After=postgresql-9.6.service
After=postgresql-10.service
After=postgresql-11.service
After=postgresql-12.service
After=memcached.service
After=redis.service
[Service]
User=git
Group=git
Environment="GITEA_WORK_DIR=/var/lib/gitea" "GITEA_CUSTOM=/var/lib/gitea/custom"
WorkingDirectory=/var/lib/gitea
ExecStart=/usr/bin/gitea web --config /etc/gitea/app.ini
Restart=always
PrivateTmp=true
Nice=5
[Install]
WantedBy=multi-user.target

Loading…
Cancel
Save