mirror of https://github.com/yandex/odyssey.git
odissey: add server tls_mode config parameter
This commit is contained in:
parent
2a50c8ce21
commit
84c6c15ea1
|
@ -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;
|
||||
|
|
|
@ -30,6 +30,7 @@ odissey {
|
|||
server "default" {
|
||||
host "127.0.0.1"
|
||||
port 5432
|
||||
tls_mode "disable"
|
||||
}
|
||||
|
||||
routing {
|
||||
|
|
Loading…
Reference in New Issue