Set plugin configuration via environment variables

Tutor loads environment variables before loading plugins. Due to this, it is not possible to set a configuration variable for a plugin via environment variables.

For example, if we try to set the MFE_HOST config of mfe plugin with the TUTOR_MFE_HOST environment variable, it doesn’t work.

Indeed! Configuration management has historically always been a mess in Tutor. It was recently improved in this PR: refactor: clarify configuration management by regisb · Pull Request #537 · overhangio/tutor · GitHub I believe that this PR should resolve the issue that you are facing.

In master, I get:

TUTOR_MFE_HOST=pouac tutor config printvalue MFE_HOST
apps.local.overhang.io

In the maple branch, I get:

TUTOR_MFE_HOST=pouac tutor config printvalue MFE_HOST
pouac

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.