Documentation
¶
Overview ¶
The `nginx` task spawns an nginx server, and can test and reload the nginx configuration programmatically or through the API gateway.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { BinaryPath string `hcl:"binary_path" description:"Path to nginx binary"` Env map[string]string `hcl:"env" description:"Environment variables to set"` Directives map[string]string `hcl:"directives" description:"Directives to set in nginx configuration"` Available string `hcl:"available" description:"Path to available configuration files"` Enabled string `hcl:"enabled" description:"Path to enabled configuration files"` }
func (Config) Description ¶
Description returns the description of the service
type Nginx ¶
type Nginx interface { // test the configuration and return an error if it fails Test() error // test the configuration and then reload it (the SIGHUP signal) Reload() error // reopen log files (the SIGUSR1 signal) Reopen() error // return the nginx version string Version() string // return the configuration path Config() string }
Source Files
¶
Directories
¶
Path | Synopsis |
---|---|
Implements an API client for the nginx API (https://github.com/mutablelogic/go-server/pkg/handler/nginx)
|
Implements an API client for the nginx API (https://github.com/mutablelogic/go-server/pkg/handler/nginx) |
Manages the lifecycle of configuration folders for nginx
|
Manages the lifecycle of configuration folders for nginx |
Click to show internal directories.
Click to hide internal directories.