mirror of
https://github.com/pomerium/pomerium.git
synced 2025-08-03 08:50:42 +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)
|
||||
defer logMgr.Close()
|
||||
|
||||
// trigger changes when underlying files are changed
|
||||
src = config.NewFileWatcherSource(src)
|
||||
|
||||
src, err = autocert.New(src)
|
||||
if err != nil {
|
||||
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)
|
||||
http.DefaultTransport = config.NewHTTPTransport(src)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue