configs/fullconfig.toml (43 lines of code) (raw):
# config demo
[Server]
# Optional, the default value is 2025.
HttpPort = 2025
# Optional, the default value is false
DisableSSRFToken = false
# Optional, the default value is ["X-KMS-Token", "X-Vault-Token"]
SSRFHeaders = ["X-Vault-Token"]
# Optional, the default value is ["KMS_TOKEN", "KMS_SESSION_TOKEN", "KMS_CONTAINER_AUTHORIZATION_TOKEN"]
SSRFEnvVariables = ["KMS_TOKEN"]
# Optional, the default value is "/v1/"
PathPrefix = "/v1/"
# Optional, the default value is 800
MaxConn = 800
# Optional, the default value is 0
ResponseType = 0
# Optional, the default value is true
IgnoreTransientErrors = true
[Kms]
# Optional, the default value is cn-hangzhou
Region = "cn-hangzhou"
# Optional, the default value is kms.cn-hangzhou.aliyuncs.com
Endpoint = "kms.cn-hangzhou.aliyuncs.com"
# Optional, the default value is "", just instance gateway need
CaFilePath = ""
[Cache]
# Optional, the default value is InMemory
CacheType = "InMemory"
# Optional, the default value is 1000
CacheSize = 1000
# Optional, the default value is 300
TtlSeconds = 300
# Optional, the default value is true
EnableLRU = false
[Log]
# Optional, the default value is Debug
LogLevel = "Debug"
# Optional, the default value is ./logs/
LogPath = "./logs/"
# Optional, the default value is 100
MaxSize = 100
# Optional, the default value is 2
MaxBackups = 2