blob: 710eb54dd2ba7bb02121a749996f56594cc59288 [file] [log] [blame]
// Licensed to the Apache Software Foundation (ASF) under one or more contributor
// license agreements; and to You under the Apache License, Version 2.0.
function getInsecureFlag () {
return process.env['__OW_INSECURE'] === 'true'
}
function autoOptions () {
const options = {}
if (getInsecureFlag()) {
options.ignore_certs = true
options.apigw_token = true
}
return options
}
module.exports = {
getInsecureFlag: getInsecureFlag,
autoOptions: autoOptions
}