The Hanko backend can also configured using using environment variables.
Environment variables have higher precedence than configuration via file (i.e. if provided, the values provided overwrite the values
given in the configuration file - multivalued options, like arrays, are also not merged but overwritten entirely).
To set environment variables, join (nested) configuration keys by _ (underscore) and uppercase the keys, i.e. for
service.name use
Keys that themselves consist of multiple words that are separated by an underscore are provided in the same way, i.e. for email.require_verification use:
Values for multivalued options, like arrays, where values are "primitives" (i.e. not themselves complex structures) must be provided in a comma separated list, e.g. for server.webauthn.relying_party.origins use:
Some configuration options further require a special format because their values are complex. One such example is the webhooks.hooks option for configuring Webhooks. To configure this option via environment variables you must specify hooks in the following format:
To find out whether a configuration option requires a special format consult its in-depth description in the reference.