support docker

This commit is contained in:
RainSun 2020-04-04 08:45:22 +08:00
parent 8108ec5b9e
commit c67a976f61
14 changed files with 224 additions and 307 deletions

9
Dockerfile Normal file
View File

@ -0,0 +1,9 @@
FROM python:3.7-alpine
COPY requirements.txt /app/requirements.txt
WORKDIR /app
RUN pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple
COPY . /app
# ENTRYPOINT ["sh"]
# CMD ["go.sh"]

View File

@ -7,11 +7,8 @@ python3 -m venv venv
. venv/bin/activate
// 升级pip
pip install --upgrade pip
// 安装flask...
pip install Flask
pip install gunicorn
pip install pymongo
pip install flask_cors
// 根据依赖文件安装环境
pip install -r requirements.txt
// 设置全局变量
export FLASK_APP=ccb.py
export FLASK_ENV=development

8
ccb.py
View File

@ -7,17 +7,17 @@ from allFunction import manageLogin, manageActivation, manageDownload, manageUpl
app = Flask(__name__)
# 引入跨域访问处理模块
# from flask_cors import CORS
from flask_cors import CORS
# 取消跨域访问限制,方便本地测试 注册CORS, "/*" 允许访问所有api
# CORS(app, resources=r'/*')
CORS(app, resources=r'/*')
if __name__ == '__main__':
app.run()
app.run(host="0.0.0.0", debug=True, port="80")
# 测试用根路由
@app.route('/api/')
def sayHello():
return 'Hello! Glad to serve you, please go to the official website: https://ccb.canary.moe'
return 'Hello! Glad to serve you, please go to the official website: https://api.canary.moe'
# 登录或者注册
@app.route('/api/login', methods=["POST"])

View File

Before

Width:  |  Height:  |  Size: 3.4 KiB

After

Width:  |  Height:  |  Size: 3.4 KiB

74
docker/data.json Normal file

File diff suppressed because one or more lines are too long

125
getDb.py Normal file

File diff suppressed because one or more lines are too long

3
go.sh Normal file
View File

@ -0,0 +1,3 @@
#!/bin/sh
echo start
gunicorn ccb:app -c gunicorn.conf.py

View File

@ -1,7 +1,8 @@
# 并行工作线程数
workers = 4
# 监听内网端口5000【按需要更改】
bind = '127.0.0.1:5005'
# bind = '127.0.0.1:5001'
bind = '0.0.0.0:80'
# 设置守护进程【关闭连接时,程序仍在运行】
daemon = True
# 设置超时时间120s默认为30s。按自己的需求进行设置

View File

@ -7,7 +7,7 @@ setting = 'development'
# 获取数据集
def col(arg):
conn = MongoClient('mongodb://ccb:srVgEGwTf4@localhost:27017/ccb')
conn = MongoClient('mongodb://ccb:wL2wG2aD6aI1@mongo:27017/ccb')
if setting == 'development':
arg += '_test'
if arg == 'user_info':

View File

