mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-02 03:27:54 +00:00
Allow setting the advertise address via an environment variable.
Fixes #581
This commit is contained in:
@@ -147,6 +147,10 @@ func (c *ServerCommand) Run(args []string) int {
|
||||
coreConfig.AdvertiseAddr = config.HABackend.AdvertiseAddr
|
||||
}
|
||||
|
||||
if envAA := os.Getenv("VAULT_ADVERTISE_ADDR"); envAA != "" {
|
||||
coreConfig.AdvertiseAddr = envAA
|
||||
}
|
||||
|
||||
// Attempt to detect the advertise address possible
|
||||
var detect physical.AdvertiseDetect
|
||||
var ok bool
|
||||
|
||||
Reference in New Issue
Block a user