feat(general): Rework default paths, harden service

This commit is contained in:
jeanluc
2022-05-10 12:00:48 +02:00
parent e7d7cf9c59
commit d21bbac35c
35 changed files with 452 additions and 365 deletions

View File

@@ -30,11 +30,15 @@ gitea:
# Service configuration allows to request mount paths or
# other service units. This is especially important if you
# run a local database server. Example: If you run mariadb
# on localhost, specify wants: ['mariadb'] (or however the
# unit is called, without `.service` suffix).
# run Memcached/Redis. For databases, `post-map.jinja` appends
# the database type automatically.
# Example: If you run Redis on localhost, specify
# wants: ['redis'] (or however the unit is called, without `.service` suffix).
service:
requires_mount: []
# This is intended to setup socket activation. It is currently a draft
# and not functional.
socket_activation: false
wants: []
# This is the custom configuration. Values in `default` are dumped
@@ -72,14 +76,14 @@ gitea:
group: git
paths:
bin: /opt/gitea
conf: /etc/opt/gitea
custom: /var/opt/gitea/custom
data: /var/opt/gitea/data
home: /var/opt/gitea/home
internal_token_uri: file:///etc/opt/gitea/internal_token
log: /var/opt/gitea/log
repos: /var/opt/gitea/data/gitea-repositories
work: /var/opt/gitea
conf: /etc/gitea
custom: /var/lib/gitea/custom
data: /var/lib/gitea/data
home: /var/lib/gitea/home
internal_token_uri: file:///etc/gitea/internal_token
log: /var/log/gitea
repos: /var/lib/gitea/data/gitea-repositories
work: /var/lib/gitea
pkg:
latest: https://dl.gitea.io/gitea/version.json
sig: https://dl.gitea.io/gitea/{version}/gitea-{version}-linux-{arch}.asc