Skip to content

Commit

Permalink
MEDIUM: Add global ocsp-update keywords
Browse files Browse the repository at this point in the history
Added:
- ocsp-update.disable
- ocsp-update.httpproxy
- ocsp-update.maxdelay
- ocsp-update.mindelay
- ocs-update.mode
  • Loading branch information
hdurand0710 committed Jun 24, 2024
1 parent c75eaad commit f03e520
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions section-parsers.go
Original file line number Diff line number Diff line change
Expand Up @@ -436,6 +436,11 @@ func (p *configParser) getGlobalParser() *Parsers { //nolint: maintidx
addParser(parser, &sequence, &simple.Number{Name: "ssl-security-level"})
addParser(parser, &sequence, &parsers.HTTPErrCodes{})
addParser(parser, &sequence, &parsers.HTTPFailCodes{})
addParser(parser, &sequence, &simple.OnOff{Name: "ocsp-update.disable"})
addParser(parser, &sequence, &simple.Word{Name: "ocsp-update.httpproxy"})
addParser(parser, &sequence, &simple.Number{Name: "ocsp-update.mindelay"})
addParser(parser, &sequence, &simple.Number{Name: "ocsp-update.maxdelay"})
addParser(parser, &sequence, &simple.OnOff{Name: "ocsp-update.mode"})
// the ConfigSnippet must be at the end to parsers load order to ensure
// the overloading of any option has been declared previously
addParser(parser, &sequence, &parsers.ConfigSnippet{})
Expand Down
5 changes: 5 additions & 0 deletions tests/configs/haproxy.cfg.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,11 @@ global
tune.ssl.default-dh-param 2048
ssl-default-bind-client-sigalgs RSA+SHA256
ssl-default-bind-sigalgs ECDSA+SHA256:RSA+SHA256
ocsp-update.disable off
ocsp-update.httpproxy 127.0.0.1:123
ocsp-update.maxdelay 10
ocsp-update.mindelay 7
ocsp-update.mode on
###_config-snippet_### END
# random comment after snippet
Expand Down

0 comments on commit f03e520

Please sign in to comment.