change SSLConfCommand to SSLConfCommands
This commit is contained in:
parent
fecbdcc7e8
commit
3c5ae4cf06
2 changed files with 5 additions and 5 deletions
|
@ -339,7 +339,7 @@ type Configuration struct {
|
|||
|
||||
// Allows configuration of arbitrary OpenSSL configuration
|
||||
// http://nginx.org/en/docs/http/ngx_http_ssl_module.html#ssl_conf_command
|
||||
SSLConfCommand []string `json:"ssl-conf-command,omitempty"`
|
||||
SSLConfCommands []string `json:"ssl-conf-command,omitempty"`
|
||||
|
||||
// Enabled ciphers list to enabled. The ciphers are specified in the format understood by
|
||||
// the OpenSSL library
|
||||
|
@ -777,7 +777,7 @@ func NewDefault() Configuration {
|
|||
defBlockEntity := make([]string, 0)
|
||||
defNginxStatusIpv4Whitelist := make([]string, 0)
|
||||
defNginxStatusIpv6Whitelist := make([]string, 0)
|
||||
defSSLConfCommand := make([]string, 0)
|
||||
defSSLConfCommands := make([]string, 0)
|
||||
defResponseHeaders := make([]string, 0)
|
||||
defIPCIDR = append(defIPCIDR, "0.0.0.0/0")
|
||||
defNginxStatusIpv4Whitelist = append(defNginxStatusIpv4Whitelist, "127.0.0.1")
|
||||
|
@ -847,7 +847,7 @@ func NewDefault() Configuration {
|
|||
ReusePort: true,
|
||||
ShowServerTokens: false,
|
||||
SSLBufferSize: sslBufferSize,
|
||||
SSLConfCommand: defSSLConfCommand,
|
||||
SSLConfCommands: defSSLConfCommands,
|
||||
SSLCiphers: sslCiphers,
|
||||
SSLECDHCurve: "auto",
|
||||
SSLProtocols: sslProtocols,
|
||||
|
|
|
@ -450,9 +450,9 @@ http {
|
|||
# slightly reduce the time-to-first-byte
|
||||
ssl_buffer_size {{ $cfg.SSLBufferSize }};
|
||||
|
||||
{{ if gt (len $cfg.SSLConfCommand) 0 }}
|
||||
{{ if gt (len $cfg.SSLConfCommands) 0 }}
|
||||
# allow to specify specific openssl commands
|
||||
{{ range $sslConfCmd := $cfg.SSLConfCommand }}
|
||||
{{ range $sslConfCmd := $cfg.SSLConfCommands }}
|
||||
ssl_conf_command {{ $sslConfCmd }};
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
|
Loading…
Reference in a new issue