Skip to content
Discussion options

You must be logged in to vote

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-keys

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 OrchardCore__MyConfigSec__MyConfigKey (for all tenants) OR OrchardCore__Default__MyConfigSec__MyConfigKey (for specific tenant)

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by vitalybrandes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants