nginx-proxy-manager-zh/backend/internal/nginx/control.go

14 lines
279 B
Go
Raw Normal View History

2022-07-15 00:26:12 -04:00
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
}