-
Notifications
You must be signed in to change notification settings - Fork 0
Configuration Structure
Adhika P. edited this page Jan 20, 2025
·
1 revision
ConfigFern uses the standard .NET configuration format. Below is an example of a typical configuration structure:
{
"ConnectionStrings": {
"DefaultConnection": "ENC:Server=localhost;Database=mydb;User Id=myUsername;Password=myPassword;"
},
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft": "Warning"
}
},
"AppSettings": {
"ApplicationName": "MyDotNetApp",
"Features": {
"EnableCache": true,
"RetryPolicy": {
"MaxRetries": 3,
"DelaySeconds": 5
}
}
}
}- Uses standard JSON format
- Supports nested configuration sections
- Encrypted values are prefixed with "ENC:"
- Compatible with standard .NET configuration providers
- Use PascalCase for section names
- Use descriptive, hierarchical keys