mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2025-06-18 18:16:26 +00:00
better host upstream support
This commit is contained in:
@ -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