add security section in config

This commit is contained in:
Dmitry Belyaev 2024-10-07 20:13:19 +03:00
parent 428ff47b7e
commit ecaf0a185a
Signed by: b4tman
GPG Key ID: 41A00BF15EA7E5F3

View File

@ -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 = ['.*']