mirror of
https://github.com/pomerium/pomerium.git
synced 2025-08-06 10:21:05 +02:00
move file change detection before autocert (#1793)
This commit is contained in:
parent
a4c7381eba
commit
0adb9e5dde
1 changed files with 3 additions and 3 deletions
|
@ -43,14 +43,14 @@ func Run(ctx context.Context, configFile string) error {
|
||||||
logMgr := config.NewLogManager(src)
|
logMgr := config.NewLogManager(src)
|
||||||
defer logMgr.Close()
|
defer logMgr.Close()
|
||||||
|
|
||||||
|
// trigger changes when underlying files are changed
|
||||||
|
src = config.NewFileWatcherSource(src)
|
||||||
|
|
||||||
src, err = autocert.New(src)
|
src, err = autocert.New(src)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
// trigger changes when underlying files are changed
|
|
||||||
src = config.NewFileWatcherSource(src)
|
|
||||||
|
|
||||||
// override the default http transport so we can use the custom CA in the TLS client config (#1570)
|
// override the default http transport so we can use the custom CA in the TLS client config (#1570)
|
||||||
http.DefaultTransport = config.NewHTTPTransport(src)
|
http.DefaultTransport = config.NewHTTPTransport(src)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue