From ecaf0a185a2ac7e3cb5396bc943418674d4febcc Mon Sep 17 00:00:00 2001 From: Dmitry Date: Mon, 7 Oct 2024 20:13:19 +0300 Subject: [PATCH] add security section in config --- config.toml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/config.toml b/config.toml index dd67216..570ce34 100644 --- a/config.toml +++ b/config.toml @@ -72,3 +72,16 @@ enableRobotsTXT = true # name = "теги" # url = "tags" # weight = 3 + +[security] + enableInlineShortcodes = false + [security.exec] + allow = ['^dart-sass-embedded$', '^go$', '^git$', '^npx$', '^postcss$', '^pandoc$', '^nvim$'] + osEnv = ['(?i)^(PATH|PATHEXT|APPDATA|TMP|TEMP|TERM)$'] + + [security.funcs] + getenv = ['^HUGO_'] + + [security.http] + methods = ['(?i)GET|POST'] + urls = ['.*']