summaryrefslogtreecommitdiffstats
path: root/modules/base
diff options
context:
space:
mode:
authorUnknown <joe2010xtmf@163.com>2014-03-28 07:26:22 -0400
committerUnknown <joe2010xtmf@163.com>2014-03-28 07:26:22 -0400
commit0fd754bbe0dab966ad3070dc24f9583c67c84513 (patch)
treee9386c5a5f89e3db23b8273a7ca2b14804eef524 /modules/base
parent5344a0300383c4921e4a5810dff58c7686412f0c (diff)
downloadgitea-0fd754bbe0dab966ad3070dc24f9583c67c84513.tar.gz
gitea-0fd754bbe0dab966ad3070dc24f9583c67c84513.zip
Working on install page
Diffstat (limited to 'modules/base')
-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 2e56883937..f905c38143 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")