AdminUI configuration is set using environment variables. These can be setup in different forms, including a web.config file, a docker-compose.yml file or Azure appsettings.
AdminUI Configuration Settings (UI)
AuthorityUrlThe IdentityServer installation protecting AdminUIApiUrlThe AdminUI backend websiteUiUrlThe AdminUI frontend websiteAdminUIClientSecretThe AdminUI client shared secret value in plain textDataProtectionUsed for configuration of Cookie protection and peristence.Persistence- The type of persistence can be FileSystem or Database, these require different setup as shown belowType- FileSystemLocation- Location to persist keys- OR
Type- DatabaseDbProviderSupported types and their values are:SqlServerMySql(Note: AdminUI requires the MySQL settinglower_case_table_namesto befalse)PostgreSql
DataProtectionConnectionString- The connection string for the data protection database
-
ProtectionThe certficate or keyvault that will protect the cookies. The two available types are KeyVault and Certifcate. A Certificate can be provided by location or by thumbprint.Type- KeyVaultKeyIdentifier- The Azure KeyVault certificate identifier used for key encryption.ClientId- The Application Client IdClientSecret- (Optional) The client secret to use for authentication. Optional valid only for Azure hosted scenariosVault- The KeyVault public Uri- OR
Type- Certificate
To protect with certificate you can provide either a thumbprint or a location: -
CertificateType- Thumbprint -Thumbprint- The thumbprint of the certficate that is installed either for the user or the machine. Location: - OR -CertificateType- File -Location- The location on disk of the certificate -Password(Optional) - The password for the certificate
env.js
AuthorityUrlThe IdentityServer installation protecting AdminUIApiUrlThe AdminUI backend websiteUiUrlThe AdminUI frontend websiteAddUserPasswordAllows for setting a users password on creation (this is for demo purposes only, do not use in production), see more here
AdminUI Configuration Settings (API)
DbProviderSupported types and their values are:SqlServerMySql(Note: AdminUI requires the MySQL settinglower_case_table_namesto befalse)PostgreSql
IdentityConnectionStringThe connection string for the Identity database (Users, Claim Types, Roles etc.)IdentityServerConnectionStringThe connection string for the IdentityServer database (Clients, Resources, Persited Grants etc.)OperationalConnectionString(Optional) The connection string for the Presisted Grants DbContext. If not supplied, AdminUI will use theIdentityServerConnectionStringDataProtectionConnectionString(Optional) The connection string for the DataProtectionKey DbContext. If not supplied, AdminUI will use theIdentityServerConnectionString. Only needs configuring if you are using a database to store protection keys in the UI.AuthorityUrlThe IdentityServer installation protecting the APIUiUrlThe AdminUI frontendRequireHttpsMetadataWhentrueensures IdentityServer discovery endpoint uses TLS. Should be true for productionLicenseKeyA valid license key for AdminUIAdminUIClientSecretThe AdminUI client shared secret value in plain textPasswordPolicy:RequireDigitDefaults totruePasswordPolicy:RequireLowercaseDefaults totruePasswordPolicy:RequireNonAlphanumericDefaults totruePasswordPolicy:RequireUppercaseDefaults totruePasswordPolicy:RequiredLengthDefaults to6PasswordPolicy:RequiredUniqueCharsDefaults to1UsernamePolicy:AllowedUserNameCharactersDefaults toabcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-._@+UsernamePolicy:RequireUniqueEmailDefaults totrueAuditRecordsConnectionStringThe database connection string for AdminUI audits, if missing will default to theIdentityServerConnectionString-
AuditRecordsCultureLanguage used for generation of audit records, if missing or invalid will default to Englishen-GB.Supported languages are: -
deGerman -zh-TWChinese (Traditional) -zh-CNChinese (Simplified) -esSpanish -frFrench -AuditReadActionsDefaults totrue. Iffalse, no audit records will be generated for read actions (e.g when a user views resources though AdminUI) -
LoggingMinimumLevelDefaults toinfo. Supported logging levels aredebuginfowarningerrorcritical
LoggingOutputTemplateDefaults to[{Timestamp:dd-MM-yyyy HH:mm:ss} {Level}] {Message}{NewLine}{Exception}. For more infomation see the serilog docs.