@ -1,103 +0,0 @@
127.0.0.1 - - [21/Feb/2020:16:34:13 +0800] "GET /api/ HTTP/1.0" 200 83 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:72.0) Gecko/20100101 Firefox/72.0"
127.0.0.1 - - [21/Feb/2020:16:34:23 +0800] "GET /api/s HTTP/1.0" 302 215 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:72.0) Gecko/20100101 Firefox/72.0"
127.0.0.1 - - [21/Feb/2020:16:34:23 +0800] "GET /api/ HTTP/1.0" 200 83 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:72.0) Gecko/20100101 Firefox/72.0"
127.0.0.1 - - [21/Feb/2020:22:20:49 +0800] "POST /api/login HTTP/1.0" 200 62 "https://ccb.canary.moe/account" "Mozilla/5.0 (Linux; Android 9; ONEPLUS A5000 Build/PKQ1.180716.001; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/66.0.3359.158 Mobile Safari/537.36"
127.0.0.1 - - [21/Feb/2020:22:22:20 +0800] "POST /api/login HTTP/1.0" 200 62 "https://ccb.canary.moe/account" "Mozilla/5.0 (Linux; Android 9; ONEPLUS A5000 Build/PKQ1.180716.001; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/66.0.3359.158 Mobile Safari/537.36"
127.0.0.1 - - [21/Feb/2020:22:22:25 +0800] "POST /api/login HTTP/1.0" 200 62 "https://ccb.canary.moe/account" "Mozilla/5.0 (Linux; Android 9; ONEPLUS A5000 Build/PKQ1.180716.001; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/66.0.3359.158 Mobile Safari/537.36"
127.0.0.1 - - [21/Feb/2020:22:22:30 +0800] "POST /api/login HTTP/1.0" 200 62 "https://ccb.canary.moe/account" "Mozilla/5.0 (Linux; Android 9; ONEPLUS A5000 Build/PKQ1.180716.001; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/66.0.3359.158 Mobile Safari/537.36"
127.0.0.1 - - [21/Feb/2020:22:23:33 +0800] "POST /api/login HTTP/1.0" 200 73 "https://ccb.canary.moe/account" "Mozilla/5.0 (Linux; Android 9; ONEPLUS A5000 Build/PKQ1.180716.001; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/66.0.3359.158 Mobile Safari/537.36"
127.0.0.1 - - [21/Feb/2020:22:23:39 +0800] "POST /api/upload HTTP/1.0" 200 103 "https://ccb.canary.moe/account" "Mozilla/5.0 (Linux; Android 9; ONEPLUS A5000 Build/PKQ1.180716.001; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/66.0.3359.158 Mobile Safari/537.36"
127.0.0.1 - - [21/Feb/2020:22:24:09 +0800] "POST /api/upload HTTP/1.0" 200 103 "https://ccb.canary.moe/account" "Mozilla/5.0 (Linux; Android 9; ONEPLUS A5000 Build/PKQ1.180716.001; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/66.0.3359.158 Mobile Safari/537.36"
127.0.0.1 - - [21/Feb/2020:22:43:25 +0800] "POST /api/upload HTTP/1.0" 200 103 "https://ccb.canary.moe/account" "Mozilla/5.0 (Linux; Android 9; ONEPLUS A5000 Build/PKQ1.180716.001; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/66.0.3359.158 Mobile Safari/537.36"
127.0.0.1 - - [21/Feb/2020:22:44:04 +0800] "POST /api/login HTTP/1.0" 200 73 "https://ccb.canary.moe/account" "Mozilla/5.0 (Linux; Android 9; ONEPLUS A5000 Build/PKQ1.180716.001; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/66.0.3359.158 Mobile Safari/537.36"
127.0.0.1 - - [21/Feb/2020:22:52:33 +0800] "POST /api/login HTTP/1.0" 200 104 "https://ccb.canary.moe/account" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.130 Safari/537.36"
127.0.0.1 - - [21/Feb/2020:22:52:53 +0800] "POST /api/activation HTTP/1.0" 200 73 "https://ccb.canary.moe/account" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.130 Safari/537.36"
127.0.0.1 - - [21/Feb/2020:22:56:06 +0800] "POST /api/login HTTP/1.0" 200 104 "https://ccb.canary.moe/account" "Mozilla/5.0 (Linux; Android 10; V1914A Build/QP1A.190711.020; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/74.0.3729.186 Mobile Safari/537.36"
127.0.0.1 - - [21/Feb/2020:22:56:50 +0800] "POST /api/activation HTTP/1.0" 200 73 "https://ccb.canary.moe/account" "Mozilla/5.0 (Linux; Android 10; V1914A Build/QP1A.190711.020; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/74.0.3729.186 Mobile Safari/537.36"
127.0.0.1 - - [21/Feb/2020:23:05:18 +0800] "POST /api/upload HTTP/1.0" 200 103 "https://ccb.canary.moe/account" "Mozilla/5.0 (Linux; Android 9; ONEPLUS A5000 Build/PKQ1.180716.001; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/66.0.3359.158 Mobile Safari/537.36"
127.0.0.1 - - [21/Feb/2020:23:14:39 +0800] "POST /api/upload HTTP/1.0" 200 103 "https://ccb.canary.moe/account" "Mozilla/5.0 (Linux; Android 9; ONEPLUS A5000 Build/PKQ1.180716.001; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/66.0.3359.158 Mobile Safari/537.36"
127.0.0.1 - - [22/Feb/2020:14:35:23 +0800] "POST /api/upload HTTP/1.0" 200 103 "https://ccb.canary.moe/account" "Mozilla/5.0 (Linux; Android 9; ONEPLUS A5000 Build/PKQ1.180716.001; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/66.0.3359.158 Mobile Safari/537.36"
127.0.0.1 - - [22/Feb/2020:17:41:01 +0800] "POST /api/login HTTP/1.0" 200 104 "https://ccb.canary.moe/account" "Mozilla/5.0 (Linux; Android 10; YAL-AL10 Build/HUAWEIYAL-AL10; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/74.0.3729.186 Mobile Safari/537.36"
127.0.0.1 - - [22/Feb/2020:17:41:23 +0800] "POST /api/activation HTTP/1.0" 200 73 "https://ccb.canary.moe/account" "Mozilla/5.0 (Linux; Android 10; YAL-AL10 Build/HUAWEIYAL-AL10; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/74.0.3729.186 Mobile Safari/537.36"
127.0.0.1 - - [22/Feb/2020:17:46:18 +0800] "POST /api/upload HTTP/1.0" 200 103 "https://ccb.canary.moe/account" "Mozilla/5.0 (Linux; Android 9; ONEPLUS A5000 Build/PKQ1.180716.001; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/66.0.3359.158 Mobile Safari/537.36"
127.0.0.1 - - [22/Feb/2020:18:00:19 +0800] "POST /api/login HTTP/1.0" 200 73 "https://ccb.canary.moe/account" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:73.0) Gecko/20100101 Firefox/73.0"
127.0.0.1 - - [22/Feb/2020:18:00:21 +0800] "POST /api/download HTTP/1.0" 200 999 "https://ccb.canary.moe/account" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:73.0) Gecko/20100101 Firefox/73.0"
127.0.0.1 - - [22/Feb/2020:18:00:30 +0800] "POST /api/download HTTP/1.0" 200 999 "https://ccb.canary.moe/account" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:73.0) Gecko/20100101 Firefox/73.0"
127.0.0.1 - - [22/Feb/2020:18:00:43 +0800] "POST /api/upload HTTP/1.0" 200 103 "https://ccb.canary.moe/account" "Mozilla/5.0 (Linux; Android 9; ONEPLUS A5000 Build/PKQ1.180716.001; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/66.0.3359.158 Mobile Safari/537.36"
127.0.0.1 - - [22/Feb/2020:18:00:52 +0800] "POST /api/download HTTP/1.0" 200 999 "https://ccb.canary.moe/account" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:73.0) Gecko/20100101 Firefox/73.0"
127.0.0.1 - - [22/Feb/2020:18:02:44 +0800] "POST /api/download HTTP/1.0" 200 999 "https://ccb.canary.moe/account" "Mozilla/5.0 (Linux; Android 9; ONEPLUS A5000 Build/PKQ1.180716.001; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/66.0.3359.158 Mobile Safari/537.36"
127.0.0.1 - - [22/Feb/2020:18:05:16 +0800] "POST /api/login HTTP/1.0" 200 73 "https://ccb.canary.moe/account" "Mozilla/5.0 (Linux; Android 10; PCT-AL10 Build/HUAWEIPCT-AL10; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/74.0.3729.186 Mobile Safari/537.36"
127.0.0.1 - - [22/Feb/2020:18:05:20 +0800] "POST /api/download HTTP/1.0" 200 999 "https://ccb.canary.moe/account" "Mozilla/5.0 (Linux; Android 10; PCT-AL10 Build/HUAWEIPCT-AL10; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/74.0.3729.186 Mobile Safari/537.36"
127.0.0.1 - - [22/Feb/2020:18:10:41 +0800] "POST /api/download HTTP/1.0" 200 999 "http://localhost:8080/account" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.130 Safari/537.36"
127.0.0.1 - - [22/Feb/2020:18:11:32 +0800] "POST /api/login HTTP/1.0" 200 73 "https://ccb.canary.moe/account" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.130 Safari/537.36"
127.0.0.1 - - [22/Feb/2020:18:11:34 +0800] "POST /api/download HTTP/1.0" 200 999 "https://ccb.canary.moe/account" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.130 Safari/537.36"
127.0.0.1 - - [22/Feb/2020:23:49:16 +0800] "POST /api/upload HTTP/1.0" 200 88 "https://ccb.canary.moe/account" "Mozilla/5.0 (Linux; Android 9; ONEPLUS A5000 Build/PKQ1.180716.001; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/66.0.3359.158 Mobile Safari/537.36"
127.0.0.1 - - [22/Feb/2020:23:59:28 +0800] "POST /api/download HTTP/1.0" 200 1220 "https://ccb.canary.moe/account" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:73.0) Gecko/20100101 Firefox/73.0"
127.0.0.1 - - [23/Feb/2020:00:37:22 +0800] "POST /api/login HTTP/1.0" 200 94 "https://ccb.canary.moe/account" "Mozilla/5.0 (Android 9; Mobile; rv:68.0) Gecko/68.0 Firefox/68.0"
127.0.0.1 - - [23/Feb/2020:00:38:11 +0800] "POST /api/activation HTTP/1.0" 200 76 "https://ccb.canary.moe/account" "Mozilla/5.0 (Android 9; Mobile; rv:68.0) Gecko/68.0 Firefox/68.0"
127.0.0.1 - - [23/Feb/2020:00:38:20 +0800] "POST /api/activation HTTP/1.0" 200 76 "https://ccb.canary.moe/account" "Mozilla/5.0 (Android 9; Mobile; rv:68.0) Gecko/68.0 Firefox/68.0"
127.0.0.1 - - [23/Feb/2020:10:24:51 +0800] "POST /api/download HTTP/1.0" 200 1220 "https://ccb.canary.moe/account" "Mozilla/5.0 (Linux; Android 9; ONEPLUS A5000 Build/PKQ1.180716.001; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/66.0.3359.158 Mobile Safari/537.36"
127.0.0.1 - - [23/Feb/2020:10:25:17 +0800] "POST /api/upload HTTP/1.0" 200 88 "https://ccb.canary.moe/account" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:73.0) Gecko/20100101 Firefox/73.0"
127.0.0.1 - - [23/Feb/2020:10:25:22 +0800] "POST /api/download HTTP/1.0" 200 1432 "https://ccb.canary.moe/account" "Mozilla/5.0 (Linux; Android 9; ONEPLUS A5000 Build/PKQ1.180716.001; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/66.0.3359.158 Mobile Safari/537.36"
127.0.0.1 - - [23/Feb/2020:10:35:10 +0800] "POST /api/upload HTTP/1.0" 200 88 "https://ccb.canary.moe/account" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:73.0) Gecko/20100101 Firefox/73.0"
127.0.0.1 - - [23/Feb/2020:12:02:24 +0800] "POST /api/upload HTTP/1.0" 200 88 "https://ccb.canary.moe/account" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:73.0) Gecko/20100101 Firefox/73.0"
127.0.0.1 - - [23/Feb/2020:12:02:38 +0800] "POST /api/download HTTP/1.0" 200 1432 "https://ccb.canary.moe/account" "Mozilla/5.0 (Linux; Android 9; ONEPLUS A5000 Build/PKQ1.180716.001; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/66.0.3359.158 Mobile Safari/537.36"
127.0.0.1 - - [23/Feb/2020:12:33:47 +0800] "POST /api/download HTTP/1.0" 200 1432 "https://ccb.canary.moe/account" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:73.0) Gecko/20100101 Firefox/73.0"
127.0.0.1 - - [23/Feb/2020:12:50:46 +0800] "POST /api/download HTTP/1.0" 200 1432 "https://ccb.canary.moe/account" "Mozilla/5.0 (Linux; Android 10; PCT-AL10 Build/HUAWEIPCT-AL10; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/74.0.3729.186 Mobile Safari/537.36"
127.0.0.1 - - [23/Feb/2020:12:51:40 +0800] "POST /api/download HTTP/1.0" 200 1432 "https://ccb.canary.moe/account" "Mozilla/5.0 (Linux; Android 10; PCT-AL10 Build/HUAWEIPCT-AL10; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/74.0.3729.186 Mobile Safari/537.36"
127.0.0.1 - - [23/Feb/2020:12:55:45 +0800] "POST /api/upload HTTP/1.0" 200 88 "https://ccb.canary.moe/account" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:73.0) Gecko/20100101 Firefox/73.0"
127.0.0.1 - - [23/Feb/2020:12:55:59 +0800] "POST /api/download HTTP/1.0" 200 2796 "https://ccb.canary.moe/account" "Mozilla/5.0 (Linux; Android 9; ONEPLUS A5000 Build/PKQ1.180716.001; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/66.0.3359.158 Mobile Safari/537.36"
127.0.0.1 - - [23/Feb/2020:13:22:05 +0800] "POST /api/upload HTTP/1.0" 200 88 "https://ccb.canary.moe/account" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:73.0) Gecko/20100101 Firefox/73.0"
127.0.0.1 - - [23/Feb/2020:13:22:31 +0800] "POST /api/download HTTP/1.0" 200 10668 "https://ccb.canary.moe/account" "Mozilla/5.0 (Linux; Android 9; ONEPLUS A5000 Build/PKQ1.180716.001; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/66.0.3359.158 Mobile Safari/537.36"
127.0.0.1 - - [23/Feb/2020:13:40:48 +0800] "POST /api/download HTTP/1.0" 200 10668 "http://localhost:8080/account" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.130 Safari/537.36"
127.0.0.1 - - [23/Feb/2020:17:45:58 +0800] "POST /api/login HTTP/1.0" 200 58 "http://localhost:8080/account" "Mozilla/5.0 (iPhone; CPU iPhone OS 11_0 like Mac OS X) AppleWebKit/604.1.38 (KHTML, like Gecko) Version/11.0 Mobile/15A372 Safari/604.1"
127.0.0.1 - - [23/Feb/2020:17:46:00 +0800] "POST /api/download HTTP/1.0" 200 10668 "http://localhost:8080/account" "Mozilla/5.0 (iPhone; CPU iPhone OS 11_0 like Mac OS X) AppleWebKit/604.1.38 (KHTML, like Gecko) Version/11.0 Mobile/15A372 Safari/604.1"
127.0.0.1 - - [23/Feb/2020:19:50:27 +0800] "POST /api/login HTTP/1.0" 200 58 "http://localhost:8080/account" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.130 Safari/537.36"
127.0.0.1 - - [23/Feb/2020:19:50:29 +0800] "POST /api/download HTTP/1.0" 200 10668 "http://localhost:8080/account" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.130 Safari/537.36"
127.0.0.1 - - [23/Feb/2020:20:43:21 +0800] "POST /api/login HTTP/1.0" 200 94 "https://ccb.canary.moe/account" "Mozilla/5.0 (Android 9; Mobile; rv:68.0) Gecko/68.0 Firefox/68.0"
127.0.0.1 - - [23/Feb/2020:20:43:59 +0800] "POST /api/login HTTP/1.0" 200 58 "https://ccb.canary.moe/account" "Mozilla/5.0 (Android 9; Mobile; rv:68.0) Gecko/68.0 Firefox/68.0"
127.0.0.1 - - [23/Feb/2020:20:44:01 +0800] "POST /api/download HTTP/1.0" 200 10668 "https://ccb.canary.moe/account" "Mozilla/5.0 (Android 9; Mobile; rv:68.0) Gecko/68.0 Firefox/68.0"
127.0.0.1 - - [24/Feb/2020:08:04:16 +0800] "POST /api/download HTTP/1.0" 200 10668 "https://ccb.canary.moe/account" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:73.0) Gecko/20100101 Firefox/73.0"
127.0.0.1 - - [24/Feb/2020:08:53:02 +0800] "POST /api/download HTTP/1.0" 200 10668 "http://localhost:8080/account" "Mozilla/5.0 (iPhone; CPU iPhone OS 11_0 like Mac OS X) AppleWebKit/604.1.38 (KHTML, like Gecko) Version/11.0 Mobile/15A372 Safari/604.1"
127.0.0.1 - - [24/Feb/2020:11:37:49 +0800] "POST /api/login HTTP/1.0" 200 58 "https://ccb.canary.moe/account" "Mozilla/5.0 (Linux; Android 9; ONEPLUS A5000 Build/PKQ1.180716.001; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/66.0.3359.158 Mobile Safari/537.36"
127.0.0.1 - - [24/Feb/2020:11:40:24 +0800] "POST /api/login HTTP/1.0" 200 58 "http://localhost:8080/account" "Mozilla/5.0 (iPhone; CPU iPhone OS 11_0 like Mac OS X) AppleWebKit/604.1.38 (KHTML, like Gecko) Version/11.0 Mobile/15A372 Safari/604.1"
127.0.0.1 - - [24/Feb/2020:11:59:49 +0800] "POST /api/upload HTTP/1.0" 200 88 "http://localhost:8080/account" "Mozilla/5.0 (iPhone; CPU iPhone OS 11_0 like Mac OS X) AppleWebKit/604.1.38 (KHTML, like Gecko) Version/11.0 Mobile/15A372 Safari/604.1"
127.0.0.1 - - [24/Feb/2020:11:59:51 +0800] "POST /api/download HTTP/1.0" 200 44 "http://localhost:8080/account" "Mozilla/5.0 (iPhone; CPU iPhone OS 11_0 like Mac OS X) AppleWebKit/604.1.38 (KHTML, like Gecko) Version/11.0 Mobile/15A372 Safari/604.1"
127.0.0.1 - - [24/Feb/2020:12:00:02 +0800] "POST /api/upload HTTP/1.0" 200 88 "https://ccb.canary.moe/account" "Mozilla/5.0 (Linux; Android 9; ONEPLUS A5000 Build/PKQ1.180716.001; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/66.0.3359.158 Mobile Safari/537.36"
127.0.0.1 - - [24/Feb/2020:12:00:08 +0800] "POST /api/download HTTP/1.0" 200 10668 "http://localhost:8080/account" "Mozilla/5.0 (iPhone; CPU iPhone OS 11_0 like Mac OS X) AppleWebKit/604.1.38 (KHTML, like Gecko) Version/11.0 Mobile/15A372 Safari/604.1"
127.0.0.1 - - [24/Feb/2020:12:29:42 +0800] "POST /api/login HTTP/1.0" 200 58 "http://localhost:8080/account" "Mozilla/5.0 (iPhone; CPU iPhone OS 11_0 like Mac OS X) AppleWebKit/604.1.38 (KHTML, like Gecko) Version/11.0 Mobile/15A372 Safari/604.1"
127.0.0.1 - - [24/Feb/2020:12:29:49 +0800] "POST /api/download HTTP/1.0" 200 10668 "http://localhost:8080/account" "Mozilla/5.0 (iPhone; CPU iPhone OS 11_0 like Mac OS X) AppleWebKit/604.1.38 (KHTML, like Gecko) Version/11.0 Mobile/15A372 Safari/604.1"
127.0.0.1 - - [24/Feb/2020:12:40:48 +0800] "POST /api/login HTTP/1.0" 200 58 "https://ccb.canary.moe/account" "Mozilla/5.0 (Linux; Android 9; ONEPLUS A5000 Build/PKQ1.180716.001; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/66.0.3359.158 Mobile Safari/537.36"
127.0.0.1 - - [24/Feb/2020:12:40:49 +0800] "POST /api/download HTTP/1.0" 200 10668 "https://ccb.canary.moe/account" "Mozilla/5.0 (Linux; Android 9; ONEPLUS A5000 Build/PKQ1.180716.001; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/66.0.3359.158 Mobile Safari/537.36"
127.0.0.1 - - [24/Feb/2020:12:45:40 +0800] "POST /api/login HTTP/1.0" 200 58 "https://ccb.canary.moe/account" "Mozilla/5.0 (Android 9; Mobile; rv:68.0) Gecko/68.0 Firefox/68.0"
127.0.0.1 - - [24/Feb/2020:12:45:43 +0800] "POST /api/download HTTP/1.0" 200 10668 "https://ccb.canary.moe/account" "Mozilla/5.0 (Android 9; Mobile; rv:68.0) Gecko/68.0 Firefox/68.0"
127.0.0.1 - - [24/Feb/2020:15:36:50 +0800] "POST /api/login HTTP/1.0" 200 52 "https://ccb.canary.moe/account" "Mozilla/5.0 (Linux; Android 9; ONEPLUS A5000 Build/PKQ1.180716.001; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/66.0.3359.126 MQQBrowser/6.2 TBS/045120 Mobile Safari/537.36 V1_AND_SQ_8.2.7_1334_YYB_D QQ/8.2.7.4410 NetType/WIFI WebP/0.3.0 Pixel/1080 StatusBarHeight/64 SimpleUISwitch/1"
127.0.0.1 - - [24/Feb/2020:15:36:58 +0800] "POST /api/login HTTP/1.0" 200 58 "https://ccb.canary.moe/account" "Mozilla/5.0 (Linux; Android 9; ONEPLUS A5000 Build/PKQ1.180716.001; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/66.0.3359.126 MQQBrowser/6.2 TBS/045120 Mobile Safari/537.36 V1_AND_SQ_8.2.7_1334_YYB_D QQ/8.2.7.4410 NetType/WIFI WebP/0.3.0 Pixel/1080 StatusBarHeight/64 SimpleUISwitch/1"
127.0.0.1 - - [24/Feb/2020:15:36:59 +0800] "POST /api/download HTTP/1.0" 200 10668 "https://ccb.canary.moe/account" "Mozilla/5.0 (Linux; Android 9; ONEPLUS A5000 Build/PKQ1.180716.001; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/66.0.3359.126 MQQBrowser/6.2 TBS/045120 Mobile Safari/537.36 V1_AND_SQ_8.2.7_1334_YYB_D QQ/8.2.7.4410 NetType/WIFI WebP/0.3.0 Pixel/1080 StatusBarHeight/64 SimpleUISwitch/1"
127.0.0.1 - - [25/Feb/2020:08:19:59 +0800] "POST /api/upload HTTP/1.0" 200 88 "https://ccb.canary.moe/account" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:73.0) Gecko/20100101 Firefox/73.0"
127.0.0.1 - - [25/Feb/2020:08:28:41 +0800] "POST /api/download HTTP/1.0" 200 10860 "https://ccb.canary.moe/account" "Mozilla/5.0 (Linux; Android 9; ONEPLUS A5000 Build/PKQ1.180716.001; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/66.0.3359.158 Mobile Safari/537.36"
127.0.0.1 - - [25/Feb/2020:08:56:35 +0800] "POST /api/download HTTP/1.0" 200 10860 "https://ccb.canary.moe/account" "Mozilla/5.0 (Linux; Android 9; ONEPLUS A5000 Build/PKQ1.180716.001; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/66.0.3359.158 Mobile Safari/537.36"
127.0.0.1 - - [25/Feb/2020:08:56:47 +0800] "POST /api/download HTTP/1.0" 200 10860 "https://ccb.canary.moe/account" "Mozilla/5.0 (Linux; Android 9; ONEPLUS A5000 Build/PKQ1.180716.001; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/66.0.3359.158 Mobile Safari/537.36"
127.0.0.1 - - [25/Feb/2020:08:56:52 +0800] "POST /api/download HTTP/1.0" 200 10860 "https://ccb.canary.moe/account" "Mozilla/5.0 (Linux; Android 9; ONEPLUS A5000 Build/PKQ1.180716.001; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/66.0.3359.158 Mobile Safari/537.36"
127.0.0.1 - - [25/Feb/2020:08:56:54 +0800] "POST /api/download HTTP/1.0" 200 10860 "https://ccb.canary.moe/account" "Mozilla/5.0 (Linux; Android 9; ONEPLUS A5000 Build/PKQ1.180716.001; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/66.0.3359.158 Mobile Safari/537.36"
127.0.0.1 - - [25/Feb/2020:08:56:55 +0800] "POST /api/download HTTP/1.0" 200 10860 "https://ccb.canary.moe/account" "Mozilla/5.0 (Linux; Android 9; ONEPLUS A5000 Build/PKQ1.180716.001; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/66.0.3359.158 Mobile Safari/537.36"
127.0.0.1 - - [25/Feb/2020:08:56:57 +0800] "POST /api/download HTTP/1.0" 200 10860 "https://ccb.canary.moe/account" "Mozilla/5.0 (Linux; Android 9; ONEPLUS A5000 Build/PKQ1.180716.001; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/66.0.3359.158 Mobile Safari/537.36"
127.0.0.1 - - [25/Feb/2020:08:57:00 +0800] "POST /api/download HTTP/1.0" 200 10860 "https://ccb.canary.moe/account" "Mozilla/5.0 (Linux; Android 9; ONEPLUS A5000 Build/PKQ1.180716.001; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/66.0.3359.158 Mobile Safari/537.36"
127.0.0.1 - - [26/Feb/2020:08:22:22 +0800] "POST /api/login HTTP/1.0" 200 58 "http://localhost:8080/account" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.130 Safari/537.36"
127.0.0.1 - - [26/Feb/2020:08:22:24 +0800] "POST /api/download HTTP/1.0" 200 10860 "http://localhost:8080/account" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.130 Safari/537.36"
127.0.0.1 - - [26/Feb/2020:13:54:30 +0800] "POST /api/login HTTP/1.0" 200 58 "https://ccb.canary.moe/account" "Mozilla/5.0 (Linux; Android 9; ONEPLUS A5000 Build/PKQ1.180716.001; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/66.0.3359.158 Mobile Safari/537.36"
127.0.0.1 - - [26/Feb/2020:13:54:32 +0800] "POST /api/download HTTP/1.0" 200 10860 "https://ccb.canary.moe/account" "Mozilla/5.0 (Linux; Android 9; ONEPLUS A5000 Build/PKQ1.180716.001; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/66.0.3359.158 Mobile Safari/537.36"
127.0.0.1 - - [26/Feb/2020:15:46:26 +0800] "POST /api/login HTTP/1.0" 200 106 "https://ccb.canary.moe/account" "Mozilla/5.0 (Linux; Android 10; YAL-AL00 Build/HUAWEIYAL-AL00; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/74.0.3729.186 Mobile Safari/537.36"
127.0.0.1 - - [26/Feb/2020:15:47:06 +0800] "POST /api/activation HTTP/1.0" 200 58 "https://ccb.canary.moe/account" "Mozilla/5.0 (Linux; Android 10; YAL-AL00 Build/HUAWEIYAL-AL00; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/74.0.3729.186 Mobile Safari/537.36"
127.0.0.1 - - [26/Feb/2020:15:57:12 +0800] "POST /api/login HTTP/1.0" 200 52 "https://ccb.canary.moe/account" "Mozilla/5.0 (Linux; Android 10; YAL-AL00 Build/HUAWEIYAL-AL00; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/74.0.3729.186 Mobile Safari/537.36"
127.0.0.1 - - [26/Feb/2020:15:57:22 +0800] "POST /api/login HTTP/1.0" 200 52 "https://ccb.canary.moe/account" "Mozilla/5.0 (Linux; Android 10; YAL-AL00 Build/HUAWEIYAL-AL00; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/74.0.3729.186 Mobile Safari/537.36"
127.0.0.1 - - [26/Feb/2020:15:57:34 +0800] "POST /api/login HTTP/1.0" 200 52 "https://ccb.canary.moe/account" "Mozilla/5.0 (Linux; Android 10; YAL-AL00 Build/HUAWEIYAL-AL00; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/74.0.3729.186 Mobile Safari/537.36"
127.0.0.1 - - [26/Feb/2020:15:57:45 +0800] "POST /api/login HTTP/1.0" 200 58 "https://ccb.canary.moe/account" "Mozilla/5.0 (Linux; Android 10; YAL-AL00 Build/HUAWEIYAL-AL00; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/74.0.3729.186 Mobile Safari/537.36"
127.0.0.1 - - [27/Feb/2020:16:02:37 +0800] "POST /api/download HTTP/1.0" 200 10860 "https://ccb.canary.moe/account" "Mozilla/5.0 (Linux; Android 9; ONEPLUS A5000 Build/PKQ1.180716.001; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/66.0.3359.158 Mobile Safari/537.36"
127.0.0.1 - - [27/Feb/2020:16:03:11 +0800] "POST /api/upload HTTP/1.0" 200 88 "https://ccb.canary.moe/account" "Mozilla/5.0 (Linux; Android 9; ONEPLUS A5000 Build/PKQ1.180716.001; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/66.0.3359.158 Mobile Safari/537.36"
127.0.0.1 - - [28/Feb/2020:22:12:56 +0800] "POST /api/upload HTTP/1.0" 200 88 "https://ccb.canary.moe/account" "Mozilla/5.0 (Linux; Android 9; ONEPLUS A5000 Build/PKQ1.180716.001; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/66.0.3359.158 Mobile Safari/537.36"
127.0.0.1 - - [28/Feb/2020:22:13:10 +0800] "POST /api/upload HTTP/1.0" 200 88 "https://ccb.canary.moe/account" "Mozilla/5.0 (Linux; Android 9; ONEPLUS A5000 Build/PKQ1.180716.001; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/66.0.3359.158 Mobile Safari/537.36"
127.0.0.1 - - [28/Feb/2020:22:31:10 +0800] "POST /api/download HTTP/1.0" 200 11032 "https://ccb.canary.moe/account" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:73.0) Gecko/20100101 Firefox/73.0"
127.0.0.1 - - [29/Feb/2020:07:50:28 +0800] "POST /api/login HTTP/1.0" 200 52 "http://localhost:8080/account" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.122 Safari/537.36"
127.0.0.1 - - [29/Feb/2020:07:51:21 +0800] "POST /api/login HTTP/1.0" 200 58 "http://localhost:8080/account" "Mozilla/5.0 (iPhone; CPU iPhone OS 13_2_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.3 Mobile/15E148 Safari/604.1"
127.0.0.1 - - [29/Feb/2020:08:01:31 +0800] "POST /api/download HTTP/1.0" 200 11032 "https://ccb.canary.moe/account" "Mozilla/5.0 (Android 9; Mobile; rv:68.0) Gecko/68.0 Firefox/68.0"

