mirror of
https://github.com/pomerium/pomerium.git
synced 2025-05-18 03:27:16 +02:00
autocert: store certificates separately from config certificates (#1794)
This commit is contained in:
parent
70b4497595
commit
c90eda5622
8 changed files with 87 additions and 72 deletions
|
@ -11,20 +11,6 @@ import (
|
|||
"github.com/pomerium/pomerium/internal/fileutil"
|
||||
)
|
||||
|
||||
// Config holds pomerium configuration options.
|
||||
type Config struct {
|
||||
Options *Options
|
||||
}
|
||||
|
||||
// Clone creates a clone of the config.
|
||||
func (cfg *Config) Clone() *Config {
|
||||
newOptions := new(Options)
|
||||
*newOptions = *cfg.Options
|
||||
return &Config{
|
||||
Options: newOptions,
|
||||
}
|
||||
}
|
||||
|
||||
// A ChangeListener is called when configuration changes.
|
||||
type ChangeListener = func(*Config)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue