Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { // ListenPort configures the TCP port where nginx will listen ListenPort uint16 // Backend configures the backend port to which nginx will proxy BackendPort uint16 // TrustedProxyIPRanges configures which upstream IP ranges nginx will trust to send correct X-Forwarded-For headers TrustedProxyIPRanges []string // AuditReceiverURL configures the HTTP/HTTPS endpoint where ModSecurity will log audit events AuditReceiverURL string // DetectionOnly puts the proxy into detection only mode (no blocking of attacks) DetectionOnly bool // PrependedRules configures a list of rules to include before the OWASP Core Rule Set PrependedRules []string // AppendedRules configures a list of rules to include after the OWASP Core Rule Set AppendedRules []string }
Config specifies configuration for the nginx instance that runs ModSecurity
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server represents a running nginx instance
func (*Server) WaitForExit ¶
WaitForExit waits for the running nginx to exit (tailing stderr to the log as it waits)
Click to show internal directories.
Click to hide internal directories.