odissey: add server tls_mode config parameter

This commit is contained in:
Dmitry Simonenko 2017-03-17 16:20:53 +03:00
parent 2a50c8ce21
commit 84c6c15ea1
2 changed files with 7 additions and 0 deletions

View File

@ -318,6 +318,12 @@ od_configparse_server(od_config_t *config)
return -1;
server->port = tk->v.num;
continue;
/* tls_mode */
case OD_LTLS_MODE:
if (od_confignext(config, OD_LSTRING, &tk) == -1)
return -1;
server->tls_mode = tk->v.string;
continue;
case OD_LEOF:
od_configerror(config, tk, "unexpected end of config file");
return -1;

View File

@ -30,6 +30,7 @@ odissey {
server "default" {
host "127.0.0.1"
port 5432
tls_mode "disable"
}
routing {