harmony-api
harmony-api copied to clipboard
Add HTTPS server
Configuration example:
"http_server": {
"type": "https",
"port": 8891,
"cert": "/path/to/fullchain.pem",
"key": "/path/to/privkey.pem"
}
type: "http" | "https" (default: "http") port: (default 8282) cert: path to server certificate key : path to private key
If "http_server" key is missing, no HTTP server will be started. If "type" == "https" && ("cert" || "key" is missing or corrupted) an error will be thrown.
This is great, thanks! Just a couple of notes.
- Could you make it so
enableHTTPserverstill enables the http server. Otherwise it will break current installs after an upgrade. This is an easy way to keep some backwards compat. - Could you document this in the README.
Sure, no problem. I'm glad you like it.