Documentation ¶
Index ¶
Constants ¶
View Source
const (
// NginxConfPath is The nginx configuration file path
NginxConfPath = "/etc/nginx/nginx.conf"
)
Variables ¶
View Source
var RunInMockMode bool
If running locally enabled mock mode to not call sh commands or write config
Functions ¶
func GetDefaultConf ¶
GetDefaultConf returns the default nginx.conf
func RestartServer ¶
RestartServer restarts nginx using the provided configuration.
func StartServer ¶
func StartServer(conf string)
StartServer starts nginx using the provided configuration.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.