From ca5445257b1fdeceddf3fcc2dea18c442023aeb7 Mon Sep 17 00:00:00 2001
From: kongzy <kongzy>
Date: Fri, 08 Dec 2023 09:30:36 +0800
Subject: [PATCH] 新街口
---
assess-admin/src/main/resources/application.yml | 28 +++++++++++++---------------
1 files changed, 13 insertions(+), 15 deletions(-)
diff --git a/assess-admin/src/main/resources/application.yml b/assess-admin/src/main/resources/application.yml
index 9ae7cd4..f82a6b9 100644
--- a/assess-admin/src/main/resources/application.yml
+++ b/assess-admin/src/main/resources/application.yml
@@ -7,9 +7,9 @@
multipart:
enabled: true
# 单个文件大小
- max-file-size: 10MB
+ max-file-size: 20MB
# 设置总上传的文件大小
- max-request-size: 20MB
+ max-request-size: 100MB
mvc:
pathmatch:
matching-strategy: ant_path_matcher
@@ -19,16 +19,6 @@
servlet:
context-path: /api
-#shiro配置
-#shiro:
-# sessionManager:
-# sessionIdCookieEnabled: true
-# sessionIdUrlRewritingEnabled: true
-# unauthorizedUrl: /unauthorizedurl
-# web:
-# enabled: true
-# successUrl: /index
-# loginUrl: /account/login
# 用户配置
user:
@@ -38,6 +28,14 @@
image:
- root_path: upload
- upload_image: upload/images
- upload_file: upload/documents
+ upload_path: upload
+
+
+# 防止XSS攻击
+xss:
+ # 过滤开关
+ enabled: true
+ # 排除链接(多个用逗号分隔)
+ excludes: /system/notice
+ # 匹配链接
+ urlPatterns: /system/*,/monitor/*,/tool/*
--
Gitblit v1.9.2