mirror of https://github.com/yandex/odyssey.git
odissey: add server tls_key_file config parameter
This commit is contained in:
parent
4639b6d7a1
commit
0bc8a9b9e4
|
@ -330,6 +330,12 @@ od_configparse_server(od_config_t *config)
|
|||
return -1;
|
||||
server->tls_ca_file = tk->v.string;
|
||||
continue;
|
||||
/* tls_key_file */
|
||||
case OD_LTLS_KEY_FILE:
|
||||
if (od_confignext(config, OD_LSTRING, &tk) == -1)
|
||||
return -1;
|
||||
server->tls_key_file = tk->v.string;
|
||||
continue;
|
||||
case OD_LEOF:
|
||||
od_configerror(config, tk, "unexpected end of config file");
|
||||
return -1;
|
||||
|
|
|
@ -37,6 +37,7 @@ struct od_schemeserver_t {
|
|||
int port;
|
||||
char *tls_mode;
|
||||
char *tls_ca_file;
|
||||
char *tls_key_file;
|
||||
int is_default;
|
||||
od_list_t link;
|
||||
};
|
||||
|
|
|
@ -18,7 +18,7 @@ odissey {
|
|||
nodelay yes
|
||||
# backlog 16
|
||||
# keepalive 7200
|
||||
# tls_mode "disable"
|
||||
tls_mode "disable"
|
||||
# tls_ca_file ""
|
||||
# tls_key_file ""
|
||||
# tls_cert_file ""
|
||||
|
@ -32,6 +32,7 @@ odissey {
|
|||
port 5432
|
||||
tls_mode "disable"
|
||||
# tls_ca_file ""
|
||||
# tls_key_file ""
|
||||
}
|
||||
|
||||
routing {
|
||||
|
|
Loading…
Reference in New Issue