(cobra) Add TLS options to all cobra commands and classes. Add example to the doc.

This commit is contained in:
Benjamin Sergeant
2019-12-19 20:49:28 -08:00
parent 4e240e4992
commit 9347664622
21 changed files with 295 additions and 76 deletions

View File

@ -43,7 +43,8 @@ namespace ix
int redisPort,
const std::string& redisPassword,
bool verbose,
const std::string& appsConfigPath)
const std::string& appsConfigPath,
const SocketTLSOptions& socketTLSOptions)
{
snake::AppConfig appConfig;
appConfig.port = port;
@ -51,6 +52,7 @@ namespace ix
appConfig.verbose = verbose;
appConfig.redisPort = redisPort;
appConfig.redisPassword = redisPassword;
appConfig.socketTLSOptions = socketTLSOptions;
// Parse config file
auto str = readAsString(appsConfigPath);