# Global configuration Nodes Help

**URL:** <https://discourse.nodered.org/t/global-configuration-nodes-help/41501>\
**Category:** General\
**Created:** [23 February 2021 16:08 UTC](https://discourse.nodered.org/t/global-configuration-nodes-help/41501 "2021-02-23T16:08:03Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![mich3000](https://avatars.discourse-cdn.com/v4/letter/m/a87d85/32.png) [@mich3000](https://discourse.nodered.org/u/mich3000)\
**Post date:** [23 February 2021 16:08 UTC](https://discourse.nodered.org/t/global-configuration-nodes-help/41501/1 "2021-02-23T16:08:03Z")

</div>

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?

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/7/0/70c2eaab28f9127c5bdbe883f1b8dda0b0e40c45.png)

Thank for your hel

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [23 February 2021 21:17 UTC](https://discourse.nodered.org/t/global-configuration-nodes-help/41501/2 "2021-02-23T21:17:34Z")

</div>

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}}`.

---

<div class="post-metadata">

**Author:** ![d0d04m3](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/d0d04m3/32/19965_2.png) [@d0d04m3](https://discourse.nodered.org/u/d0d04m3)\
**Post date:** [11 March 2021 14:26 UTC](https://discourse.nodered.org/t/global-configuration-nodes-help/41501/3 "2021-03-11T14:26:12Z")

</div>

> [@TotallyInformation](#):
>
> 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}}` .

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

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [11 March 2021 15:23 UTC](https://discourse.nodered.org/t/global-configuration-nodes-help/41501/4 "2021-03-11T15:23:09Z")

</div>

I think he meant `${ENV_VAR_NAME}` as per [Using environment variables : Node-RED](https://nodered.org/docs/user-guide/environment-variables)

---

<div class="post-metadata">

**Author:** ![d0d04m3](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/d0d04m3/32/19965_2.png) [@d0d04m3](https://discourse.nodered.org/u/d0d04m3)\
**Post date:** [11 March 2021 15:31 UTC](https://discourse.nodered.org/t/global-configuration-nodes-help/41501/5 "2021-03-11T15:31:16Z")

</div>

but how it can changed dynamically

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [11 March 2021 15:34 UTC](https://discourse.nodered.org/t/global-configuration-nodes-help/41501/6 "2021-03-11T15:34:26Z")

</div>

It can't.

---

<div class="post-metadata">

**Author:** ![d0d04m3](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/d0d04m3/32/19965_2.png) [@d0d04m3](https://discourse.nodered.org/u/d0d04m3)\
**Post date:** [11 March 2021 15:38 UTC](https://discourse.nodered.org/t/global-configuration-nodes-help/41501/7 "2021-03-11T15:38:23Z")

</div>

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

> [@Edit nodes by API Methods, help me!](https://discourse.nodered.org/t/edit-nodes-by-api-methods-help-me/42474/3):
>
> ok I updated with PUT /flow/:id [ { "id": "9755354.1a5d8c8", "type": "tab", "label": "Test" }, { "id": "455936c5.4dc638", "type": "tab", "label": "Flow 2" }, { "id": "7d21e8fc.4809e8", "type": "persist-store", "filename": "./persistence.json", "interval": "60" }, { "id": "45b295b1.0045cc", "type": "function", "z": "9755354.1a5d8c8", "name": "request", …

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [10 May 2021 15:39 UTC](https://discourse.nodered.org/t/global-configuration-nodes-help/41501/8 "2021-05-10T15:39:23Z")

</div>

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