Last active
August 29, 2015 14:19
-
-
Save cbess/0c2268886b2b6d3bfd35 to your computer and use it in GitHub Desktop.
hapi https
This file contains hidden or 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 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