Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateNginxMainConfig ¶
func GenerateNginxMainConfig(staticCfgParams *StaticConfigParams, config *ConfigParams) *nginx.MainConfig
Types ¶
type ConfigParams ¶
type ConfigParams struct { ClientMaxBodySize string DefaultServerAccessLogOff bool DefaultServerReturn string FailTimeout string HealthCheckEnabled bool HealthCheckMandatory bool HealthCheckMandatoryQueue int64 HSTS bool HSTSBehindProxy bool HSTSIncludeSubdomains bool HSTSMaxAge int64 HTTP2 bool Keepalive int LBMethod string LocationSnippets []string MainAccessLogOff bool MainErrorLogLevel string MainHTTPSnippets []string MainKeepaliveRequests int64 MainKeepaliveTimeout string MainLogFormat []string MainLogFormatEscaping string MainMainSnippets []string MainOpenTracingEnabled bool MainOpenTracingLoadModule bool MainOpenTracingTracer string MainOpenTracingTracerConfig string MainServerNamesHashBucketSize string MainServerNamesHashMaxSize string MainStreamLogFormat []string MainStreamLogFormatEscaping string MainStreamSnippets []string MainMapHashBucketSize string MainMapHashMaxSize string MainWorkerConnections string MainWorkerCPUAffinity string MainWorkerProcesses string MainWorkerRlimitNofile string MainWorkerShutdownTimeout string MaxConns int MaxFails int AppProtectEnable string AppProtectPolicy string AppProtectLogConf string AppProtectLogEnable string MainAppProtectFailureModeAction string MainAppProtectCompressedRequestsAction string MainAppProtectCookieSeed string MainAppProtectCPUThresholds string MainAppProtectPhysicalMemoryThresholds string MainAppProtectReconnectPeriod string AppProtectDosResource string MainAppProtectDosLogFormat []string MainAppProtectDosLogFormatEscaping string MainAppProtectDosArbFqdn string ProxyBuffering bool ProxyBuffers string ProxyBufferSize string ProxyConnectTimeout string ProxyHideHeaders []string ProxyMaxTempFileSize string ProxyPassHeaders []string ProxyProtocol bool ProxyReadTimeout string ProxySendTimeout string RedirectToHTTPS bool ResolverAddresses []string ResolverIPV6 bool ResolverTimeout string ResolverValid string ServerSnippets []string ServerTokens string SlowStart string SSLRedirect bool UpstreamZoneSize string VariablesHashBucketSize uint64 VariablesHashMaxSize uint64 RealIPHeader string RealIPRecursive bool SetRealIPFrom []string MainServerSSLCiphers string MainServerSSLDHParam string MainServerSSLDHParamFileContent *string MainServerSSLPreferServerCiphers bool MainServerSSLProtocols string IngressTemplate *string VirtualServerTemplate *string MainTemplate *string JWTKey string JWTLoginURL string JWTRealm string JWTToken string BasicAuthSecret string BasicAuthRealm string Ports []int SSLPorts []int SpiffeServerCerts bool }
ConfigParams holds NGINX configuration parameters that affect the main NGINX config as well as configs for Ingress resources.
func NewDefaultConfigParams ¶
func NewDefaultConfigParams(isPlus bool) *ConfigParams
NewDefaultConfigParams creates a ConfigParams with default values.
type GlobalConfigParams ¶
GlobalConfigParams holds global configuration parameters. For now, it only holds listeners. GlobalConfigParams should replace ConfigParams in the future.
func NewDefaultGlobalConfigParams ¶
func NewDefaultGlobalConfigParams() *GlobalConfigParams
NewDefaultGlobalConfigParams creates a GlobalConfigParams with default values.
type StaticConfigParams ¶
type StaticConfigParams struct { DisableIPV6 bool DefaultHTTPListenerPort int DefaultHTTPSListenerPort int HealthStatus bool HealthStatusURI string NginxStatus bool NginxStatusAllowCIDRs []string NginxStatusPort int StubStatusOverUnixSocketForOSS bool TLSPassthrough bool TLSPassthroughPort int EnableSnippets bool NginxServiceMesh bool EnableInternalRoutes bool MainAppProtectLoadModule bool MainAppProtectDosLoadModule bool InternalRouteServerName string EnableLatencyMetrics bool EnableOIDC bool SSLRejectHandshake bool EnableCertManager bool }
StaticConfigParams holds immutable NGINX configuration parameters that affect the main NGINX config.
Click to show internal directories.
Click to hide internal directories.