View File

@ -1,159 +0,0 @@
[2020-02-21 16:33:20 +0800] [17128] [INFO] Starting gunicorn 20.0.4
[2020-02-21 16:33:20 +0800] [17128] [INFO] Listening at: http://127.0.0.1:5005 (17128)
[2020-02-21 16:33:20 +0800] [17128] [INFO] Using worker: sync
[2020-02-21 16:33:20 +0800] [17131] [INFO] Booting worker with pid: 17131
[2020-02-21 18:03:47 +0800] [17128] [INFO] Handling signal: term
[2020-02-21 18:03:47 +0800] [17131] [INFO] Worker exiting (pid: 17131)
[2020-02-21 18:03:47 +0800] [17128] [INFO] Shutting down: Master
[2020-02-21 18:20:16 +0800] [1283] [INFO] Starting gunicorn 20.0.4
[2020-02-21 18:20:16 +0800] [1283] [INFO] Listening at: http://127.0.0.1:5005 (1283)
[2020-02-21 18:20:16 +0800] [1283] [INFO] Using worker: sync
[2020-02-21 18:20:16 +0800] [1286] [INFO] Booting worker with pid: 1286
[2020-02-21 18:21:50 +0800] [1283] [INFO] Handling signal: term
[2020-02-21 18:21:50 +0800] [1286] [INFO] Worker exiting (pid: 1286)
[2020-02-21 18:21:50 +0800] [1283] [INFO] Shutting down: Master
[2020-02-21 22:10:36 +0800] [14188] [INFO] Starting gunicorn 20.0.4
[2020-02-21 22:10:36 +0800] [14188] [INFO] Listening at: http://127.0.0.1:5005 (14188)
[2020-02-21 22:10:36 +0800] [14188] [INFO] Using worker: sync
[2020-02-21 22:10:36 +0800] [14191] [INFO] Booting worker with pid: 14191
[2020-02-21 22:11:00 +0800] [14188] [INFO] Handling signal: term
[2020-02-21 22:11:00 +0800] [14191] [INFO] Worker exiting (pid: 14191)
[2020-02-21 22:11:00 +0800] [14188] [INFO] Shutting down: Master
[2020-02-21 22:11:21 +0800] [14679] [INFO] Starting gunicorn 20.0.4
[2020-02-21 22:11:21 +0800] [14679] [INFO] Listening at: http://127.0.0.1:5005 (14679)
[2020-02-21 22:11:21 +0800] [14679] [INFO] Using worker: sync
[2020-02-21 22:11:21 +0800] [14682] [INFO] Booting worker with pid: 14682
[2020-02-21 22:11:21 +0800] [14683] [INFO] Booting worker with pid: 14683
[2020-02-21 22:11:21 +0800] [14684] [INFO] Booting worker with pid: 14684
[2020-02-21 22:11:21 +0800] [14685] [INFO] Booting worker with pid: 14685
[2020-02-21 22:22:08 +0800] [14679] [INFO] Handling signal: term
[2020-02-21 22:22:08 +0800] [14682] [INFO] Worker exiting (pid: 14682)
[2020-02-21 22:22:08 +0800] [14683] [INFO] Worker exiting (pid: 14683)
[2020-02-21 22:22:08 +0800] [14684] [INFO] Worker exiting (pid: 14684)
[2020-02-21 22:22:08 +0800] [14685] [INFO] Worker exiting (pid: 14685)
[2020-02-21 22:22:09 +0800] [14679] [INFO] Shutting down: Master
[2020-02-21 22:22:18 +0800] [21480] [INFO] Starting gunicorn 20.0.4
[2020-02-21 22:22:18 +0800] [21480] [INFO] Listening at: http://127.0.0.1:5005 (21480)
[2020-02-21 22:22:18 +0800] [21480] [INFO] Using worker: sync
[2020-02-21 22:22:18 +0800] [21483] [INFO] Booting worker with pid: 21483
[2020-02-21 22:22:18 +0800] [21484] [INFO] Booting worker with pid: 21484
[2020-02-21 22:22:18 +0800] [21487] [INFO] Booting worker with pid: 21487
[2020-02-21 22:22:18 +0800] [21490] [INFO] Booting worker with pid: 21490
[2020-02-21 22:23:27 +0800] [21480] [INFO] Handling signal: term
[2020-02-21 22:23:27 +0800] [21490] [INFO] Worker exiting (pid: 21490)
[2020-02-21 22:23:27 +0800] [21483] [INFO] Worker exiting (pid: 21483)
[2020-02-21 22:23:27 +0800] [21484] [INFO] Worker exiting (pid: 21484)
[2020-02-21 22:23:27 +0800] [21487] [INFO] Worker exiting (pid: 21487)
[2020-02-21 22:23:28 +0800] [21480] [INFO] Shutting down: Master
[2020-02-21 22:23:32 +0800] [22251] [INFO] Starting gunicorn 20.0.4
[2020-02-21 22:23:32 +0800] [22251] [INFO] Listening at: http://127.0.0.1:5005 (22251)
[2020-02-21 22:23:32 +0800] [22251] [INFO] Using worker: sync
[2020-02-21 22:23:32 +0800] [22259] [INFO] Booting worker with pid: 22259
[2020-02-21 22:23:32 +0800] [22260] [INFO] Booting worker with pid: 22260
[2020-02-21 22:23:32 +0800] [22261] [INFO] Booting worker with pid: 22261
[2020-02-21 22:23:32 +0800] [22262] [INFO] Booting worker with pid: 22262
[2020-02-22 20:04:39 +0800] [22259] [INFO] Worker exiting (pid: 22259)
[2020-02-22 20:04:39 +0800] [22260] [INFO] Worker exiting (pid: 22260)
[2020-02-22 20:04:39 +0800] [22251] [INFO] Handling signal: term
[2020-02-22 20:04:39 +0800] [22251] [INFO] Shutting down: Master
[2020-02-22 20:04:58 +0800] [779] [INFO] Starting gunicorn 20.0.4
[2020-02-22 20:04:58 +0800] [779] [INFO] Listening at: http://127.0.0.1:5005 (779)
[2020-02-22 20:04:58 +0800] [779] [INFO] Using worker: sync
[2020-02-22 20:04:58 +0800] [790] [INFO] Booting worker with pid: 790
[2020-02-22 20:04:58 +0800] [793] [INFO] Booting worker with pid: 793
[2020-02-22 20:04:58 +0800] [796] [INFO] Booting worker with pid: 796
[2020-02-22 20:04:58 +0800] [799] [INFO] Booting worker with pid: 799
[2020-02-22 20:10:43 +0800] [779] [CRITICAL] WORKER TIMEOUT (pid:793)
[2020-02-22 20:10:43 +0800] [779] [CRITICAL] WORKER TIMEOUT (pid:796)
[2020-02-22 20:10:43 +0800] [796] [INFO] Worker exiting (pid: 796)
[2020-02-22 20:10:43 +0800] [793] [INFO] Worker exiting (pid: 793)
[2020-02-22 20:10:43 +0800] [779] [CRITICAL] WORKER TIMEOUT (pid:790)
[2020-02-22 20:10:43 +0800] [779] [CRITICAL] WORKER TIMEOUT (pid:799)
[2020-02-22 20:10:43 +0800] [790] [INFO] Worker exiting (pid: 790)
[2020-02-22 20:10:43 +0800] [799] [INFO] Worker exiting (pid: 799)
[2020-02-22 20:10:44 +0800] [1116] [INFO] Booting worker with pid: 1116
[2020-02-22 20:10:44 +0800] [1117] [INFO] Booting worker with pid: 1117
[2020-02-22 20:10:44 +0800] [1118] [INFO] Booting worker with pid: 1118
[2020-02-22 20:10:44 +0800] [1119] [INFO] Booting worker with pid: 1119
[2020-02-22 20:11:00 +0800] [779] [INFO] Handling signal: term
[2020-02-22 20:11:00 +0800] [1118] [INFO] Worker exiting (pid: 1118)
[2020-02-22 20:11:00 +0800] [1117] [INFO] Worker exiting (pid: 1117)
[2020-02-22 20:11:00 +0800] [1116] [INFO] Worker exiting (pid: 1116)
[2020-02-22 20:11:00 +0800] [1119] [INFO] Worker exiting (pid: 1119)
[2020-02-22 20:11:01 +0800] [779] [INFO] Shutting down: Master
[2020-02-22 20:11:19 +0800] [799] [INFO] Starting gunicorn 20.0.4
[2020-02-22 20:11:19 +0800] [799] [INFO] Listening at: http://127.0.0.1:5005 (799)
[2020-02-22 20:11:19 +0800] [799] [INFO] Using worker: sync
[2020-02-22 20:11:19 +0800] [816] [INFO] Booting worker with pid: 816
[2020-02-22 20:11:19 +0800] [817] [INFO] Booting worker with pid: 817
[2020-02-22 20:11:19 +0800] [818] [INFO] Booting worker with pid: 818
[2020-02-22 20:11:19 +0800] [823] [INFO] Booting worker with pid: 823
[2020-02-22 20:16:53 +0800] [818] [INFO] Worker exiting (pid: 818)
[2020-02-22 20:16:53 +0800] [817] [INFO] Worker exiting (pid: 817)
[2020-02-22 20:16:53 +0800] [816] [INFO] Worker exiting (pid: 816)
[2020-02-22 20:16:53 +0800] [799] [INFO] Handling signal: term
[2020-02-22 20:16:53 +0800] [823] [INFO] Worker exiting (pid: 823)
[2020-02-22 20:16:53 +0800] [799] [INFO] Shutting down: Master
[2020-02-22 20:17:09 +0800] [791] [INFO] Starting gunicorn 20.0.4
[2020-02-22 20:17:09 +0800] [791] [INFO] Listening at: http://127.0.0.1:5005 (791)
[2020-02-22 20:17:09 +0800] [791] [INFO] Using worker: sync
[2020-02-22 20:17:09 +0800] [808] [INFO] Booting worker with pid: 808
[2020-02-22 20:17:09 +0800] [809] [INFO] Booting worker with pid: 809
[2020-02-22 20:17:09 +0800] [810] [INFO] Booting worker with pid: 810
[2020-02-22 20:17:09 +0800] [811] [INFO] Booting worker with pid: 811
[2020-02-23 08:17:48 +0800] [808] [INFO] Worker exiting (pid: 808)
[2020-02-23 08:17:48 +0800] [791] [INFO] Handling signal: term
[2020-02-23 08:17:48 +0800] [810] [INFO] Worker exiting (pid: 810)
[2020-02-23 08:17:48 +0800] [809] [INFO] Worker exiting (pid: 809)
[2020-02-23 08:17:48 +0800] [811] [INFO] Worker exiting (pid: 811)
[2020-02-23 08:17:48 +0800] [791] [INFO] Shutting down: Master
[2020-02-23 08:18:08 +0800] [810] [INFO] Starting gunicorn 20.0.4
[2020-02-23 08:18:08 +0800] [810] [INFO] Listening at: http://127.0.0.1:5005 (810)
[2020-02-23 08:18:08 +0800] [810] [INFO] Using worker: sync
[2020-02-23 08:18:08 +0800] [845] [INFO] Booting worker with pid: 845
[2020-02-23 08:18:08 +0800] [854] [INFO] Booting worker with pid: 854
[2020-02-23 08:18:08 +0800] [858] [INFO] Booting worker with pid: 858
[2020-02-23 08:18:08 +0800] [857] [INFO] Booting worker with pid: 857
[2020-02-23 08:21:22 +0800] [810] [CRITICAL] WORKER TIMEOUT (pid:857)
[2020-02-23 08:21:22 +0800] [810] [CRITICAL] WORKER TIMEOUT (pid:858)
[2020-02-23 08:21:22 +0800] [810] [CRITICAL] WORKER TIMEOUT (pid:845)
[2020-02-23 08:21:22 +0800] [857] [INFO] Worker exiting (pid: 857)
[2020-02-23 08:21:22 +0800] [858] [INFO] Worker exiting (pid: 858)
[2020-02-23 08:21:22 +0800] [845] [INFO] Worker exiting (pid: 845)
[2020-02-23 08:21:22 +0800] [810] [CRITICAL] WORKER TIMEOUT (pid:854)
[2020-02-23 08:21:22 +0800] [854] [INFO] Worker exiting (pid: 854)
[2020-02-23 08:21:22 +0800] [975] [INFO] Booting worker with pid: 975
[2020-02-23 08:21:22 +0800] [976] [INFO] Booting worker with pid: 976
[2020-02-23 08:21:22 +0800] [977] [INFO] Booting worker with pid: 977
[2020-02-23 08:21:22 +0800] [978] [INFO] Booting worker with pid: 978
[2020-02-23 10:31:58 +0800] [975] [INFO] Worker exiting (pid: 975)
[2020-02-23 10:31:58 +0800] [978] [INFO] Worker exiting (pid: 978)
[2020-02-23 10:31:58 +0800] [976] [INFO] Worker exiting (pid: 976)
[2020-02-23 10:31:58 +0800] [810] [INFO] Handling signal: term
[2020-02-23 10:31:58 +0800] [977] [INFO] Worker exiting (pid: 977)
[2020-02-23 10:31:58 +0800] [810] [INFO] Shutting down: Master
[2020-02-23 10:32:17 +0800] [920] [INFO] Starting gunicorn 20.0.4
[2020-02-23 10:32:17 +0800] [920] [INFO] Listening at: http://127.0.0.1:5005 (920)
[2020-02-23 10:32:17 +0800] [920] [INFO] Using worker: sync
[2020-02-23 10:32:17 +0800] [937] [INFO] Booting worker with pid: 937
[2020-02-23 10:32:17 +0800] [942] [INFO] Booting worker with pid: 942
[2020-02-23 10:32:17 +0800] [943] [INFO] Booting worker with pid: 943
[2020-02-23 10:32:17 +0800] [944] [INFO] Booting worker with pid: 944
[2020-02-23 10:34:21 +0800] [920] [CRITICAL] WORKER TIMEOUT (pid:944)
[2020-02-23 10:34:21 +0800] [944] [INFO] Worker exiting (pid: 944)
[2020-02-23 10:34:21 +0800] [920] [CRITICAL] WORKER TIMEOUT (pid:937)
[2020-02-23 10:34:21 +0800] [920] [CRITICAL] WORKER TIMEOUT (pid:942)
[2020-02-23 10:34:21 +0800] [920] [CRITICAL] WORKER TIMEOUT (pid:943)
[2020-02-23 10:34:21 +0800] [942] [INFO] Worker exiting (pid: 942)
[2020-02-23 10:34:21 +0800] [943] [INFO] Worker exiting (pid: 943)
[2020-02-23 10:34:21 +0800] [937] [INFO] Worker exiting (pid: 937)
[2020-02-23 10:34:22 +0800] [1103] [INFO] Booting worker with pid: 1103
[2020-02-23 10:34:22 +0800] [1104] [INFO] Booting worker with pid: 1104
[2020-02-23 10:34:22 +0800] [1105] [INFO] Booting worker with pid: 1105
[2020-02-23 10:34:22 +0800] [1106] [INFO] Booting worker with pid: 1106
[2020-02-29 08:11:18 +0800] [920] [INFO] Handling signal: term
[2020-02-29 08:11:18 +0800] [1105] [INFO] Worker exiting (pid: 1105)
[2020-02-29 08:11:18 +0800] [1104] [INFO] Worker exiting (pid: 1104)
[2020-02-29 08:11:18 +0800] [1103] [INFO] Worker exiting (pid: 1103)
[2020-02-29 08:11:18 +0800] [1106] [INFO] Worker exiting (pid: 1106)
[2020-02-29 08:11:18 +0800] [920] [INFO] Shutting down: Master

