mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2025-07-04 17:06:49 +00:00
Add nginx exec
This commit is contained in:
13
backend/internal/nginx/control.go
Normal file
13
backend/internal/nginx/control.go
Normal file
@ -0,0 +1,13 @@
|
||||
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
|
||||
}
|
Reference in New Issue
Block a user