Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

oauth_reverse_proxy

Package Overview
Dependencies
Maintainers
1
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

oauth_reverse_proxy - npm Package Compare versions

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 @@ {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc