oauth_reverse_proxy
Advanced tools
Comparing version 0.9.12 to 0.9.13
20
index.js
@@ -1,11 +0,1 @@ | ||
/** | ||
* If we're running as a Windows service, we'll have an environment variable | ||
* pointing to the correct working dir for the app. Update the working dir | ||
* before doing anything involving relative paths. | ||
*/ | ||
if (process.env.OAUTH_REVERSE_PROXY_HOME) { | ||
console.log("Changing home directory to " + process.env.OAUTH_REVERSE_PROXY_HOME); | ||
process.chdir(process.env.OAUTH_REVERSE_PROXY_HOME); | ||
} | ||
var oauth_reverse_proxy = require('./lib'); | ||
@@ -17,9 +7,9 @@ | ||
*/ | ||
var config_path = process.env.OAUTH_REVERSE_PROXY_CONFIG_PATH; | ||
if (!config_path) { | ||
var config_dir = process.env.OAUTH_REVERSE_PROXY_CONFIG_DIR; | ||
if (!config_dir) { | ||
var os = require('os').type().toLowerCase(); | ||
if (os.indexOf('windows') !== -1 || os.indexOf('cygwin') !== -1) { | ||
config_path = "C:\\ProgramData\\oauth_reverse_proxy\\config.d\\"; | ||
config_dir = "C:\\ProgramData\\oauth_reverse_proxy\\config.d\\"; | ||
} else { | ||
config_path = "/etc/oauth_reverse_proxy.d/"; | ||
config_dir = "/etc/oauth_reverse_proxy.d/"; | ||
} | ||
@@ -50,3 +40,3 @@ } | ||
// Create an oauth_reverse_proxy instance at our configured root dir. | ||
oauth_reverse_proxy.init(config_path, function(err, proxy) { | ||
oauth_reverse_proxy.init(config_dir, function(err, proxy) { | ||
// If we caught a fatal error creating the proxies, log it and pause briefly before exiting | ||
@@ -53,0 +43,0 @@ // to give Bunyan a chance to flush this error message. |
{ | ||
"name": "oauth_reverse_proxy", | ||
"description": "An OAuth 1.0a authenticating reverse proxy", | ||
"version": "0.9.12", | ||
"version": "0.9.13", | ||
"contributors": [ | ||
@@ -6,0 +6,0 @@ { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 2 instances in 1 package
24
15831242
3254