diff options
author | Unknwon <u@gogs.io> | 2015-12-09 17:22:37 -0500 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2015-12-09 17:22:37 -0500 |
commit | 1b0ef0ec0bedb630307162b60a2edacd3ead1d60 (patch) | |
tree | f646d88f1e368b77aaf530721e87fe1ee4aa3c91 /modules/setting/setting.go | |
parent | fa5e372f7553a4ac9eea1e183ecfc526edb52a77 (diff) | |
parent | e4a092fb5a8875264c9e723f05b245da8164fb51 (diff) |
Merge pull request #2137 from nanoant/patch/ssh-trigger-via-local-url
LOCAL_ROOT_URL for workers accessing web service
Diffstat (limited to 'modules/setting/setting.go')
-rw-r--r-- | modules/setting/setting.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/setting/setting.go b/modules/setting/setting.go index d1af7e03..ef036e0e 100644 --- a/modules/setting/setting.go +++ b/modules/setting/setting.go @@ -59,6 +59,7 @@ var ( Protocol Scheme Domain string HttpAddr, HttpPort string + LocalUrl string DisableSSH bool StartSSHServer bool SSHDomain string @@ -300,6 +301,7 @@ func NewContext() { Domain = sec.Key("DOMAIN").MustString("localhost") HttpAddr = sec.Key("HTTP_ADDR").MustString("0.0.0.0") HttpPort = sec.Key("HTTP_PORT").MustString("3000") + LocalUrl = sec.Key("LOCAL_ROOT_URL").MustString("http://localhost:" + HttpPort + "/") DisableSSH = sec.Key("DISABLE_SSH").MustBool() if !DisableSSH { StartSSHServer = sec.Key("START_SSH_SERVER").MustBool() |