Add ENV from docker-compose in to openid section in recipe #13705
-
I would like to add Add ENV from docker-compose in to openid section in recipe. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Nice question! Orchard already supports reading configuration items from recipe. For example you can call You can also provide any config value from env variables in asp.net out of the box. So here you can configure docker-compose env key as |
Beta Was this translation helpful? Give feedback.
Nice question! Orchard already supports reading configuration items from recipe.
For example you can call
[js: configuration('MyConfigSec:MyConfigKey', '')]
to read value from config for current tenant. Documented here https://docs.orchardcore.net/en/main/docs/reference/modules/Setup/#recipe-configuration-keysYou can also provide any config value from env variables in asp.net out of the box.
So here you can configure docker-compose env key as
OrchardCore__MyConfigSec__MyConfigKey
(for all tenants) OROrchardCore__Default__MyConfigSec__MyConfigKey
(for specific tenant)