WebsocketCppService: add TLS configuration

Signed-off-by: Roman Ondráček's avatarRoman Ondráček <ondracek.roman@centrum.cz>
parent 56c0525a
......@@ -17,19 +17,39 @@
},
"instance": {
"type": "string",
"description": "Recomended shape::WebsocketCppService-(id)",
"default": "shape::WebsocketCppService-1"
"description": "Name of instance.",
"default": "shape::WebsocketCppService"
},
"WebsocketPort": {
"type": "integer",
"description": "Number of port",
"default": "1338"
"default": 1338
},
"acceptOnlyLocalhost": {
"type": "boolean",
"description": "accepts only connections from localhost",
"default": "false"
},
"tlsEnabled": {
"type": "boolean",
"description": "TLS enablement",
"default": false
},
"tlsMode": {
"type": "string",
"description": "TLS mode",
"default": "intermediate"
},
"certificate": {
"type": "string",
"description": "Certificate path",
"default": ""
},
"privateKey": {
"type": "string",
"description": "Private key path",
"default": ""
},
"RequiredInterfaces": {
"type": "array",
"description": "Array of required interfaces.",
......
......@@ -2,5 +2,9 @@
"component": "shape::WebsocketCppService",
"instance": "WebsocketCppService",
"WebsocketPort": 1338,
"acceptOnlyLocalhost": false
"acceptOnlyLocalhost": false,
"tlsEnabled": false,
"tlsMode": "intermediate",
"certificate": "/etc/iqrf-gateway-daemon/certs/core/cert.pem",
"privateKey": "/etc/iqrf-gateway-daemon/certs/core/privkey.pem"
}
......@@ -2,5 +2,9 @@
"component": "shape::WebsocketCppService",
"instance": "WebsocketCppService_Monitor",
"WebsocketPort": 1438,
"acceptOnlyLocalhost": false
"acceptOnlyLocalhost": false,
"tlsEnabled": false,
"tlsMode": "intermediate",
"certificate": "/etc/iqrf-gateway-daemon/certs/core/cert.pem",
"privateKey": "/etc/iqrf-gateway-daemon/certs/core/privkey.pem"
}
{
"component": "shape::WebsocketCppService",
"instance": "WebsocketCppService",
"WebsocketPort": 1338
"WebsocketPort": 1338,
"tlsEnabled": false,
"tlsMode": "intermediate",
"certificate": "",
"privateKey": ""
}
{
"component": "shape::WebsocketCppService",
"instance": "WebsocketCppService_Monitor",
"WebsocketPort": 1438
"WebsocketPort": 1438,
"tlsEnabled": false,
"tlsMode": "intermediate",
"certificate": "",
"privateKey": ""
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment