UNPKG

cozy-proxy

Version:

Cozy Proxy redirects requests properly to the right application of the Cozy platform depending on given path. It also handles authentication to the Cozy for users and devices.

93 lines (92 loc) 3.19 kB
{ "name": "cozy-proxy", "version": "2.5.19", "author": "Cozy Cloud <contact@cozycloud.cc> (http://cozycloud.cc)", "license": "AGPL-3.0", "repository": { "type": "git", "url": "https://github.com/cozy/cozy-proxy.git" }, "engines": [ "node >= 0.8.0" ], "main": "build/server.js", "dependencies": { "americano": "0.4.5", "async": "1.5.2", "axon": "0.6.1", "cookie-parser": "1.4.3", "cookie-session": "1.2.0", "cozy-notifications-helper": "1.1.0", "cozy-url-sdk": "1.0.2", "cozydb": "0.1.12", "graceful-fs": "4.1.4", "http-proxy": "1.14.0", "limiter": "1.1.0", "locale": "0.1.0", "lockedpath": "0.1.1", "lodash": "4.13.1", "node-polyglot": "2.0.0", "passport": "0.3.2", "passport-hotp": "0.0.1", "passport-local": "1.0.0", "passport-totp": "0.0.2", "printit": "0.1.18", "pug-runtime": "2.0.0", "randomstring": "1.1.5", "request-json": "0.5.6", "send": "0.14.1", "whatwg-fetch": "^2.0.1" }, "devDependencies": { "chai": "3.5.0", "coffee-coverage": "1.0.1", "coffee-script": "1.10.0", "coffeelint": "1.15.7", "fetch-mock": "^5.5.0", "jade": "1.11.0", "jade2commonjs": "cozy/jade2commonjs", "jsdom": "9.6.0", "jsdom-global": "2.1.0", "mocha": "2.5.3", "nock": "8.0.0", "node-mocks-http": "1.5.2", "nodemon": "1.9.2", "npm-run-all": "1.7.0", "rewire": "2.5.1", "sinon": "1.17.4", "svg-sprite-loader": "0.0.29", "webpack": "1.12.15", "xmlhttprequest": "1.8.0" }, "contributors": [ "Zoe Bellot", "Romain Foucault", "Frank Rousseau", "Joseph Silvestre", "Brendan Abolivier" ], "scripts": { "build": "npm-run-all --parallel 'build:*'", "build:server": "coffee -cb --output build/server server && coffee -cb --output build/ server.coffee", "build:client": "cd client && env OPTIMIZE=true webpack", "build:views": "jade2commonjs --no-debug --out build/server/views --ignore '**/_*.jade' server/views", "clean": "rm -rf build", "copy:locales": "mkdir -p build/server/locales && cp -r server/locales/*.json build/server/locales/", "lint": "coffeelint -f coffeelint.json --quiet -r server server.coffee -r client/app", "prebuild": "npm-run-all clean tx lint", "prebuild:client": "cd client && npm update", "prewatch:client": "npm run prebuild:client", "postbuild": "npm-run-all --parallel copy:*", "postinstall": "node postinstall.js", "start": "node build/server.js", "test": "npm-run-all test:*", "test:server": "env NODE_ENV=test PORT=4444 mocha --reporter spec --compilers coffee:coffee-script/register", "test:client": "mocha client/test/**/* --bail --reporter spec --compilers coffee:coffee-script/register --colors", "test:client:watch": "mocha --watch client/test/**/* --bail --reporter spec --compilers coffee:coffee-script/register --colors", "tx": "tx pull --all || true", "watch": "npm-run-all --parallel 'watch:*'", "watch:client": "cd client && webpack --display-modules --display-chunks --watch", "watch:server": "nodemon --debug --ignore client/ server.coffee" } }