mirror of
https://github.com/Alvin-Zilverstand/nginx-proxy-manager.git
synced 2026-11-23 14:43:09 +01:00
better host upstream support
This commit is contained in:
1 parent
0a50672ab6
commit
ca4d92d793
6 files changed
+30
-7
No files matched your search
@@ -30,6 +30,11 @@ func ConfigureHost(h host.Model) error {
|
||||
certificateTemplate = h.Certificate.GetTemplate()
|
||||
}
|
||||
|
||||
var ups upstream.Model
|
||||
if h.Upstream != nil {
|
||||
ups = *h.Upstream
|
||||
}
|
||||
|
||||
data := TemplateData{
|
||||
Certificate: certificateTemplate,
|
||||
ConfDir: fmt.Sprintf("%s/nginx/hosts", config.Configuration.DataFolder),
|
||||
@@ -39,7 +44,7 @@ func ConfigureHost(h host.Model) error {
|
||||
},
|
||||
DataDir: config.Configuration.DataFolder,
|
||||
Host: h.GetTemplate(),
|
||||
Upstream: h.Upstream,
|
||||
Upstream: ups,
|
||||
}
|
||||
|
||||
removeHostFiles(h)
|
||||
|
||||
Reference in new issue
Block a user