Configure environment variables and secrets | NodeFlux.eu Docs

Keep bot tokens, API keys, and connection strings out of your source code.

Steps

  1. List the configuration values your application needs, such as PORT, BOTTOKEN, DATABASEURL, or a signing secret.
  2. Add them through the service configuration or startup environment controls available in the manager.
  3. Restart the service after changing configuration, then confirm in logs that required values are present without printing the values themselves.
  4. Rotate a secret immediately if it was committed to a repository, pasted in chat, or shown in a screenshot.

Notes

Warning

Never send tokens, API keys, passwords, or full database connection strings to support unless a secure support process specifically requests them.