mirror of
https://github.com/pomerium/pomerium.git
synced 2025-04-29 02:16:28 +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.PolicyFile,
|
||||
}
|
||||
|
||||
for _, pair := range cfg.Options.CertificateFiles {
|
||||
fs = append(fs, pair.CertFile, pair.KeyFile)
|
||||
}
|
||||
|
||||
for _, f := range fs {
|
||||
_, _ = h.Write([]byte{0})
|
||||
bs, err := ioutil.ReadFile(f)
|
||||
|
|
Loading…
Add table
Reference in a new issue