How do I configure environment variables in Kumomta? I need to include the username and password in the Lua file.
Hey there @kindhearted-deer, while we would like to respond to every question raised here, the frequency and nature of your questions are far beyond what we at Kumo Corp can support without financial support from your organization.
You may continue to ask questions in the hope that someone from the broader community will help, but you should expect that Kumo Corp will not spend any time beyond a cursory glance to see if your questions are well-qualified and can be easily dealt with.
Lua has an os.getenv() function.
For example:
local trusted_hosts = os.getenv("KUMOMTA_TRUSTED_HOSTS") or "127.0.0.1"
Ok. Thanks for the update
Would this approach work when setting up the environment configuration variables for Vault (e.g. VAULT_ADDR and VAULT_TOKEN) in the init.lua file?
Haven’t tested it personally but there’s no reason it wouldn’t.