1
0
Fork 0
forked from forgejo/forgejo

#1692 add organization APIs

This commit is contained in:
Unknwon 2015-12-17 02:28:47 -05:00
parent 6673dcb038
commit 9cd16c5b12
20 changed files with 204 additions and 55 deletions

View file

@ -59,7 +59,7 @@ var (
Protocol Scheme
Domain string
HttpAddr, HttpPort string
LocalUrl string
LocalURL string
DisableSSH bool
StartSSHServer bool
SSHDomain string
@ -302,7 +302,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 + "/")
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()