summaryrefslogtreecommitdiffstats
path: root/modules/setting/setting.go
diff options
context:
space:
mode:
authorTony Narlock <tony@git-pull.com>2015-04-18 05:21:07 -0500
committerTony Narlock <tony@git-pull.com>2015-04-18 05:21:07 -0500
commit6a0fec77eaacbce05486fea76b67db3f5f880e88 (patch)
treea5b4c39b3c43003a3e99aeb2c274a5476b3a4028 /modules/setting/setting.go
parent9512eec034e4691d611152e8182605a2b7811cb7 (diff)
downloadgitea-6a0fec77eaacbce05486fea76b67db3f5f880e88.tar.gz
gitea-6a0fec77eaacbce05486fea76b67db3f5f880e88.zip
Allow an SSHDomain configuration option. Defaults to Domain, preserves legacy behavior
Diffstat (limited to 'modules/setting/setting.go')
-rw-r--r--modules/setting/setting.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/setting/setting.go b/modules/setting/setting.go
index aefc3520f9..3ce27b2e3b 100644
--- a/modules/setting/setting.go
+++ b/modules/setting/setting.go
@@ -53,6 +53,7 @@ var (
HttpAddr, HttpPort string
DisableSSH bool
SSHPort int
+ SSHDomain string
OfflineMode bool
DisableRouterLog bool
CertFile, KeyFile string
@@ -232,6 +233,7 @@ func NewConfigContext() {
HttpAddr = sec.Key("HTTP_ADDR").MustString("0.0.0.0")
HttpPort = sec.Key("HTTP_PORT").MustString("3000")
DisableSSH = sec.Key("DISABLE_SSH").MustBool()
+ SSHDomain = sec.Key("SSH_DOMAIN").MustString(Domain)
SSHPort = sec.Key("SSH_PORT").MustInt(22)
OfflineMode = sec.Key("OFFLINE_MODE").MustBool()
DisableRouterLog = sec.Key("DISABLE_ROUTER_LOG").MustBool()