From c137965decc409fe3b987caf32de9b223b4f07ec Mon Sep 17 00:00:00 2001 From: 疯狂的狮子li <15040126243@163.com> Date: 星期一, 23 五月 2022 11:23:14 +0800 Subject: [PATCH] update 增加 redis 无密码使用说明 --- ruoyi-admin/src/main/resources/application-dev.yml | 66 ++++++++++++++++++--------------- 1 files changed, 36 insertions(+), 30 deletions(-) diff --git a/ruoyi-admin/src/main/resources/application-dev.yml b/ruoyi-admin/src/main/resources/application-dev.yml index 50e060b..f9327f7 100644 --- a/ruoyi-admin/src/main/resources/application-dev.yml +++ b/ruoyi-admin/src/main/resources/application-dev.yml @@ -130,40 +130,12 @@ port: 6379 # 鏁版嵁搴撶储寮� database: 0 - # 瀵嗙爜 - password: + # 瀵嗙爜(濡傛病鏈夊瘑鐮佽娉ㄩ噴鎺�) + # password: # 杩炴帴瓒呮椂鏃堕棿 timeout: 10s # 鏄惁寮�鍚痵sl ssl: false - - # 閭欢 - mail: - enabled: false - # 閭欢鏈嶅姟鍦板潃 (enabled = true 鏃舵墦寮�璇ラ厤缃�) -# host: smtp.qq.com - # 鐢ㄦ埛鍚� - username: xxx@qq.com - # 鎺堟潈鐮� (璁剧疆 - 璐︽埛 - POP3/SMTP鏈嶅姟) - password: xxx - # QQ閭鍔犲瘑绔彛锛屼笉鍚岄偖绠辩殑绔彛涓嶄竴鏍� - port: 465 - properties: - mail: - smtp: - socketFactory: - class: javax.net.ssl.SSLSocketFactory - ssl: - trust: smtp.qq.com - # 鏄惁闇�瑕佺敤鎴疯璇� - auth: true - starttls: - # 鍚敤TLS鍔犲瘑 - enable: true - required: true - # 浼犺緭鍗忚 starttls.enable = true 鏃朵负 smtps - protocol: smtps - debug: true redisson: # 绾跨▼姹犳暟閲� @@ -184,3 +156,37 @@ timeout: 3000 # 鍙戝竷鍜岃闃呰繛鎺ユ睜澶у皬 subscriptionConnectionPoolSize: 50 + +--- # mail 閭欢鍙戦�� +mail: + enabled: false + host: smtp.163.com + port: 465 + # 鏄惁闇�瑕佺敤鎴峰悕瀵嗙爜楠岃瘉 + auth: true + # 鍙戦�佹柟锛岄伒寰猂FC-822鏍囧噯 + from: xxx@163.com + # 鐢ㄦ埛鍚嶏紙娉ㄦ剰锛氬鏋滀娇鐢╢oxmail閭锛屾澶剈ser涓簈q鍙凤級 + user: xxx@163.com + # 瀵嗙爜锛堟敞鎰忥紝鏌愪簺閭闇�瑕佷负SMTP鏈嶅姟鍗曠嫭璁剧疆瀵嗙爜锛岃鎯呮煡鐪嬬浉鍏冲府鍔╋級 + pass: xxxxxxxxxx + # 浣跨敤 STARTTLS瀹夊叏杩炴帴锛孲TARTTLS鏄绾枃鏈�氫俊鍗忚鐨勬墿灞曘�� + starttlsEnable: true + # 浣跨敤SSL瀹夊叏杩炴帴 + sslEnable: true + # SMTP瓒呮椂鏃堕暱锛屽崟浣嶆绉掞紝缂虹渷鍊间笉瓒呮椂 + timeout: 0 + # Socket杩炴帴瓒呮椂鍊硷紝鍗曚綅姣锛岀己鐪佸�间笉瓒呮椂 + connectionTimeout: 0 + +--- # sms 鐭俊 +sms: + enabled: false + # 闃块噷浜� dysmsapi.aliyuncs.com + # 鑵捐浜� sms.tencentcloudapi.com + endpoint: "dysmsapi.aliyuncs.com" + accessKeyId: xxxxxxx + accessKeySecret: xxxxxx + signName: 娴嬭瘯 + # 鑵捐涓撶敤 + sdkAppId: -- Gitblit v1.9.3