Use Redis for DKIM keys, define any selector, auto-merge old keys to Redis and fallback to files

This commit is contained in:
andryyy
2017-05-05 10:35:27 +02:00
parent a790c2bdc0
commit 1501df6e42
4 changed files with 81 additions and 12 deletions

View File

@@ -29,6 +29,10 @@ require_once 'inc/lib/vendor/autoload.php';
$u2f = new u2flib_server\U2F('https://' . $_SERVER['SERVER_NAME']);
$tfa = new RobThree\Auth\TwoFactorAuth('mailcow UI');
// Redis
$redis = new Redis();
$redis->connect('redis-mailcow', 6379);
// PDO
// Calculate offset
$now = new DateTime();