mirror of
https://github.com/pomerium/pomerium.git
synced 2025-06-06 12:52:53 +02:00
config: add CertificateFiles to FileWatcherSource list (#1878)
This commit is contained in:
parent
963399b53d
commit
9fd58f9b8a
1 changed files with 5 additions and 0 deletions
|
@ -186,6 +186,11 @@ func (src *FileWatcherSource) check(cfg *Config) {
|
||||||
cfg.Options.KeyFile,
|
cfg.Options.KeyFile,
|
||||||
cfg.Options.PolicyFile,
|
cfg.Options.PolicyFile,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
for _, pair := range cfg.Options.CertificateFiles {
|
||||||
|
fs = append(fs, pair.CertFile, pair.KeyFile)
|
||||||
|
}
|
||||||
|
|
||||||
for _, f := range fs {
|
for _, f := range fs {
|
||||||
_, _ = h.Write([]byte{0})
|
_, _ = h.Write([]byte{0})
|
||||||
bs, err := ioutil.ReadFile(f)
|
bs, err := ioutil.ReadFile(f)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue