From 2fedb72480ae2b3b6f2ff432dba7d450c37b3f7e Mon Sep 17 00:00:00 2001 From: yyb <1416014977@qq.com> Date: Tue, 4 Nov 2025 14:58:30 +0800 Subject: [PATCH] =?UTF-8?q?update=20=E9=82=AE=E7=AE=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/resources/bootstrap-dev.yml | 89 +++++++++++++++++++ .../resources/templates/emailCode-en.html | 50 +++++++++++ .../resources/templates/emailoffline-en.html | 37 ++++++++ 3 files changed, 176 insertions(+) create mode 100644 m2pool-auth/src/main/resources/bootstrap-dev.yml create mode 100644 m2pool-auth/src/main/resources/templates/emailCode-en.html create mode 100644 m2pool-auth/src/main/resources/templates/emailoffline-en.html diff --git a/m2pool-auth/src/main/resources/bootstrap-dev.yml b/m2pool-auth/src/main/resources/bootstrap-dev.yml new file mode 100644 index 0000000..8fca6e0 --- /dev/null +++ b/m2pool-auth/src/main/resources/bootstrap-dev.yml @@ -0,0 +1,89 @@ +server: + port: 7777 + +# Spring +spring: + #邮箱基本配置 + mail: + # 配置在limit_time内,用户可以发送limit次验证码 + limit: 2 这个是我额外的配置,结合邮箱服务用的 + limitTime: 10 这个是我额外的配置 + #配置smtp服务主机地址 + # sina smtp.sina.cn + # aliyun smtp.aliyun.com + # 163 smtp.163.com 端口号465或994 + host: mail.privateemail.com + #发送者邮箱 + username: do.not.reply@m2pool.com + #配置密码,注意不是真正的密码,而是刚刚申请到的授权码 + # password: + # password: M2202401! + # password: axvm-zfgx-cgcg-qhhu + password: M2202401! + + #端口号 + port: 587 +# port: 465 + #默认的邮件编码为UTF-8 + default-encoding: UTF-8 + #其他参数 + properties: + mail: + #配置SSL 加密工厂 + smtp: + ssl: + #本地测试,先放开ssl + enable: false + required: false + #开启debug模式,这样邮件发送过程的日志会在控制台打印出来,方便排查错误 + debug: false + socketFactory: + class: javax.net.ssl.SSLSocketFactory +# +# host: smtp.qq.com +# #发送者邮箱 +# username: 1328642438@qq.com +# #配置密码,注意不是真正的密码,而是刚刚申请到的授权码 +# # password: +# # password: M2pool2024@! +# # password: axvm-zfgx-cgcg-qhhu +# password: eqrzqxeqzlshhedh +# +# #端口号 +# port: 465 +# #默认的邮件编码为UTF-8 +# default-encoding: UTF-8 +# #其他参数 +# properties: +# mail: +# #配置SSL 加密工厂 +# smtp: +# ssl: +# #本地测试,先放开ssl +# enable: true +# required: true +# #开启debug模式,这样邮件发送过程的日志会在控制台打印出来,方便排查错误 +# debug: false +# socketFactory: +# class: javax.net.ssl.SSLSocketFactory + + application: + # 应用名称 + name: m2pool-auth + cloud: + nacos: + discovery: + # 服务注册地址 + server-addr: 127.0.0.1:8848 + namespace: m2_dev + group: m2_dev_group + config: + # 配置中心地址 + server-addr: 127.0.0.1:8848 + # 配置文件格式 + file-extension: yml + # 共享配置 + shared-configs: + - application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension} + namespace: m2_dev + group: m2_dev_group diff --git a/m2pool-auth/src/main/resources/templates/emailCode-en.html b/m2pool-auth/src/main/resources/templates/emailCode-en.html new file mode 100644 index 0000000..aa1d849 --- /dev/null +++ b/m2pool-auth/src/main/resources/templates/emailCode-en.html @@ -0,0 +1,50 @@ + + + +
+ + +Your mining account:
+mining machines are offline!
+If your mining rig has been abnormally disconnected, please address it promptly!
+