Closed ebozduman closed 6 years ago
sdkEndpoint
endpoint := os.Getenv("SERVER_ENDPOINT") accessKey := os.Getenv("ACCESS_KEY") secretKey := os.Getenv("SECRET_KEY") secure := os.Getenv("ENABLE_HTTPS")sdkEndpoint := "http://" + endpoint if secure == "1" { sdkEndpoint = "https://" }
sdkEndpoint
setting is missing the host info when secure option is turned on (environment variable ENABLE_HTTPS = 1)