From d5a4dfe5491f83ab91756a8cad6f4539671a555d Mon Sep 17 00:00:00 2001 From: Clark Boylan Date: Wed, 26 Oct 2022 13:54:49 -0700 Subject: [PATCH] Disable unused gitea features This explicitly disables gitea federation and repo migrations. Federation is disabled by default currently, but disabling it explicitly ensures that won't change on us later. Migrations aren't something we need so we disable them. Change-Id: Ic7f3f3fe6927b2ff13509050d0113e01622ed51e --- playbooks/roles/gitea/templates/app.ini.j2 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/playbooks/roles/gitea/templates/app.ini.j2 b/playbooks/roles/gitea/templates/app.ini.j2 index 5b4c468985..c6e97d19c8 100644 --- a/playbooks/roles/gitea/templates/app.ini.j2 +++ b/playbooks/roles/gitea/templates/app.ini.j2 @@ -33,6 +33,7 @@ LOG_SQL = false ROOT = /data/git/repositories DISABLED_REPO_UNITS = repo.issues,repo.pulls,repo.wiki,repo.projects DISABLE_STARS = true +DISABLE_MIGRATIONS = true [git] ; Implemented in 1.16 but broke older git clients. Now expected to work @@ -40,6 +41,9 @@ DISABLE_STARS = true ; to true again. DISABLE_PARTIAL_CLONE = false +[federation] +ENABLED = false + [packages] ENABLED = false