Skip to content

Commit

Permalink
Merge pull request #538 from kekingcn/kl
Browse files Browse the repository at this point in the history
feat: 新增预览文件 host 黑名单机制
  • Loading branch information
gitchenjh authored Mar 8, 2024
2 parents 787e9fe + d407b88 commit 72014e1
Show file tree
Hide file tree
Showing 7 changed files with 136 additions and 53 deletions.
3 changes: 3 additions & 0 deletions server/src/main/config/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,9 @@ base.url = ${KK_BASE_URL:default}
#信任站点多个用','隔开设置了之后会限制只能预览来自信任站点列表的文件默认不限制
#trust.host = kkview.cn
trust.host = ${KK_TRUST_HOST:default}
#不信任站点多个用','隔开设置了之后会限制来自不信任站点列表的文件默认不限制
#not.trust.host = kkview.cn
not.trust.host= ${KK_NOT_TRUST_HOST:default}
#文本类型默认如下可自定义添加
simText = ${KK_SIMTEXT:txt,html,htm,asp,jsp,xml,json,properties,md,gitignore,log,java,py,c,cpp,sql,sh,bat,m,bas,prg,cmd}

Expand Down
Loading

0 comments on commit 72014e1

Please sign in to comment.