Documentation
¶
Index ¶
Constants ¶
View Source
const ( PhpNginxConfigLayer = "php-nginx-config" PhpNginxConfig = "php-nginx-config" )
Variables ¶
View Source
var NGINXConfTemplate string
View Source
var NGINXFPMConfTemplate string
Functions ¶
func Build ¶
func Build(nginxConfigWriter ConfigWriter, nginxFpmConfigWriter ConfigWriter, logger scribe.Emitter) packit.BuildFunc
Build will return a packit.BuildFunc that will be invoked during the build phase of the buildpack lifecycle.
Build will create a layer dedicated to Nginx configuration, configure default Nginx settings, incorporate other configuration sources, and make the configuration available at both build-time and launch-time.
Types ¶
type ConfigWriter ¶
ConfigWriter sets up the default Nginx configuration file and incorporates any user configurations.
type NginxConfig ¶
type NginxConfigWriter ¶
type NginxConfigWriter struct {
// contains filtered or unexported fields
}
func NewNginxConfigWriter ¶
func NewNginxConfigWriter(logger scribe.Emitter) NginxConfigWriter
type NginxFpmConfig ¶
type NginxFpmConfig struct {
FpmSocket string
}
type NginxFpmConfigWriter ¶
type NginxFpmConfigWriter struct {
// contains filtered or unexported fields
}
func NewFpmNginxConfigWriter ¶
func NewFpmNginxConfigWriter(logger scribe.Emitter) NginxFpmConfigWriter
Click to show internal directories.
Click to hide internal directories.