hydra-express
hydra-express copied to clipboard
https server implementation
Hi,
This PR allows to create a HTTPS server with express Unit test is disabled because it needs to have certificat I can't commit to git.
Documentation
Activate HTTPS
{
"hydra": {
"serviceName": "echo-service",
"serviceIP": "127.0.0.1",
"servicePort": 3000,
"serviceType": "",
"serviceDescription": "",
"serviceProtocol": "https",
"sslKey": "client-key.pem",
"sslCert": "client-cert.pem",
"redis": {
"url": "127.0.0.1",
"port": 6379,
"db": 1
}
}
}
That's all, it will register your server as secured to be called using https and start a server on the servicePort but accepting only encrypted requests.