mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-27 06:03:51 +03:00
Fixed registry host value. (#19363)
This commit is contained in:
parent
72479bff89
commit
6d51b9f615
1 changed files with 3 additions and 4 deletions
|
@ -5,6 +5,7 @@
|
|||
package setting
|
||||
|
||||
import (
|
||||
"net/url"
|
||||
"os"
|
||||
"path/filepath"
|
||||
|
||||
|
@ -31,10 +32,8 @@ func newPackages() {
|
|||
|
||||
Packages.Storage = getStorage("packages", "", nil)
|
||||
|
||||
Packages.RegistryHost = Domain
|
||||
if (Protocol == HTTP && HTTPPort != "80") || (Protocol == HTTPS && HTTPPort != "443") {
|
||||
Packages.RegistryHost += ":" + HTTPPort
|
||||
}
|
||||
appURL, _ := url.Parse(AppURL)
|
||||
Packages.RegistryHost = appURL.Host
|
||||
|
||||
Packages.ChunkedUploadPath = filepath.ToSlash(sec.Key("CHUNKED_UPLOAD_PATH").MustString("tmp/package-upload"))
|
||||
if !filepath.IsAbs(Packages.ChunkedUploadPath) {
|
||||
|
|
Loading…
Reference in a new issue