1.0.0 • Published 5 years ago

acme-http-01-redis v1.0.0

Weekly downloads
9
License
MIT
Repository
github
Last release
5 years ago

acme-http-01-redis

Redis-backed challenge strategy for greenlock-express.js (and greenlock.js).

Install

npm install --save acme-http-01-redis

Requirements

For both local and production environments, you'll need to have a Redis server running.

Integration

greenlock-express.js

const greenlock = require("greenlock-express");
const redis = require("redis");
const redisConfig = { host: REDIS_HOST, password: REDIS_PASSWORD, port: REDIS_PORT };
const redisClient = redis.createClient(redisConfig);

const challenge = require("acme-http-01-redis").create({
  redisClient, // If omitted, a Redis client will be created using 127.0.0.1 as the host
  hashKey: "acme-challenges", // Optional--the default hash key is "acme-challenges"
});

const glx = greenlock.create({
  challenges: { "http-01": challenge },
  // plus the rest of your setup
}).listen(80, 443);

Testing

acme-http-01-redis is tested against the greenlock-challenge-test.

License

MIT

1.0.0

5 years ago

0.0.1-security

5 years ago