mirror of
https://github.com/okxlin/appstore.git
synced 2025-07-13 21:02:18 +08:00
Add ms365-e5-renew-x
This commit is contained in:
parent
9068068b7d
commit
6ca8a6713d
216
apps/ms365-e5-renew-x/README.md
Normal file
216
apps/ms365-e5-renew-x/README.md
Normal file
@ -0,0 +1,216 @@
|
||||
**如需修改配置文件请进入应用目录下 Deploy 文件夹,修改 `Config.xml` 配置文件。**
|
||||
**默认密码:`123456`**
|
||||
|
||||
|
||||
以下是原作者 README
|
||||
------------
|
||||
**制作不易,欢迎Star!!!**
|
||||
|
||||
本文是基于作者SundayRX提出的E5 调用API续订服务:Microsoft 365 E5 Renew X的基础上提出的Docker版本的E5调用API续订服务。
|
||||
|
||||
基础的账号注册等过程见SundayRX的博客:https://blog.csdn.net/qq_33212020/article/details/119747634
|
||||
|
||||
|
||||
**本项目主要为学习Dockerfile和Docker的部署使用,禁止将此项目进行商业化,仅推荐学习使用。**
|
||||
|
||||
【20240307更新】修改密码的位置。密码的设置文件为容器中/app/Deploy目录下的Config.xml文件,修改内容为<LoginPassword>123456</LoginPassword>,将123456修改成自己的密码即可。
|
||||
|
||||
【20240115更新】内测:更新了通用版本。支持了多种CPU架构,包括linux/amd64,linux/arm64,linux/arm/v7,linux/arm/v5,linux/arm64/v7。
|
||||
|
||||
【20230430更新】收到反馈,已经有部分同学的账号被强制关停。
|
||||
|
||||
【20230402更新】增加了邮箱通知功能。
|
||||
|
||||
## 支持版本
|
||||
|
||||
| CPU架构 | 是否支持 |
|
||||
| :------------: | :------: |
|
||||
| linux/amd64 | 是 |
|
||||
| linux/arm64 | 是 |
|
||||
| linux/arm/v7 | 是 |
|
||||
| linux/arm/v5 | 是 |
|
||||
| Linux/arm64/v7 | 是 |
|
||||
|
||||
|
||||
|
||||
**优点:**
|
||||
|
||||
- 镜像小,仅仅225M,可以轻松部署在任何配置的服务器上,占用资源小
|
||||
- 部署方便,仅仅使用一行命令即可完成部署。
|
||||
- 可以邮件通知。
|
||||
- 可以部署在多种服务器架构上等等。
|
||||
|
||||
**你需要有:**
|
||||
|
||||
- 有Docker的环境,了解Docker的基本命令(没有也没有关系,可以很快学会)。
|
||||
- 有一个服务器/群晖NAS等。
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<details>
|
||||
<summary><h3> 一些Docker环境安装的教程</h3></summary>
|
||||
|
||||
- Docker环境搭建:https://www.jianshu.com/p/996e08b7976d
|
||||
|
||||
- 史上最全Docker环境安装指南:https://zhuanlan.zhihu.com/p/82269806
|
||||
</details>
|
||||
|
||||
<details>
|
||||
|
||||
<summary><h3> 部署步骤</h3></summary>
|
||||
|
||||
1. 运行MS365 E5 Renew X镜像,得到容器。
|
||||
|
||||
|
||||
```
|
||||
docker run -d -p 1066:1066 -e TZ=Asia/Shanghai -e sender="by123@163.com" -e pwd="UNxxxxxxxxN" -e receiver="4dddqqq9dd6@qq.com" -e adminpwd="123456" hanhongyong/ms365-e5-renew-x:pubemail
|
||||
```
|
||||
|
||||
修改-e后面的内容,其中 sender = '123456@163.com'为发送邮件的邮箱。
|
||||
receiver = '789456@qq.com'为接收邮件的邮箱。其中pwd为发送邮箱的授权码。授权码获取方式为,进入网页版163邮箱,点击设置,点击POP3/SMTP/IMAP,点击授权密码管理,新增授权码即可。
|
||||
adminpwd为web界面的登录密码。
|
||||
|
||||
2. 服务访问:输入ip:1066.
|
||||
|
||||

