From b3ddb4ccf84e9ed46b9e3fc19eb22765a053f2f4 Mon Sep 17 00:00:00 2001 From: ageer <ageerle@163.com> Date: 星期一, 01 四月 2024 23:21:33 +0800 Subject: [PATCH] 更新md --- image/10.png | 0 image/11.png | 0 application.yml | 392 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ image/07.png | 0 image/08.png | 0 5 files changed, 392 insertions(+), 0 deletions(-) diff --git a/application.yml b/application.yml new file mode 100644 index 0000000..12d9bec --- /dev/null +++ b/application.yml @@ -0,0 +1,392 @@ +# 椤圭洰鐩稿叧閰嶇疆 +ruoyi: + # 鍚嶇О + name: "xmzs" + # 鐗堟湰 + version: ${revision} + # 鐗堟潈骞翠唤 + copyrightYear: 2023 + # 瀹炰緥婕旂ず寮�鍏� + demoEnabled: true + # 鑾峰彇ip鍦板潃寮�鍏� + addressEnabled: false + +captcha: + enable: false + # 椤甸潰 <鍙傛暟璁剧疆> 鍙紑鍚叧闂� 楠岃瘉鐮佹牎楠� + # 楠岃瘉鐮佺被鍨� math 鏁扮粍璁$畻 char 瀛楃楠岃瘉 + type: MATH + # line 绾挎骞叉壈 circle 鍦嗗湀骞叉壈 shear 鎵洸骞叉壈 + category: CIRCLE + # 鏁板瓧楠岃瘉鐮佷綅鏁� + numberLength: 1 + # 瀛楃楠岃瘉鐮侀暱搴� + charLength: 4 + +# 寮�鍙戠幆澧冮厤缃� +server: + # 鏈嶅姟鍣ㄧ殑HTTP绔彛锛岄粯璁や负8080 + port: 6039 + servlet: + # 搴旂敤鐨勮闂矾寰� + context-path: / + # undertow 閰嶇疆 + undertow: + # HTTP post鍐呭鐨勬渶澶уぇ灏忋�傚綋鍊间负-1鏃讹紝榛樿鍊间负澶у皬鏄棤闄愮殑 + max-http-post-size: -1 + # 浠ヤ笅鐨勯厤缃細褰卞搷buffer,杩欎簺buffer浼氱敤浜庢湇鍔″櫒杩炴帴鐨処O鎿嶄綔,鏈夌偣绫讳技netty鐨勬睜鍖栧唴瀛樼鐞� + # 姣忓潡buffer鐨勭┖闂村ぇ灏�,瓒婂皬鐨勭┖闂磋鍒╃敤瓒婂厖鍒� + buffer-size: 512 + # 鏄惁鍒嗛厤鐨勭洿鎺ュ唴瀛� + direct-buffers: true + threads: + # 璁剧疆IO绾跨▼鏁�, 瀹冧富瑕佹墽琛岄潪闃诲鐨勪换鍔�,瀹冧滑浼氳礋璐e涓繛鎺�, 榛樿璁剧疆姣忎釜CPU鏍稿績涓�涓嚎绋� + io: 8 + # 闃诲浠诲姟绾跨▼姹�, 褰撴墽琛岀被浼約ervlet璇锋眰闃诲鎿嶄綔, undertow浼氫粠杩欎釜绾跨▼姹犱腑鍙栧緱绾跨▼,瀹冪殑鍊艰缃彇鍐充簬绯荤粺鐨勮礋杞� + worker: 256 + +# 鏃ュ織閰嶇疆 +logging: + level: + com.xmzs: @logging.level@ + org.springframework: warn + config: classpath:logback-plus.xml + +# 鐢ㄦ埛閰嶇疆 +user: + password: + # 瀵嗙爜鏈�澶ч敊璇鏁� + maxRetryCount: 5 + # 瀵嗙爜閿佸畾鏃堕棿锛堥粯璁�10鍒嗛挓锛� + lockTime: 10 + +# Spring閰嶇疆 +spring: + application: + name: ${ruoyi.name} + # 璧勬簮淇℃伅 + messages: + # 鍥介檯鍖栬祫婧愭枃浠惰矾寰� + basename: i18n/messages + profiles: + active: @profiles.active@ + # 鏂囦欢涓婁紶 + servlet: + multipart: + # 鍗曚釜鏂囦欢澶у皬 + max-file-size: 10MB + # 璁剧疆鎬讳笂浼犵殑鏂囦欢澶у皬 + max-request-size: 20MB + mvc: + format: + date-time: yyyy-MM-dd HH:mm:ss + jackson: + # 鏃ユ湡鏍煎紡鍖� + date-format: yyyy-MM-dd HH:mm:ss + serialization: + # 鏍煎紡鍖栬緭鍑� + indent_output: false + # 蹇界暐鏃犳硶杞崲鐨勫璞� + fail_on_empty_beans: false + deserialization: + # 鍏佽瀵硅薄蹇界暐json涓笉瀛樺湪鐨勫睘鎬� + fail_on_unknown_properties: false + +# Sa-Token閰嶇疆 +sa-token: + # token鍚嶇О (鍚屾椂涔熸槸cookie鍚嶇О) + token-name: Authorization + # token鏈夋晥鏈� 璁句负7澶� (蹇呭畾杩囨湡) 鍗曚綅: 绉� + timeout: 604800 + # token涓存椂鏈夋晥鏈� (鎸囧畾鏃堕棿鏃犳搷浣滃氨杩囨湡) 鍗曚綅: 绉� + activity-timeout: 604800 + # 鏄惁鍏佽鍚屼竴璐﹀彿骞跺彂鐧诲綍 (涓簍rue鏃跺厑璁镐竴璧风櫥褰�, 涓篺alse鏃舵柊鐧诲綍鎸ゆ帀鏃х櫥褰�) + is-concurrent: true + # 鍦ㄥ浜虹櫥褰曞悓涓�璐﹀彿鏃讹紝鏄惁鍏辩敤涓�涓猼oken (涓簍rue鏃舵墍鏈夌櫥褰曞叡鐢ㄤ竴涓猼oken, 涓篺alse鏃舵瘡娆$櫥褰曟柊寤轰竴涓猼oken) + is-share: false + # 鏄惁灏濊瘯浠巋eader閲岃鍙杢oken + is-read-header: true + # 鏄惁灏濊瘯浠巆ookie閲岃鍙杢oken + is-read-cookie: false + # token鍓嶇紑 + token-prefix: "Bearer" + # jwt绉橀挜 + jwt-secret-key: abcdefghijklmnopqrstuvwxyz + +# security閰嶇疆 +security: + # 鎺掗櫎璺緞 + excludes: + # 淇敼鐢ㄦ埛澶村儚 + - /system/user/edit/avatar + - /pay/returnUrl + - /pay/notifyUrl + # 涓婁紶鏂囦欢 + - /resource/oss/upload + # 閲嶇疆瀵嗙爜 + - /auth/reset/password + # 鑱婂ぉ鎺ュ彛 + - /chat + # 闈欐�佽祫婧� + - /*.html + - /**/*.html + - /**/*.css + - /**/*.js + # 鍏叡璺緞 + - /favicon.ico + - /error + # swagger 鏂囨。閰嶇疆 + - /*/api-docs + - /*/api-docs/** + # actuator 鐩戞帶閰嶇疆 + - /actuator + - /actuator/** +# 澶氱鎴烽厤缃� +tenant: + # 鏄惁寮�鍚� + enable: false + # 鎺掗櫎琛� + excludes: + - sys_menu + - sys_tenant + - sys_tenant_package + - sys_role_dept + - sys_role_menu + - sys_user_post + - sys_user_role + +# MyBatisPlus閰嶇疆 +# https://baomidou.com/config/ +mybatis-plus: + # 涓嶆敮鎸佸鍖�, 濡傛湁闇�瑕佸彲鍦ㄦ敞瑙i厤缃� 鎴� 鎻愬崌鎵寘绛夌骇 + # 渚嬪 com.**.**.mapper + mapperPackage: com.xmzs.**.mapper + # 瀵瑰簲鐨� XML 鏂囦欢浣嶇疆 + mapperLocations: classpath*:mapper/**/*Mapper.xml + # 瀹炰綋鎵弿锛屽涓猵ackage鐢ㄩ�楀彿鎴栬�呭垎鍙峰垎闅� + typeAliasesPackage: com.xmzs.**.domain + # 鍚姩鏃舵槸鍚︽鏌� MyBatis XML 鏂囦欢鐨勫瓨鍦紝榛樿涓嶆鏌� + checkConfigLocation: false + configuration: + # 鑷姩椹煎嘲鍛藉悕瑙勫垯锛坈amel case锛夋槧灏� + mapUnderscoreToCamelCase: true + # MyBatis 鑷姩鏄犲皠绛栫暐 + # NONE锛氫笉鍚敤 PARTIAL锛氬彧瀵归潪宓屽 resultMap 鑷姩鏄犲皠 FULL锛氬鎵�鏈� resultMap 鑷姩鏄犲皠 + autoMappingBehavior: FULL + # MyBatis 鑷姩鏄犲皠鏃舵湭鐭ュ垪鎴栨湭鐭ュ睘鎬у鐞嗙瓥 + # NONE锛氫笉鍋氬鐞� WARNING锛氭墦鍗扮浉鍏宠鍛� FAILING锛氭姏鍑哄紓甯稿拰璇︾粏淇℃伅 + autoMappingUnknownColumnBehavior: NONE + # 鏇磋缁嗙殑鏃ュ織杈撳嚭 浼氭湁鎬ц兘鎹熻�� org.apache.ibatis.logging.stdout.StdOutImpl + # 鍏抽棴鏃ュ織璁板綍 (鍙崟绾娇鐢� p6spy 鍒嗘瀽) org.apache.ibatis.logging.nologging.NoLoggingImpl + # 榛樿鏃ュ織杈撳嚭 org.apache.ibatis.logging.slf4j.Slf4jImpl + logImpl: org.apache.ibatis.logging.nologging.NoLoggingImpl + global-config: + # 鏄惁鎵撳嵃 Logo banner + banner: true + dbConfig: + # 涓婚敭绫诲瀷 + # AUTO 鑷 NONE 绌� INPUT 鐢ㄦ埛杈撳叆 ASSIGN_ID 闆姳 ASSIGN_UUID 鍞竴 UUID + idType: ASSIGN_ID + # 閫昏緫宸插垹闄ゅ�� + logicDeleteValue: 2 + # 閫昏緫鏈垹闄ゅ�� + logicNotDeleteValue: 0 + # 瀛楁楠岃瘉绛栫暐涔� insert,鍦� insert 鐨勬椂鍊欑殑瀛楁楠岃瘉绛栫暐 + # IGNORED 蹇界暐 NOT_NULL 闈濶ULL NOT_EMPTY 闈炵┖ DEFAULT 榛樿 NEVER 涓嶅姞鍏� SQL + insertStrategy: NOT_NULL + # 瀛楁楠岃瘉绛栫暐涔� update,鍦� update 鐨勬椂鍊欑殑瀛楁楠岃瘉绛栫暐 + updateStrategy: NOT_NULL + # 瀛楁楠岃瘉绛栫暐涔� select,鍦� select 鐨勬椂鍊欑殑瀛楁楠岃瘉绛栫暐鏃� wrapper 鏍规嵁鍐呴儴 entity 鐢熸垚鐨� where 鏉′欢 + where-strategy: NOT_NULL + +# 鏁版嵁鍔犲瘑 +mybatis-encryptor: + # 鏄惁寮�鍚姞瀵� + enable: false + # 榛樿鍔犲瘑绠楁硶 + algorithm: BASE64 + # 缂栫爜鏂瑰紡 BASE64/HEX銆傞粯璁ASE64 + encode: BASE64 + # 瀹夊叏绉橀挜 瀵圭О绠楁硶鐨勭閽� 濡傦細AES锛孲M4 + password: + # 鍏閽� 闈炲绉扮畻娉曠殑鍏閽� 濡傦細SM2锛孯SA + publicKey: + privateKey: + +# Swagger閰嶇疆 +swagger: + info: + # 鏍囬 + title: '鏍囬锛�${ruoyi.name}澶氱鎴风鐞嗙郴缁焈鎺ュ彛鏂囨。' + # 鎻忚堪 + description: '鎻忚堪锛氱敤浜庣鐞嗛泦鍥㈡棗涓嬪叕鍙哥殑浜哄憳淇℃伅,鍏蜂綋鍖呮嫭XXX,XXX妯″潡...' + # 鐗堟湰 + version: '鐗堟湰鍙�: ${ruoyi.version}' + # 浣滆�呬俊鎭� + contact: + name: ageerle + email: ageerle@163.com + url: https://gitee.com/ageerle/ruoyi-ai + components: + # 閴存潈鏂瑰紡閰嶇疆 + security-schemes: + apiKey: + type: APIKEY + in: HEADER + name: ${sa-token.token-name} + +springdoc: + api-docs: + # 鏄惁寮�鍚帴鍙f枃妗� + enabled: true + swagger-ui: + # 鎸佷箙鍖栬璇佹暟鎹� + persistAuthorization: true + #杩欓噷瀹氫箟浜嗕袱涓垎缁勶紝鍙畾涔夊涓紝涔熷彲浠ヤ笉瀹氫箟 + group-configs: + - group: 1.婕旂ず妯″潡 + packages-to-scan: com.xmzs.demo + - group: 2.閫氱敤妯″潡 + packages-to-scan: com.xmzs.web + - group: 3.绯荤粺妯″潡 + packages-to-scan: com.xmzs.system + - group: 4.浠g爜鐢熸垚妯″潡 + packages-to-scan: com.xmzs.generator + +# 闃叉XSS鏀诲嚮 +xss: + # 杩囨护寮�鍏� + enabled: true + # 鎺掗櫎閾炬帴锛堝涓敤閫楀彿鍒嗛殧锛� + excludes: /system/notice + # 鍖归厤閾炬帴 + urlPatterns: /system/*,/monitor/*,/tool/* + +# 鍏ㄥ眬绾跨▼姹犵浉鍏抽厤缃� +thread-pool: + # 鏄惁寮�鍚嚎绋嬫睜 + enabled: false + # 闃熷垪鏈�澶ч暱搴� + queueCapacity: 128 + # 绾跨▼姹犵淮鎶ょ嚎绋嬫墍鍏佽鐨勭┖闂叉椂闂� + keepAliveSeconds: 300 + +--- # 鍒嗗竷寮忛攣 lock4j 鍏ㄥ眬閰嶇疆 +lock4j: + # 鑾峰彇鍒嗗竷寮忛攣瓒呮椂鏃堕棿锛岄粯璁や负 3000 姣 + acquire-timeout: 3000 + # 鍒嗗竷寮忛攣鐨勮秴鏃舵椂闂达紝榛樿涓� 30 绉� + expire: 30000 + +--- # Actuator 鐩戞帶绔偣鐨勯厤缃」 +management: + endpoints: + web: + exposure: + include: '*' + endpoint: + health: + show-details: ALWAYS + logfile: + external-file: ./logs/sys-console.log + +--- # websocket +websocket: + enabled: false + # 璺緞 + path: '' + # 璁剧疆璁块棶婧愬湴鍧� + allowedOrigins: '*' + +# 寰俊灏忕▼搴忛厤缃俊鎭� +wx: + miniapp: + configs: + - appid: # 浣犵殑appid + secret: # 浣犵殑secret + token: #寰俊灏忕▼搴忔秷鎭湇鍔″櫒閰嶇疆鐨則oken + aesKey: #寰俊灏忕▼搴忔秷鎭湇鍔″櫒閰嶇疆鐨凟ncodingAESKey + msgDataFormat: JSON +baidu: + # 鏄惁寮�鍚枃鏈鏍� + enabled: false + # 鏂囨湰瀹℃牳 + textReview: + apiKey: '' # apiKey + secretKey: '' # secretKey + appKey: xxxxxxxxxxxxxxxxx + secretKey: xxxxxxxxxxxxxxxxxxxxxxx + +wechat: + # 鏄惁浣跨敤寰俊 true/false + enable: true + # 鐢熸垚鐨勭櫥褰曚簩缁寸爜璺緞 榛樿涓庨」鐩悓绾� + qrPath: "./" + +keyword: + # 閲嶇疆浼氳瘽鎸囦护 + reset: "閲嶇疆浼氳瘽" + # ai鐢诲浘鎸囦护(DALL路E妯″瀷 https://platform.openai.com/docs/models/dall-e) + # generation 鏍规嵁鍏抽敭璇嶇敓鎴愬浘鐗�(https://platform.openai.com/docs/guides/images/generations) + image: "ai鐢诲浘" + # ai璇煶鎸囦护(TTS妯″瀷 https://platform.openai.com/docs/api-reference/audio) + audio: "ai璇煶" + +mj: + api-secret: 'sk-xx' + task-store: + type: in_memory + timeout: 30d + translate-way: gpt + # proxy: + # host: 127.0.0.1 + # port: 10809 + ng-discord: + server: 'https://xxx.pandarobot.chat/' + cdn: 'https://xxx.pandarobot.chat/' + wss: 'https://xxx.pandarobot.chat/' + openai: + gpt-api-url: 'https://api.pandarobot.chat/' + gpt-api-key: 'sk-xx' + accounts: + - guild-id: 'xx' + channel-id: 'xx' + user-token: 'xx' + +--- # mail 閭欢鍙戦�� +mail: + enabled: true + host: smtp.163.com + port: 465 + # 鏄惁闇�瑕佺敤鎴峰悕瀵嗙爜楠岃瘉 + auth: true + # 鍙戦�佹柟锛岄伒寰猂FC-822鏍囧噯 + from: ageerle@163.com + # 鐢ㄦ埛鍚嶏紙娉ㄦ剰锛氬鏋滀娇鐢╢oxmail閭锛屾澶剈ser涓簈q鍙凤級 + user: ageerle@163.com + # 瀵嗙爜锛堝~鍐欐巿鏉冪爜锛� + pass: TOGXBVPYFVPFRQMQ + # 浣跨敤 STARTTLS瀹夊叏杩炴帴锛孲TARTTLS鏄绾枃鏈�氫俊鍗忚鐨勬墿灞曘�� + starttlsEnable: true + # 浣跨敤SSL瀹夊叏杩炴帴 + sslEnable: true + # SMTP瓒呮椂鏃堕暱锛屽崟浣嶆绉掞紝缂虹渷鍊间笉瓒呮椂 + timeout: 0 + # Socket杩炴帴瓒呮椂鍊硷紝鍗曚綅姣锛岀己鐪佸�间笉瓒呮椂 + connectionTimeout: 0 + +# chatgpt閰嶇疆淇℃伅 +chat: + apiKey: 'sk-xxx' + apiHost: 'https://api.pandarobot.chat/' + +# 鏀粯閰嶇疆淇℃伅 +pay: + pid: 'xxx' + key: 'xxx' + payUrl: 'https://pay.pandarobot.chat/mapi.php' + notify_url: 'https://www.pandarobot.chat/pay/returnUrl' + return_url: 'https://www.pandarobot.chat/pay/notifyUrl' + type: 'wxpay' + device: 'pc' + sign_type: 'MD5' diff --git a/image/07.png b/image/07.png index a11e7ad..44f5d51 100644 --- a/image/07.png +++ b/image/07.png Binary files differ diff --git a/image/08.png b/image/08.png index a4a2202..a2479ed 100644 --- a/image/08.png +++ b/image/08.png Binary files differ diff --git a/image/10.png b/image/10.png index 4008a4c..558cf0d 100644 --- a/image/10.png +++ b/image/10.png Binary files differ diff --git a/image/11.png b/image/11.png index 3f4ae13..1ab97ab 100644 --- a/image/11.png +++ b/image/11.png Binary files differ -- Gitblit v1.9.3