first version
This commit is contained in:
@@ -13,8 +13,9 @@ import (
|
||||
|
||||
// Config -
|
||||
type Config struct {
|
||||
Port int `yaml:"port"`
|
||||
AWS struct {
|
||||
Port int `yaml:"port"`
|
||||
VerifyValue string `yaml:"verify_value"`
|
||||
AWS struct {
|
||||
SharedConfig bool `yaml:"shared_config"`
|
||||
SharedName string `yaml:"shared_name"`
|
||||
AccessKey string `yaml:"access_key"`
|
||||
@@ -67,6 +68,11 @@ func envOverride() {
|
||||
}
|
||||
}
|
||||
|
||||
str = os.Getenv("VERIFY_VALUE")
|
||||
if len(str) > 0 {
|
||||
conf.VerifyValue = str
|
||||
}
|
||||
|
||||
// set aws use shared config
|
||||
str = os.Getenv("AWS_SHARED_CONF")
|
||||
if len(str) > 0 {
|
||||
|
||||
Reference in New Issue
Block a user