antongolub/npm-registry-firewall

View on GitHub
config.json

Summary

Maintainability
Test Coverage
{
  "server": {
    "host": "localhost",
    "port": 3000,
    "secure": {
      "cert": "ssl/cert.pem",
      "key": "ssl/key.pem"
    },
    "_healthcheck": null
  },
  "log": {
    "level": "debug"
  },
  "cache": {
    "ttl": 5
  },
  "firewall": {
    "/registry": {
      "registry": "https://registry.npmjs.org",
      "rules": [
        {
          "plugin": [["npm-registry-firewall/audit", {
            "critical": "deny"
          }]]
        }
      ]
    }
  }
}