diff options
author | Unknown <joe2010xtmf@163.com> | 2014-03-28 07:26:22 -0400 |
---|---|---|
committer | Unknown <joe2010xtmf@163.com> | 2014-03-28 07:26:22 -0400 |
commit | 0fd754bbe0dab966ad3070dc24f9583c67c84513 (patch) | |
tree | e9386c5a5f89e3db23b8273a7ca2b14804eef524 /modules/base | |
parent | 5344a0300383c4921e4a5810dff58c7686412f0c (diff) | |
download | gitea-0fd754bbe0dab966ad3070dc24f9583c67c84513.tar.gz gitea-0fd754bbe0dab966ad3070dc24f9583c67c84513.zip |
Working on install page
Diffstat (limited to 'modules/base')
-rw-r--r-- | modules/base/conf.go | 4 |
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") |