Skip to content
Discussion options

You must be logged in to vote

Tenant pre-configuration

Per the docs, a tenant can be pre-configured from the host appsettings.json:

{
  "OrchardCore": {
    "MyTenant": {
      "State": "Uninitialized",
      "RequestUrlPrefix": "mytenant",
      "ConnectionString": "...",
      "DatabaseProvider": "SqlConnection",
      "RecipeName": "Blog"
    }
  }
}

State: "Uninitialized" is what makes the tenant appear at all — ShellSettingsManager only picks up sections under OrchardCore that parse as a valid TenantState.

What each key hides on the setup screen

From SetupController.CopyShellSettingsValues / HasPresetDatabaseConfiguration and Views/Setup/Index.cshtml:

Key Effect
RecipeName Recipe dropdown hidden. Recipe is…

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@weirdyang
Comment options

@Piedone
Comment options

@weirdyang
Comment options

Comment options

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