Sign inSign up

dockeruser124182/authservice

By dockeruser124182

•Updated over 5 years ago

Image
0

240

dockeruser124182/authservice repository overview

⁠release版本拉取:

docker pull dockeruser124182/authservice:release

# 启动 release 版本
docker run -itd --rm --name myiredService \
--add-host mail.myiredmail.com:【替换ip】 \
--env JAVA_RUN_ENVS='-Dspring.datasource.host=【替换ip】 -Dspring.datasource.port=13306 -Dspring.datasource.dynamic.datasource.primary.password=【替换密码】 -Dsecurity.token.secret=account!@# -Dmail.domain=myiredmail.com -Dmail.authentication=RbdAQc#HIzRd -Dmail.quota=1024 -Dmail.url=https://mail.myiredmail.com' \
-p 8067:8067 dockeruser124182/authservice:release /bin/bash

⁠210611更新

1、release版本自动注册。
单点登录时未注册的user自动注册到邮箱

⁠210608更新

1、注册同步用户时,同时初始化发件人信息。
2、优化注册失败提示。
3、新版本 release tag
4、传参名字改变 ssoToken

⁠210607更新

# 传参名字改变 token
⁠拉取镜像:
docker pull dockeruser124182/authservice:release
⁠运行镜像【数据库密码和host必须根据前一步安装信息修改】
docker run -itd --name myiredService --add-host mail.myiredmail.com:192.168.110.129 --env JAVA_RUN_ENVS='-Dspring.datasource.host=192.168.110.129 -Dspring.datasource.port=13306 -Dspring.datasource.dynamic.datasource.primary.password=qj6Ns13tXeav83akQSmtY1p3Tz8sSn -Dsecurity.token.secret=account!@# -Dmail.domain=myiredmail.com -Dmail.authentication=RbdAQc#HIzRd -Dmail.quota=1024 -Dmail.url=https://mail.myiredmail.com' -p 8067:8067 dockeruser124182/authservice:latest /bin/bash

ps:

根据需要修上面的参数:

⁠1、数据库相关参数:

spring.datasource.host ---指定的是iredmail部署的IP地址

...port 端口

...spring.datasource.dynamic.datasource.primary.password 邮箱服务器数据库密码,部署完邮箱服务之后请先

进行一次管理员登录,在收件箱获取密码 [收件箱—【root/Details of this iRedMail container】这封邮件]

找到形如下内容:

## MariaDB

* Root user: root
  Password: "GM0oK24wzuZQluwpEuLnFDMLvGLSwI"

* Read-only SQL user: vmail, Password: "A4xVK8ZkGsRS3yDIcNEzSxVW3d17oh"
* Read-write SQL user: vmailadmin, Password: "gnbbbc0yeX4wQxregqbHZEw9RcRONo"
* Config files:
    - Main config file (do not touch this file): /etc/my.cnf
    - Custom settings should be stored under: /opt/iredmail/custom/mysql/

GM0oK24wzuZQluwpEuLnFDMLvGLSwI 就是密码。

⁠2、其他

domain:邮箱域名,如果在邮箱服务器初始化时做了修改,此处也需要修改

secret:token密匙

authentication:注册邮箱的默认密码

url:domain+https://协议头⁠

Tag summary

Content type

Image

Digest

Size

96.4 MB

Last updated

over 5 years ago

docker pull dockeruser124182/authservice