Feature/registration interval config (#50)

* Add envvar support for default expiration interval

* Move envvars to config file, finish work, and add description of envvars to Readme

* Set expires value to MIN_EXPIRES when the retrieved value is lower than it or not parseable
This commit is contained in:
javibookline
2024-01-15 13:15:14 -05:00
committed by GitHub
parent 612226cea1
commit c1f2a5fa45
3 changed files with 16 additions and 4 deletions

View File

@@ -26,6 +26,8 @@ Configuration is provided via environment variables:
|EXPIRES_INTERVAL| servers expire |no|
|JWT_SECRET| secret for signing JWT token |yes|
|ENCRYPTION_SECRET| secret for credential encryption(JWT_SECRET is deprecated) |yes|
|JAMBONES_REGBOT_DEFAULT_EXPIRES_INTERVAL| default expire value for outbound registration in seconds (default 3600) |no|
|JAMBONES_REGBOT_MIN_EXPIRES_INTERVAL| minimum expire value for outbound registration in seconds (default 30) |no|
## Registrar database