summaryrefslogtreecommitdiffstats
path: root/custom
diff options
context:
space:
mode:
authorPaweł Bogusławski <pawel.boguslawski@ib.pl>2020-12-21 15:39:41 +0100
committerGitHub <noreply@github.com>2020-12-21 15:39:41 +0100
commit839daa85aaba5172b3dd2b3f882aa9639a09f13a (patch)
treecc99ed17087fd3b3b44cdb650efe16e6f0394e55 /custom
parent3a500cf8c4b7892e13cb506af6fe3ab5c1c2faff (diff)
downloadgitea-839daa85aaba5172b3dd2b3f882aa9639a09f13a.tar.gz
gitea-839daa85aaba5172b3dd2b3f882aa9639a09f13a.zip
Added option to disable migrations (#13114)
* Added option to disable migrations This patch introduces DISABLE_MIGRATIONS parameter in [repository] section of app.ini (by default set to false). If set to true it blocks access to repository migration feature. This mod hides also local repo import option in user editor if local repo importing or migrations is disabled. * Alter Example config DISABLE_MIGRATIONS set to false in example config to match its default value. * HTTP error 403 instead of 500 on denied access to migration * Parameter DISABLE_MIGRATIONS exposed via API Fixes: 04b04cf854bcb3ed7659442bcf79822bdebe29e9 Author-Change-Id: IB#1105130
Diffstat (limited to 'custom')
-rw-r--r--custom/conf/app.example.ini2
1 files changed, 2 insertions, 0 deletions
diff --git a/custom/conf/app.example.ini b/custom/conf/app.example.ini
index 1e77ff2706..b89bbf894e 100644
--- a/custom/conf/app.example.ini
+++ b/custom/conf/app.example.ini
@@ -66,6 +66,8 @@ DEFAULT_REPO_UNITS = repo.code,repo.releases,repo.issues,repo.pulls,repo.wiki,re
PREFIX_ARCHIVE_FILES = true
; Disable the creation of new mirrors. Pre-existing mirrors remain valid.
DISABLE_MIRRORS = false
+; Disable migrating feature.
+DISABLE_MIGRATIONS = false
; The default branch name of new repositories
DEFAULT_BRANCH = master
; Allow adoption of unadopted repositories