-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1. 修复 Python3.9 下邮件发送问题 2. 新增自定义证书路径配置,从上个版本更新的用户请在 `cert.db` 中, 为 `domain` 表添加 `cert_path(VARCHAR(255),is_nullable:YES)` 和 `private_key_path(VARCHAR(255),is_nullable:YES)` 3. 使用 configparse 管理配置文件,更新时请将 `config-template.ini` 复制一份改名为 `config.ini` 并重新配置
- Loading branch information
Showing
11 changed files
with
192 additions
and
81 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
*.pyc | ||
settings.py | ||
cert.db | ||
test.py | ||
cert/ | ||
.idea | ||
.idea | ||
venv | ||
.DS_Store | ||
config.ini |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
FROM python:latest | ||
VOLUME ['/app', '/cert'] | ||
WORKDIR /app | ||
RUN pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple | ||
COPY ./sources.list /etc/apt/sources.list | ||
RUN apt update -y && apt install cron -y |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
[database] | ||
Path=cert.db | ||
|
||
[letencrypt] | ||
Path=/cert/ssl | ||
ServerCertificateName=fullchain.cer | ||
PrivateKeyName = {{ domain_name }}.key | ||
|
||
[mail] | ||
Host=smtpdm.aliyun.com | ||
Port=465 | ||
UserName= | ||
PassWord= | ||
From= | ||
To= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
CRIPT=$(readlink -f "$0") | ||
SCRIPTPATH=$(dirname "$SCRIPT") | ||
|
||
cd "$SCRIPTPATH" | ||
|
||
/usr/bin/python3 cdncert.py > cdncert.log 2>&1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.