|
|
@ -583,9 +583,7 @@ please consider changing to GITEA_CUSTOM`) |
|
|
|
sec := Cfg.Section("server") |
|
|
|
sec := Cfg.Section("server") |
|
|
|
AppName = Cfg.Section("").Key("APP_NAME").MustString("Gitea: Git with a cup of tea") |
|
|
|
AppName = Cfg.Section("").Key("APP_NAME").MustString("Gitea: Git with a cup of tea") |
|
|
|
AppURL = sec.Key("ROOT_URL").MustString("http://localhost:3000/") |
|
|
|
AppURL = sec.Key("ROOT_URL").MustString("http://localhost:3000/") |
|
|
|
if AppURL[len(AppURL)-1] != '/' { |
|
|
|
AppURL = strings.TrimRight(AppURL, "/") + "/" |
|
|
|
AppURL += "/" |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Check if has app suburl.
|
|
|
|
// Check if has app suburl.
|
|
|
|
url, err := url.Parse(AppURL) |
|
|
|
url, err := url.Parse(AppURL) |
|
|
|