|
||||
|
||||
</details>
|
||||
|
||||
<details>
|
||||
<summary><h3>通用版(20240115更新)这个版本支持了多种CPU架构,包括linux/amd64,linux/arm64,linux/arm/v7,linux/arm/v5,linux/arm64/v7。</h3></summary>
|
||||
|
||||
- 增加了通用版本:这个版本支持了多种CPU架构,包括linux/amd64,linux/arm64,linux/arm/v7,linux/arm/v5,linux/arm64/v7。
|
||||
|
||||
- 这个版本后续不增加其他新的功能,需要手动去设置密码(版本太多,有些指令不同版本不一样),如果你有其他版本需求,欢迎发issue.
|
||||
|
||||
```
|
||||
docker run -d -p 1066:1066 -e TZ=Asia/Shanghai --name ms365 hanhongyong/ms365-e5-renew-x:general
|
||||
```
|
||||
|
||||
</details>
|
||||
|
||||
|
||||
|
||||
<details>
|
||||
<summary><h3>Email通知功能(推荐,20230402更新。)</h3></summary>
|
||||
|
||||
- email通知版本主要实现了检测部署的账号是否全部都正常运行。该版本会每天定时发送邮件来通知是否账号全部运行。
|
||||
|
||||
- 该版本内测使用了一个月,目前没发现什么太大的问题。
|
||||
|
||||
- 关于修改通知邮箱。推荐使用163邮箱。修改-e后面的内容,其中 sender = '123456@163.com'为发送邮件的邮箱。
|
||||
receiver = '789456@qq.com'为接收邮件的邮箱。其中pwd为发送邮箱的授权码。授权码获取方式为,进入网页版163邮箱,点击设置,点击POP3/SMTP/IMAP,点击授权密码管理,新增授权码即可。
|
||||
adminpwd为web界面的登录密码。
|
||||
|
||||
- 关于版本。已发布x86机器和arm64v8,其他版本需要可以发issue,会尽快补充。
|
||||
- 发送邮件的日志的位置:/opt/test.log
|
||||
- 发送邮件的时间为每天18点。可以通过crontab命令修改。
|
||||
|
||||
- x86版本:
|
||||
|
||||
|
||||
docker run -d -p 1066:1066 -e TZ=Asia/Shanghai -e sender="by123@163.com" -e pwd="UNxxxxxxxxN" -e receiver="4dddqqq9dd6@qq.com" -e adminpwd="123456" hanhongyong/ms365-e5-renew-x:pubemail
|
||||
|
||||
- arm64v8版本:
|
||||
|
||||
|
||||
docker run -d -p 1066:1066 -e TZ=Asia/Shanghai -e sender="byxxx@163.com" -e pwd="UxxxxWWN" -e receiver="41xxxxx@qq.com" -e adminpwd="123456" hanhongyong/ms365-e5-renew-x:arm64v8
|
||||
|
||||
|
||||
</details>
|
||||
|
||||
<details>
|
||||
<summary><h3> 监控网站运行(推荐部署)</h3></summary>
|
||||
[见文档](https://github.com/hongyonghan/Docker_Microsoft365_E5_Renew_X/blob/main/monitoring_service.md/)
|
||||
</details>
|
||||
|
||||
|
||||
<details>
|
||||
<summary><h3> 定制版(高级操作,主要是为了高级用户分享自己的站点给别人等操作。小白无需使用。)</h3></summary>
|
||||
|
||||
```
|
||||
docker run -d -p 1066:1066 -v /root/Docker_Microsoft365_E5_Renew_X/Microsoft365_E5_Renew_X/Deploy:/app/Deploy hanhongyong/ms365-e5-renew-x:latest
|
||||
```
|
||||
|
||||
其中-p为暴露服务器的端口(前面的1066,可以自行修改)和暴露容器的端口(后面的1066,可以自行修改,这个端口是在Config.xml中指定的开放的端口);-v为数据卷的挂载,前面的Deploy指的是服务器中的Deploy文件夹(可以修改,但是必须是绝对路径),/app/Deploy指的是容器内的文件夹(不能修改);--name为容器的名字。
|
||||
</details>
|
||||
|
||||
|
||||
|
||||
<details>
|
||||
<summary> <h3>备份和迁移:</h3></summary>
|
||||
|
||||
|
||||
所有的配置文件都放在/app文件路径下,如果您以后有迁移的需要可以用命令将容器中/app路径下的文件复制出来。或者在一开始的时候就可以挂载数据卷到您的之前的全部文件中。如:
|
||||
```
|
||||
docker run -d -p 1066:1066 -v /root/Docker_Microsoft365_E5_Renew_X/Microsoft365_E5_Renew_X/:/app/ hanhongyong/ms365-e5-renew-x:latest
|
||||
```
|
||||
如此便可以实现您所要求的配置文件备份的功能,且您的容器中的文件和服务器主机中文件是一样的。
|
||||
|
||||
</details>
|
||||
<details>
|
||||
<summary><h3> 轻量化镜像版本</h3></summary>
|
||||
|
||||
**为了使得容器更加稳定且好用(小白专用),latest版本中添加了vim等软件,并且更换了基础镜像,会有点大。如果介意,请使用slim版本**
|
||||
```
|
||||
docker pull hanhongyong/ms365-e5-renew-x:slim
|
||||
```
|
||||
下面部署命令时版本也改为slim版本即可。slim版本仅为225M。
|
||||
建议使用latest版本,这个版本持续修改完善下去,slim版本仅为资源受限的主机使用。
|
||||
|
||||
</details>
|
||||
|
||||
<details>
|
||||
<summary><h3>ARM64版本镜像</h3></summary>
|
||||
|
||||
```
|
||||
docker pull hanhongyong/ms365-e5-renew-x:arm
|
||||
```
|
||||
```
|
||||
docker run -d -p 1066:1066 -e TZ=Asia/Shanghai --name ms365 hanhongyong/ms365-e5-renew-x:arm
|
||||
```
|
||||
这个版本是基础版本,没有邮件通知等功能。如果需要邮件通知功能。
|
||||
</details>
|
||||
|
||||
<details>
|
||||
<summary><h3>Serverless部署</h3></summary>
|
||||
|
||||
没有服务器的同学们,可以使用koyeb进行部署。点击下面按钮一键部署:
|
||||
> [](https://app.koyeb.com/deploy?type=docker&image=docker.io/hanhongyong/ms365-e5-renew-x&name=web-renew&ports=1066;http;/)
|
||||
|
||||
koyeb部署:感谢[gd1214b](https://github.com/hongyonghan/Docker_Microsoft365_E5_Renew_X/issues/5)提出的解决方案。
|
||||
具体见文件: [ReadMe_Serverless.md](./ReadMe_Serverless.md)
|
||||
|
||||
注意:类似于heroku和koyeb等云容器平台,都会有重启实例的现象,不过heroku是每天强制重启,koyeb是隔几天重启一次。每次重启都会丢失实例在部署后的所有更改,造成数据丢失。请大家注意。感谢[ChirmyRam](https://github.com/hongyonghan/Docker_Microsoft365_E5_Renew_X/issues/15)给出的提醒。
|
||||
|
||||
</details>
|
||||
|
||||
<details>
|
||||
<summary><h3>开发相关的命令(与部署无关)</h3></summary>
|
||||
|
||||
|
||||
|
||||
```
|
||||
##构建镜像
|
||||
docker build -t ms365-e5-renew-x .
|
||||
docker tag ms365-e5-renew-x:latest hanhongyong/ms365-e5-renew-x:latest
|
||||
|
||||
#上传镜像
|
||||
docker push hanhongyong/ms365-e5-renew-x:latest
|
||||
#登录dockerhub
|
||||
docker login
|
||||
#使用buildx编译arm架构的镜像
|
||||
docker buildx build --push --tag hanhongyong/ms365-e5-renew-x:arm --platform linux/arm64/v8 -f Dockerfile_arm .
|
||||
```
|
||||
|
||||
</details>
|
||||
|
||||
### 赞助我
|
||||
|
||||
项目会持续更新,大家有啥问题可以发issue。如果可以的话,欢迎大家赞助一元钱。
|
||||
|
||||

|
13
apps/ms365-e5-renew-x/data.yml
Normal file
13
apps/ms365-e5-renew-x/data.yml
Normal file
@ -0,0 +1,13 @@
|
||||
additionalProperties:
|
||||
key: ms365-e5-renew-x
|
||||
name: Microsoft 365 E5 Renew X
|
||||
tags:
|
||||
- Tool
|
||||
shortDescZh: Docker版本的 Microsoft 365 E5 调用 API 续订服务
|
||||
shortDescEn: Docker version of Microsoft 365 E5 calls API renewal service
|
||||
type: tool
|
||||
crossVersionUpdate: true
|
||||
limit: 0
|
||||
website: https://github.com/hongyonghan/Docker_Microsoft365_E5_Renew_X
|
||||
github: https://github.com/hongyonghan/Docker_Microsoft365_E5_Renew_X
|
||||
document: https://blog.csdn.net/qq_33212020/article/details/119747634
|
76
apps/ms365-e5-renew-x/latest/Deploy/Config.xml
Normal file
76
apps/ms365-e5-renew-x/latest/Deploy/Config.xml
Normal file
@ -0,0 +1,76 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<Configuration>
|
||||
<!--站点服务器基本配置-->
|
||||
<Serivce>
|
||||
<!--服务访问端口-->
|
||||
<Port>1066</Port>
|
||||
<!--管理员密码(管理员登录路由/Admin/Login) 重要:首次启动前必须更改-->
|
||||
<LoginPassword>123456</LoginPassword>
|
||||
<!--是否启用内核多线程支持-->
|
||||
<CoreMultiThread>true</CoreMultiThread>
|
||||
<!--网站备案号(选填)-->
|
||||
<ICP></ICP>
|
||||
<!--备案管理查询机构跳转链接(选填)-->
|
||||
<ICPLink>https://beian.miit.gov.cn</ICPLink>
|
||||
</Serivce>
|
||||
<!--站点Kestrel服务器HTTPS配置 (只支持IIS证书类型 即PFX格式的证书)-->
|
||||
<HTTPS>
|
||||
<!--Kestrel是否启用HTTPS(SSL加密传输)-->
|
||||
<Enable>false</Enable>
|
||||
<!--SSL证书文件名 (需要将PFX格式的SSL证书放置于该配置文件的同级目录Deploy文件夹下) 如e5.sundayrx.net.pfx-->
|
||||
<!--不填则默认使用Dev localhost 本地证书-->
|
||||
<Certificate></Certificate>
|
||||
<!--SSL证书密钥(PFX证书的访问密钥)-->
|
||||
<Password></Password>
|
||||
</HTTPS>
|
||||
<!--共享站点配置,不共享可无视以下内容 (若要共享站点 请自备以下所需的配置信息 且配置中HTTPS必须启用)-->
|
||||
<ShareSite>
|
||||
<!--是否启用站点共享-->
|
||||
<Enable>false</Enable>
|
||||
<!--SMTP邮件发送支持-->
|
||||
<SMTP>
|
||||
<!--发件邮箱-->
|
||||
<Email></Email>
|
||||
<!--邮箱密钥-->
|
||||
<Password></Password>
|
||||
<!--SMTP服务器地址-->
|
||||
<Host>smtp.163.com</Host>
|
||||
</SMTP>
|
||||
<!--第三方OAuth登录支持(至少启用以下一种OAuth否则其他用户无法注册)-->
|
||||
<OAuth>
|
||||
<!--微软登录授权-->
|
||||
<Microsoft>
|
||||
<!--是否启用该OAuth-->
|
||||
<Enable>false</Enable>
|
||||
<!--应用程序Id-->
|
||||
<ClientId></ClientId>
|
||||
<!--应用程序访问机密-->
|
||||
<ClientSecret></ClientSecret>
|
||||
</Microsoft>
|
||||
<!--GitHub登录授权-->
|
||||
<Github>
|
||||
<!--是否启用该OAuth-->
|
||||
<Enable>false</Enable>
|
||||
<!--应用程序Id-->
|
||||
<ClientId></ClientId>
|
||||
<!--应用程序访问机密-->
|
||||
<ClientSecret></ClientSecret>
|
||||
</Github>
|
||||
</OAuth>
|
||||
<!--站点系统设置-->
|
||||
<System>
|
||||
<!--站点启动后默认是否允许用户注册 建议为false-->
|
||||
<AllowRegister>false</AllowRegister>
|
||||
<!--站点启动后默认公告(换行符请使用 
 进行换行)-->
|
||||
<Notice></Notice>
|
||||
<!--站点运营者-->
|
||||
<Master></Master>
|
||||
<!--站点运营者推广链接-->
|
||||
<MasterLink></MasterLink>
|
||||
<!--站点新用户默认配额数-->
|
||||
<DefaultQuota>1</DefaultQuota>
|
||||
<!--站点自动特赦时间间隔 (单位:天 至少30天)-->
|
||||
<AutoSpecialPardonInterval>30</AutoSpecialPardonInterval>
|
||||
</System>
|
||||
</ShareSite>
|
||||
</Configuration>
|
10
apps/ms365-e5-renew-x/latest/data.yml
Normal file
10
apps/ms365-e5-renew-x/latest/data.yml
Normal file
@ -0,0 +1,10 @@
|
||||
additionalProperties:
|
||||
formFields:
|
||||
- default: 1066
|
||||
edit: true
|
||||
envKey: PANEL_APP_PORT_HTTP
|
||||
labelEn: Port
|
||||
labelZh: 端口
|
||||
required: true
|
||||
rule: paramPort
|
||||
type: number
|
17
apps/ms365-e5-renew-x/latest/docker-compose.yml
Normal file
17
apps/ms365-e5-renew-x/latest/docker-compose.yml
Normal file
@ -0,0 +1,17 @@
|
||||
version: '3.9'
|
||||
services:
|
||||
ms365-e5-renew-x:
|
||||
image: hanhongyong/ms365-e5-renew-x:latest
|
||||
container_name: ${CONTAINER_NAME}
|
||||
environment:
|
||||
- TZ=Asia/Shanghai
|
||||
ports:
|
||||
- ${PANEL_APP_PORT_HTTP}:1066
|
||||
networks:
|
||||
- 1panel-network
|
||||
volumes:
|
||||
- ./Deploy:/app/Deploy
|
||||
- ./appdata:/app/appdata
|
||||
networks:
|
||||
1panel-network:
|
||||
external: true
|
BIN
apps/ms365-e5-renew-x/logo.png
Normal file
BIN
apps/ms365-e5-renew-x/logo.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 148 KiB |
Loading…
Reference in New Issue
Block a user