nginx

package
v1.0.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 28, 2016 License: Apache-2.0 Imports: 13 Imported by: 0

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 GetConf

func GetConf(config *router.Config, cache *router.Cache) string

GetConf takes the router cache and returns a generated nginx configuration

func GetDefaultConf

func GetDefaultConf(config *router.Config) string

GetDefaultConf returns the default nginx.conf

func RestartServer

func RestartServer(conf string, exitOnFailure bool)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL