hydra-express icon indicating copy to clipboard operation
hydra-express copied to clipboard

https server implementation

Open krysalead opened this issue 6 years ago • 0 comments

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.

krysalead avatar Jul 31 '18 06:07 krysalead