Global configuration Nodes Help

I am using node-red-contrib-auth node and its config.

Is it possible to set value of secret key from variable and not hardcoded?
Is this specific only for this node config or all global configuration nodes?

Thank for your hel

Config nodes are just nodes with a special type variable set so that they don't appear in the normal flow and can be shared between normal nodes (that are configured to use them).

So they can contain any type of input that you can use in a node. In this case the author of the node has only allowed simple string input.

Thankfully, the core authors have provided a way that should work with any node, you can use an environment variable by putting the variable name in {{ENVNAME}}.

2 Likes

How is that
If possible, an applied example
Because it did not work for me

I think he meant ${ENV_VAR_NAME} as per Using environment variables : Node-RED

1 Like

but how it can changed dynamically

It can't.

yes I cant
Is there any way to change it except using env ?

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