This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
Usage example: | |
var redisConfig = { | |
masterName: "mymaster", | |
sentinels: [ | |
{host: "127.0.0.1", port: 26384}, | |
{host: "127.0.0.1", port: 26383}, | |
{host: "127.0.0.1", port: 26382} | |
], | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var domain = require('domain'); | |
var http = require('http'); | |
var respond = function(req, res){ | |
var httpOptions = { | |
host : "127.0.0.2", | |
port : 50, | |
path : "/", | |
method : 'GET' | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Heavily inspired by the PHP implementation made by Ahmad Amarullah (available at http://code.google.com/p/php-mail-domain-signer/), with the help of http://phpjs.org/. | |
Setup: | |
In dkim-raw-email.js, change the location of your private key and the associatedDomain accordingly to your needs. | |
Example of use (using aws-lib, https://github.com/mirkok/aws-lib): |