Skip to content

Instantly share code, notes, and snippets.

@cbess
Last active August 29, 2015 14:19
Show Gist options
  • Save cbess/0c2268886b2b6d3bfd35 to your computer and use it in GitHub Desktop.
Save cbess/0c2268886b2b6d3bfd35 to your computer and use it in GitHub Desktop.
hapi https
var options = {
tls: {
key: fs.readFileSync(path.join(__dirname, "private/key/key.pem"), 'utf-8'),
cert: fs.readFileSync(path.join(__dirname, "private/key/certificate.pem"), 'utf-8')
}
};
var https = new hapi.Server("localhost", configuration["api-port"], options);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment