Skip to content
This repository was archived by the owner on Dec 11, 2024. It is now read-only.

Commit

Permalink
add yeti 'registar' section options expires_min/expires_max
Browse files Browse the repository at this point in the history
  • Loading branch information
furmur committed Jun 3, 2020
1 parent af84631 commit 35c0ae4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions server/src/node_cfg_providers/yeti_cfg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,8 @@ void yeti_cfg_provider::apply_cfg_node(cfg_t *in_cfg,
//registrar
c = cfg_getsec(y,"registrar");
add2hash(c,"registrar_enabled","enabled",out);
add2hash(c,"registrar_expires_min","expires_min",out);
add2hash(c,"registrar_expires_max","expires_max",out);
c = cfg_getsec(c, "redis");
add2hash(c,"registrar_redis_host","host",out);
add2hash(c,"registrar_redis_port","port",out);
Expand Down
2 changes: 2 additions & 0 deletions server/src/opts/yeti_opts.h
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,8 @@ cfg_opt_t sig_yeti_registrar_redis_opts[] = {

cfg_opt_t sig_yeti_registrar_opts[] = {
DCFG_BOOL(enabled),
DCFG_INT(expires_min),
DCFG_INT(expires_max),
DCFG_SEC(redis,sig_yeti_registrar_redis_opts,CFGF_NONE),
CFG_END()
};
Expand Down

0 comments on commit 35c0ae4

Please sign in to comment.