mirror of https://github.com/yandex/odyssey.git
odissey: add server tls_cert_file config parameter
This commit is contained in:
parent
0bc8a9b9e4
commit
95bfcc2180
|
@ -336,6 +336,12 @@ od_configparse_server(od_config_t *config)
|
|||
return -1;
|
||||
server->tls_key_file = tk->v.string;
|
||||
continue;
|
||||
/* tls_cert_file */
|
||||
case OD_LTLS_CERT_FILE:
|
||||
if (od_confignext(config, OD_LSTRING, &tk) == -1)
|
||||
return -1;
|
||||
server->tls_cert_file = tk->v.string;
|
||||
continue;
|
||||
case OD_LEOF:
|
||||
od_configerror(config, tk, "unexpected end of config file");
|
||||
return -1;
|
||||
|
|
|
@ -38,6 +38,7 @@ struct od_schemeserver_t {
|
|||
char *tls_mode;
|
||||
char *tls_ca_file;
|
||||
char *tls_key_file;
|
||||
char *tls_cert_file;
|
||||
int is_default;
|
||||
od_list_t link;
|
||||
};
|
||||
|
|
|
@ -33,6 +33,7 @@ odissey {
|
|||
tls_mode "disable"
|
||||
# tls_ca_file ""
|
||||
# tls_key_file ""
|
||||
# tls_cert_file ""
|
||||
}
|
||||
|
||||
routing {
|
||||
|
|
Loading…
Reference in New Issue