feat: add INSECURE_SKIP_VERIFY_ENABLED option (close #8)

This commit is contained in:
Pluto
2023-10-07 14:46:28 +08:00
parent b4b4acc288
commit dcb94bdedb
3 changed files with 11 additions and 1 deletions

View File

@@ -98,6 +98,8 @@ var SyncFrequency = GetOrDefault("SYNC_FREQUENCY", 10*60) // unit is second
var BatchUpdateEnabled = false
var BatchUpdateInterval = GetOrDefault("BATCH_UPDATE_INTERVAL", 5)
var InsecureSkipVerifyEnabled = os.Getenv("INSECURE_SKIP_VERIFY_ENABLED") == "true"
const (
RequestIdKey = "X-Oneapi-Request-Id"
)