json-config-transform
Version:
Transform JSON config files by environment.
45 lines • 1.17 kB
JSON
{
"ConnectionStrings": {
"DefaultConnection": "Data Source=MyProductionServer;Initial Catalog=MyDatabase;MultipleActiveResultSets=true;User Id=myuser;Password=mypassword"
},
"AppSettings": {
"LogClientExceptions": true,
"DomainUrl": "https://myproductionapp.com/",
"MiniProfilerEnabled": false
},
"Decoding[transform:remove]": {},
"FileStorage": {
"Servers[transform:match:RequestPath]": [
{
"PhysicalPath": "C:\\MyApp\\PROD\\sitecontent",
"RequestPath": "/sitecontent",
"Cache": {
"Enabled": true
}
}
]
},
"AssetRendering": {
"UseCompiledOutput": true,
"MarkupCache": {
"Enabled": true
}
},
"MessageSettings": {
"TestMode": false,
"TestModeSendTo": "",
"SendFromApplication": true,
"Smtp": {
"Host": "smtp.com"
}
},
"ClientSideSettings": {
"Debug": false,
"LogErrors": true,
"AlertErrors": true,
"UserSessionTimeout": 10
},
"GoogleAnalytics": {
"Enabled": true
}
}