mirror of
https://github.com/xiaoxinpro/nginx-proxy-manager-zh.git
synced 2025-01-23 21:28:15 -05:00
14 lines
279 B
Go
14 lines
279 B
Go
|
package nginx
|
||
|
|
||
|
import "npm/internal/entity/host"
|
||
|
|
||
|
// ConfigureHost will attempt to write nginx conf and reload nginx
|
||
|
func ConfigureHost(h host.Model) error {
|
||
|
// nolint: errcheck, gosec
|
||
|
h.Expand([]string{"certificate"})
|
||
|
|
||
|
// nolint: errcheck, gosec
|
||
|
reloadNginx()
|
||
|
return nil
|
||
|
}
|