Configuration Management

Overview
Configuration items are stored as key-value pairs. The page has two sections: the top is a quick-edit area for common system parameters, the bottom is the table for custom configuration items. Changes take effect after saving, without restarting the application.
Usage
Accessing the Configuration Management Page
Navigate to "System Management" → "Configuration Management" in the system navigation bar.
Quick Editing of Common Parameters
The upper part of the page displays common system parameters (such as site name, logo, email settings, etc.). Edit the value in the text field and click "Save Configuration" to apply. The quick editing area is implemented via the AdminDictionaryInput component.
Managing Custom Configuration Items
The lower part of the page is a configuration item table, supporting:
- Add: Click the "Add" button, enter the configuration key (Code), value (Content), and description
- Edit: Click the "Edit" button on a row to modify the configuration item
- Delete: Select the configuration items to delete and click the "Delete" button
- Search: Enter keywords in the search box for quick filtering
Since v2.7.0 each item is rendered with its declared control type instead of a bare text box. Extensions declare the type via ConfigSettingField; available values: Text, Int (number input), Bool (switch), Select (dictionary drop-down), MultiSelect (multi-select, stored as comma-separated values), File (file picker), Color, Secret. Color shows a row of preset swatches that fill the value on click (current value outlined), plus a hex input on the right. Secret is stored AES-encrypted and never echoed in plain text: the input starts empty and leaving it blank keeps the old value (on read, AesEncrypt.TryDecryptOrRaw() decrypts the new ciphertext while legacy plain-text values pass through unchanged).
Interface Description
System Configuration Area
- Quick edit form for common configurations
- Click the "Save" button to persist changes
Custom Configuration Table
- Code: Configuration key, used by the program to read the configuration
- Content: Configuration value
- Description: What this configuration is used for
Centralized Third-Party Service Settings
Settings for mail, SMS, Redis, WeChat Pay and other third-party services can be maintained centrally in the configuration page instead of being scattered across multiple files.
Related Entities/Services
SysConfig— Configuration entityIEnumerable<IConfigSettingsContributor>— configuration contributors registered by extensions, iterated directly by the config page. Since v2.7.0 they implementGetSettingFields(), returning a list ofConfigSettingField(key / display name / control type / drop-down options / remark); the old dictionary-basedGetConfigSettings()was removed (breaking change)IEmailService/ISmsService— Email/SMS service parameters configurable in settings