Skip to content

System Settings

Edi Wang edited this page Oct 25, 2020 · 7 revisions

This wiki discuss system settings in appsettings.[env].json. For blog settings, please use "/admin/settings" UI.

For production, it is strongly recommended to use Environment Variables over appsetting.json file.

Key Data Type Description
WatermarkARGB int[] ARGB value for watermark color
CaptchaSettings:ImageWidth int Pixel Width of Captcha Image
CaptchaSettings:ImageHeight int Pixel Height of Captcha Image
Editor string HTML or Markdown
EnableAudit bool Enable Audit Log or not
EnableWebApi bool Enable REST API
AsideWidgets:TopTags bool Display top tags section
AsideWidgets:CategoryList bool Display category list section
AsideWidgets:SubscriptionButtons bool Display subscription buttons
CacheSlidingExpirationMinutes:Post int Time for cached posts to expire
CacheSlidingExpirationMinutes:Page int Time for cached pages to expire
CacheSlidingExpirationMinutes:Image int Time for cached image to expire
PostAbstractWords int How may words to show in post list abstract
SystemNavMenus:Categories bool Show 'Categories' Menu
SystemNavMenus:Tags bool Show 'Tags' Menu
SystemNavMenus:Archive bool Show 'Archive' Menu
Clone this wiki locally