From 983bdb5b89932b38d08a11ad1eed6ea89d1597e1 Mon Sep 17 00:00:00 2001
From: kongzy <kongzy>
Date: 星期一, 29 一月 2024 10:07:31 +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..e1e6343 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:
+  # 匹配链接
+  urlPatterns: /system/*,/manage/*

--
Gitblit v1.9.2