4
requirements.txt Normal file
View File

@ -0,0 +1,4 @@
Flask
Flask-Cors
pymongo
gunicorn

34
test.py
View File

@ -1,34 +0,0 @@
# coding=utf-8
import smtplib
from email.mime.text import MIMEText
# 发送纯文本格式的邮件
def sendMail(title, content, mailto_list):
msg = MIMEText(content, 'plain', 'utf-8')
#发送邮箱地址
sender = 'canarycodebook@163.com'
#邮箱授权码,非登陆密码
password = 'eTn49CftDfaytar'
#收件箱地址
#receiver = '19xxxxxxx9@qq.com'
# mailto_list = ['1144131090@qq.com','nayiyewosile@qq.com'] #群发邮箱地址
#smtp服务器
smtp_server = 'smtp.163.com'
#发送邮箱地址
msg['From'] = sender
#收件箱地址
#msg['To'] = receiver
msg['To'] =';'.join(mailto_list) #发送多人邮件写法
#主题
msg['Subject'] = title
server = smtplib.SMTP(smtp_server,25) # SMTP协议默认端口是25
server.login(sender,password) #ogin()方法用来登录SMTP服务器
server.set_debuglevel(1) #打印出和SMTP服务器交互的所有信息。
server.sendmail(sender,mailto_list,msg.as_string()) #msg.as_string()把MIMEText对象变成str server.quit()
# 第一个参数为发送者,第二个参数为接收者,可以添加多个例如:['hello@163.com','xxx@qq.com',]# 第三个参数为发送的内容
server.quit()
sendMail('欢迎注册Canary Codebook', 'test', ['1144131090@qq.com'])