first version

This commit is contained in:
Jay
2019-05-03 17:17:44 +08:00
parent 8a536a37d0
commit ce2eb1257f
12 changed files with 636 additions and 6 deletions
+8 -2
View File
@@ -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 {