mirror of https://github.com/yandex/odyssey.git
odissey: add server tls_ca_file config parameter
This commit is contained in:
parent
84c6c15ea1
commit
4639b6d7a1
|
@ -324,6 +324,12 @@ od_configparse_server(od_config_t *config)
|
|||
return -1;
|
||||
server->tls_mode = tk->v.string;
|
||||
continue;
|
||||
/* tls_ca_file */
|
||||
case OD_LTLS_CA_FILE:
|
||||
if (od_confignext(config, OD_LSTRING, &tk) == -1)
|
||||
return -1;
|
||||
server->tls_ca_file = tk->v.string;
|
||||
continue;
|
||||
case OD_LEOF:
|
||||
od_configerror(config, tk, "unexpected end of config file");
|
||||
return -1;
|
||||
|
|
|
@ -35,6 +35,8 @@ struct od_schemeserver_t {
|
|||
char *name;
|
||||
char *host;
|
||||
int port;
|
||||
char *tls_mode;
|
||||
char *tls_ca_file;
|
||||
int is_default;
|
||||
od_list_t link;
|
||||
};
|
||||
|
|
|
@ -31,6 +31,7 @@ odissey {
|
|||
host "127.0.0.1"
|
||||
port 5432
|
||||
tls_mode "disable"
|
||||
# tls_ca_file ""
|
||||
}
|
||||
|
||||
routing {
|
||||
|
|
Loading…
Reference in New Issue