aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/base/conf.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/base/conf.go b/modules/base/conf.go
index 2e568839..f905c381 100644
--- a/modules/base/conf.go
+++ b/modules/base/conf.go
@@ -38,6 +38,8 @@ var (
RunUser string
RepoRootPath string
+ InstallLock bool
+
EnableHttpsClone bool
LogInRememberDays int
@@ -282,6 +284,8 @@ func NewConfigContext() {
os.Exit(2)
}
+ InstallLock = Cfg.MustBool("security", "INSTALL_LOCK", false)
+
EnableHttpsClone = Cfg.MustBool("security", "ENABLE_HTTPS_CLONE", false)
LogInRememberDays = Cfg.MustInt("security", "LOGIN_REMEMBER_DAYS")