feat:添加qiandao到测试

This commit is contained in:
okxlin 2023-06-11 00:18:18 +08:00
parent de1d5f1fc7
commit 21d6eaa4ea
7 changed files with 370 additions and 0 deletions

View File

@ -0,0 +1,8 @@
PANEL_APP_PORT_HTTP="40022"
DATA_PATH="./data"
AES_PWD="Yase308ldibokUbacroq"
COOKIE_PWD="Spaja724cHow3yIwurAw"
REDIS_PROTOCOL="http"
REDIS_PWD=""
REDIS_HOST="172.18.0.1"
REDIS_PORT="6379"

View File

@ -0,0 +1,64 @@
additionalProperties:
formFields:
- default: 40022
edit: true
envKey: PANEL_APP_PORT_HTTP
labelEn: Port
labelZh: 端口
required: true
rule: paramPort
type: number
- default: ./data
edit: true
envKey: DATA_PATH
labelEn: Data folder path
labelZh: 数据文件夹路径
required: true
type: text
- default: AESPWD
envKey: AES_PWD
labelEn: AES encryption key
labelZh: AES加密密钥
random: true
required: true
rule: paramCommon
type: text
- default: CKPWD
envKey: COOKIE_PWD
labelEn: COOKIE encryption key
labelZh: COOKIE加密密钥
random: true
required: true
rule: paramCommon
type: text
- default: http
edit: true
envKey: REDIS_PROTOCOL
labelEn: Redis http Protocol
labelZh: Redis http 协议
required: true
type: text
- default: Redis
edit: true
envKey: REDIS_PWD
labelEn: Redis password
labelZh: Redis密码
random: true
required: true
rule: paramCommon
type: text
- default: 172.18.0.1
edit: true
envKey: REDIS_HOST
labelEn: Redis Host
labelZh: Redis服务地址
required: true
type: text
- default: 6379
edit: true
envKey: REDIS_PORT
labelEn: Redis port
labelZh: Redis端口
required: true
rule: paramPort
type: number

View File

@ -0,0 +1,153 @@
version: "3"
services:
qiandao:
container_name: ${CONTAINER_NAME}
restart: unless-stopped
networks:
- 1panel-network
ports:
- "${PANEL_APP_PORT_HTTP}:80"
volumes:
- "${DATA_PATH}:/usr/src/app/config"
environment:
# 监听地址
# - BIND=0.0.0.0
# 监听端口
- PORT=80
# 是否启用Debug模式
# - QIANDAO_DEBUG=False
# 任务定时执行方式默认为Queue可选Queue或Batch
# - WORKER_METHOD=Queue
# 是否启用多进程模式Windows平台无效
# - MULTI_PROCESS=False
# 是否启用自动热加载MULTI_PROCESS=True时无效
- AUTO_RELOAD=False
# 发送的邮件链接启用HTTPS非框架前端使用HTTPS如果前端需要HTTPS请使用反向代理
# - ENABLE_HTTPS=False
# 指定访问域名,建议修改,否则通过邮件重置密码等功能无效
# - DOMAIN=
# AES加密密钥强烈建议修改
- AES_KEY=${AES_PWD}
# cookie加密密钥强烈建议修改
- COOKIE_SECRET=${COOKIE_PWD}
# Cookie在客户端中保留的天数
# - COOKIE_DAY=5
# 需要使用MySQL时设置为'mysql'
- DB_TYPE=sqlite3
# 需要使用MySQL时设置为(mysql://用户名:密码@hostname:port/数据库名?auth_plugin=)
# - JAWSDB_MARIA_URL=mysql://user:pass@localhost:3306/dbname\?auth_plugin=
# 是否启用SQLAlchmey的日志输出默认为False
# - QIANDAO_SQL_ECHO=False
# SQLAlchmey日志名称默认为'QD.sql_engine'
# - QIANDAO_SQL_LOGGING_NAME=qiandao.sql
# SQLAlchmey日志级别默认为'Warning'
# - QIANDAO_SQL_LOGGING_LEVEL=WARNING
# 是否启用SQLAlchmey的连接池日志输出默认为True
# - QIANDAO_SQL_ECHO_POOL=True
# SQLAlchmey连接池日志名称默认为'QD.sql_pool'
# - QIANDAO_SQL_LOGGING_POOL_NAME=QD.sql_pool
# SQLAlchmey连接池日志级别默认为'Warning'
# - QIANDAO_SQL_LOGGING_POOL_LEVEL=Warning
# SQLAlchmey连接池大小默认为10
# - QIANDAO_SQL_POOL_SIZE=5
# SQLAlchmey连接池最大溢出默认为50
# - QIANDAO_SQL_MAX_OVERFLOW=10
# 是否在连接池获取连接前先ping一下默认为True
# - QIANDAO_SQL_POOL_PRE_PING=True
# SQLAlchmey连接池回收时间默认为3600a
# - QIANDAO_SQL_POOL_RECYCLE=3600
# SQLAlchmey连接池超时时间默认为60
# - QIANDAO_SQL_POOL_TIMEOUT=60
# SQLAlchmey是否使用LIFO算法默认为True
# - QIANDAO_SQL_POOL_USE_LIFO=True
# 需要使用Redis或RedisCloud时设置为http://rediscloud:密码@hostname:port
- REDISCLOUD_URL=${REDIS_PROTOCOL}://rediscloud:${REDIS_PWD}${REDIS_HOST}:${REDIS_PORT}
# 默认为1
# - REDIS_DB_INDEX=1
# (限Redis连接已开启)登录用户或IP在1小时内分数=操作失败次数*相应惩罚分值分数达到evil上限后自动封禁直至下一小时周期
# - QIANDAO_EVIL=1000
# 是否关闭本机私有IP地址用户及Localhost_API请求的evil限制
# - EVIL_PASS_LAN_IP=True
# 是否启用在控制台日志中打印Exception的TraceBack信息
# - TRACEBACK_PRINT=False
# 默认为push_pic.png
# - PUSH_PIC_URL=https://fastly.jsdelivr.net/gh/qd-today/qd@master/web/static/img/push_pic.png
# 是否允许开启定期推送QD任务日志默认为True
# - PUSH_BATCH_SW=True
# 邮箱SMTP服务器
# - MAIL_SMTP=''
# 邮箱SMTP服务器端口
# - MAIL_PORT=465
# 邮箱用户名
# - MAIL_USER=''
# 邮箱密码
# - MAIL_PASSWORD=''
# 发送时使用的邮箱默认与MAIL_USER相同
# - MAIL_FROM=${MAIL_USER}
# 邮箱域名没啥用使用的DOMAIN
# - MAIL_DOMAIN=mail.qd.today
# 全局代理域名列表,用"|"分隔
# - PROXIES=''
# 全局代理黑名单模式,默认不启用
# "url"为网址匹配模式;"regexp"为正则表达式匹配模式
# - PROXY_DIRECT_MODE=regexp
# 全局代理黑名单匹配规则
# - PROXY_DIRECT=(?xi)\A([a-z][a-z0-9+\-.]*://)?(0(.0){3}|127(.0){2}.1|localhost|\[::([\d]+)?\])(:[0-9]+)?
# 是否启用Pycurl模组
# - USE_PYCURL=True
# 在Pycurl环境下部分请求可能导致Request错误时自动修改冲突设置并重发请求
# - ALLOW_RETRY=True
# 通过Curl使用指定DNS进行解析(仅支持Pycurl环境)如8.8.8.8
# - DNS_SERVER=''
# 是否允许使用Curl进行Encoding操作
# - CURL_ENCODING=True
# 是否允许Curl使用Headers中自定义Content-Length请求
# - CURL_CONTENT_LENGTH=True
# 详见配置...
# - NOT_RETRY_CODE=301|302|303|304|305|307|400|401|403|404|405|407|408|409|410|412|415|413|414|500|501|502|503|504|599
# - EMPTY_RETRY=True
# 第一个注册用户为管理员False关闭
- USER0ISADMIN=False
# config目录下自定义ONNX文件名不填 ".onnx" 后缀多个onnx文件名用"|"分隔
# - EXTRA_ONNX_NAME=''
# config目录下自定义ONNX对应自定义charsets.json文件名不填 ".json" 后缀多个json文件名用"|"分隔
# - EXTRA_CHARSETS_NAME=''
# WebSocket ping间隔单位为秒默认为5s
# - WS_PING_INTERVAL=5
# WebSocket ping超时时间单位为秒默认为30s
# - WS_PING_TIMEOUT=30
# WebSocket单次接收最大消息大小默认为10MB
# - WS_MAX_MESSAGE_SIZE=10485760
# WebSocket最大消息队列大小默认为100
# - WS_MAX_QUEUE_SIZE=100
# WebSocket公共模板更新页面最大连接数默认为30
# - WS_MAX_CONNECTIONS_SUBSCRIBE=30
# 订阅加速方式或地址用于加速公共模板更新仅适用于GitHub
# - SUBSCRIBE_ACCELERATE_URL=jsdelivr_cdn
- GZIP=True
# - QUEUE_NUM=50
- ACCESS_LOG=True
# - PUSH_BATCH_DELTA=60
# - QIANDAO_SQL_POOL_LOGGING_NAME=qiandao.sql.pool
# - QIANDAO_SQL_POOL_LOGGING_LEVEL=WARNING
# - QIANDAO_SQL_POOL_TIMEOUT=30
# - PBKDF2_ITERATIONS=400
# - CHECK_TASK_LOOP=500
# - TASK_MAX_RETRY_COUNT=8
# - DOWNLOAD_SIZE_LIMIT=5242880
# - REQUEST_TIMEOUT=30.0
# - CONNECT_TIMEOUT=30.0
# - DELAY_MAX_TIMEOUT=29.9
# - UNSAFE_EVAL_TIMEOUT=3.0
# - NEW_TASK_DELAY=1
# - MAIL_SSL=True
# - MAILGUN_KEY=
image: a76yyyy/qiandao:20230601
# image: a76yyyy/qiandao:latest
# image: a76yyyy/qiandao:lite-latest
labels:
createdBy: "Apps"
networks:
1panel-network:
external: true

122
apps/qiandao/README.md Normal file
View File

@ -0,0 +1,122 @@
<p align="center">
<a href="https://github.com/qd-today/qd">
<img style="border-radius:50%" width="150" src="https://fastly.jsdelivr.net/gh/qd-today/qd@master/web/static/img/icon.png">
</a>
</p>
<h1 align="center">QD for Python3</h1>
<div align="center">
QD —— 一个<b>HTTP请求定时任务自动执行框架</b> base on HAR Editor and Tornado Server
[![HomePage][HomePage-image]][HomePage-url]
[![Github][Github-image]][Github-url]
[![Gitee][Gitee-image]][Gitee-url]
[![license][github-license-image]][github-license-url]
[![Build Image][workflow-image]][workflow-url]
[![last commit][last-commit-image]][last-commit-url]
[![commit activity][commit-activity-image]][commit-activity-url]
[![docker version][docker-version-image]][docker-version-url]
[![docker pulls][docker-pulls-image]][docker-pulls-url]
[![docker stars][docker-stars-image]][docker-stars-url]
[![docker image size][docker-image-size-image]][docker-image-size-url]
![repo size][repo-size-image]
![python version][python-version-image]
<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
[![All Contributors](https://img.shields.io/badge/all_contributors-15-orange.svg?style=flat-square)](#contributors-)
<!-- ALL-CONTRIBUTORS-BADGE:END -->
[HomePage-image]: https://img.shields.io/badge/HomePage-qd--today-brightgreen
[HomePage-url]: https://qiandao.a76yyyy.cn
[Github-image]: https://img.shields.io/static/v1?label=Github&message=qd-today&color=brightgreen
[Github-url]: https://github.com/qd-today/qd/
[Gitee-image]: https://img.shields.io/static/v1?label=Gitee&message=a76yyyy&color=brightgreen
[Gitee-url]: https://gitee.com/qd-today/qd/
[github-license-image]: https://img.shields.io/github/license/qd-today/qd
[github-license-url]: https://github.com/qd-today/qd/blob/master/LICENSE
[last-commit-image]: https://img.shields.io/github/last-commit/qd-today/qd
[last-commit-url]: https://github.com/qd-today/qd/
[commit-activity-image]: https://img.shields.io/github/commit-activity/m/qd-today/qd
[commit-activity-url]: https://github.com/qd-today/qd/
[docker-version-image]: https://img.shields.io/docker/v/qdtoday/qd?style=flat
[docker-version-url]: https://hub.docker.com/r/qdtoday/qd/tags?page=1&ordering=last_updated
[docker-pulls-image]: https://img.shields.io/docker/pulls/qdtoday/qd?style=flat
[docker-pulls-url]: https://hub.docker.com/r/qdtoday/qd
[docker-stars-image]: https://img.shields.io/docker/stars/qdtoday/qd?style=flat
[docker-stars-url]: https://hub.docker.com/r/qdtoday/qd
[docker-image-size-image]: https://img.shields.io/docker/image-size/qdtoday/qd?style=flat
[docker-image-size-url]: https://hub.docker.com/r/qdtoday/qd
[repo-size-image]: https://img.shields.io/github/repo-size/qd-today/qd
[python-version-image]: https://img.shields.io/github/pipenv/locked/python-version/qd-today/qd
[workflow-image]: https://github.com/qd-today/qd/actions/workflows/Publish%20Package.yml/badge.svg
[workflow-url]: https://github.com/qd-today/qd/actions/workflows/Publish%20Package.yml
</div>
<p align="center">
<img width="45%" style="border:solid 1px #DCEBFB" src="https://fastly.jsdelivr.net/gh/qd-today/qd@master/web/docs/public/login.png" >
<img width="45%" style="border:solid 1px #DCEBFB" src="https://fastly.jsdelivr.net/gh/qd-today/qd@master/web/docs/public/index.png">
</p>
操作说明
==========
请参阅 **[使用指南](https://qd-today.github.io/qd/zh_CN/)**
更新日志
===========
详见 **[CHANGELOG.md](./CHANGELOG.md)**
维护项目精力有限, 仅保证对 Chrome 浏览器的支持。如果测试了其他浏览器可以 Pull Request。
许可
===========
[MIT](https://fastly.jsdelivr.net/gh/qd-today/qd@master/LICENSE) 许可协议
致谢
===========
## Contributors ✨
Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):
<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->
<!-- prettier-ignore-start -->
<!-- markdownlint-disable -->
<table>
<tr>
<td align="center"><a href="http://www.a76yyyy.cn"><img src="https://avatars.githubusercontent.com/u/56478790?v=4?s=100" width="100px;" alt=""/><br /><sub><b>a76yyyy</b></sub></a><br /><a href="#design-a76yyyy" title="Design">🎨</a> <a href="https://github.com/qd-today/qd/commits?author=a76yyyy" title="Code">💻</a> <a href="#maintenance-a76yyyy" title="Maintenance">🚧</a></td>
<td align="center"><a href="http://binux.me/"><img src="https://avatars.githubusercontent.com/u/646451?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Roy Binux</b></sub></a><br /><a href="#design-Binux" title="Design">🎨</a> <a href="https://github.com/qd-today/qd/commits?author=Binux" title="Code">💻</a> <a href="#maintenance-Binux" title="Maintenance">🚧</a></td>
<td align="center"><a href="https://github.com/AragonSnow"><img src="https://avatars.githubusercontent.com/u/22835918?v=4?s=100" width="100px;" alt=""/><br /><sub><b>AragonSnow</b></sub></a><br /><a href="https://github.com/qd-today/qd/commits?author=AragonSnow" title="Code">💻</a> <a href="#design-AragonSnow" title="Design">🎨</a> <a href="#maintenance-AragonSnow" title="Maintenance">🚧</a></td>
<td align="center"><a href="https://www.quchao.net"><img src="https://avatars.githubusercontent.com/u/36469805?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Mark</b></sub></a><br /><a href="#design-Mark-1215" title="Design">🎨</a> <a href="#blog-Mark-1215" title="Blogposts">📝</a> <a href="#example-Mark-1215" title="Examples">💡</a> <a href="https://github.com/qd-today/qd/commits?author=Mark-1215" title="Documentation">📖</a></td>
<td align="center"><a href="https://github.com/cdpidan"><img src="https://avatars.githubusercontent.com/u/8141453?v=4?s=100" width="100px;" alt=""/><br /><sub><b>pidan</b></sub></a><br /><a href="#design-cdpidan" title="Design">🎨</a></td>
<td align="center"><a href="https://buzhibujue.cf"><img src="https://avatars.githubusercontent.com/u/24644841?v=4?s=100" width="100px;" alt=""/><br /><sub><b>buzhibujue</b></sub></a><br /><a href="https://github.com/qd-today/qd/commits?author=buzhibujuelb" title="Code">💻</a></td>
<td align="center"><a href="https://github.com/billypon"><img src="https://avatars.githubusercontent.com/u/1763302?v=4?s=100" width="100px;" alt=""/><br /><sub><b>billypon</b></sub></a><br /><a href="https://github.com/qd-today/qd/commits?author=billypon" title="Code">💻</a></td>
</tr>
<tr>
<td align="center"><a href="http://www.lingyan8.com"><img src="https://avatars.githubusercontent.com/u/19186382?v=4?s=100" width="100px;" alt=""/><br /><sub><b>acooler15</b></sub></a><br /><a href="https://github.com/qd-today/qd/commits?author=acooler15" title="Code">💻</a> <a href="#maintenance-acooler15" title="Maintenance">🚧</a></td>
<td align="center"><a href="https://github.com/aa889788"><img src="https://avatars.githubusercontent.com/u/16019986?v=4?s=100" width="100px;" alt=""/><br /><sub><b>shxyke</b></sub></a><br /><a href="https://github.com/qd-today/qd/commits?author=aa889788" title="Code">💻</a></td>
<td align="center"><a href="https://github.com/gxitm"><img src="https://avatars.githubusercontent.com/u/2405087?v=4?s=100" width="100px;" alt=""/><br /><sub><b>xiaoxiao</b></sub></a><br /><a href="https://github.com/qd-today/qd/commits?author=gxitm" title="Code">💻</a></td>
<td align="center"><a href="https://blog.hicasper.com"><img src="https://avatars.githubusercontent.com/u/25276620?v=4?s=100" width="100px;" alt=""/><br /><sub><b>hiCasper</b></sub></a><br /><a href="https://github.com/qd-today/qd/commits?author=hiCasper" title="Code">💻</a></td>
<td align="center"><a href="https://github.com/ckx000"><img src="https://avatars.githubusercontent.com/u/5800591?v=4?s=100" width="100px;" alt=""/><br /><sub><b>旋子</b></sub></a><br /><a href="https://github.com/qd-today/qd/commits?author=ckx000" title="Code">💻</a></td>
<td align="center"><a href="https://github.com/chen8945"><img src="https://avatars.githubusercontent.com/u/44148812?v=4?s=100" width="100px;" alt=""/><br /><sub><b>chen8945</b></sub></a><br /><a href="https://github.com/qd-today/qd/commits?author=chen8945" title="Code">💻</a></td>
<td align="center"><a href="https://github.com/seiuneko"><img src="https://avatars.githubusercontent.com/u/25706824?v=4?s=100" width="100px;" alt=""/><br /><sub><b>seiuneko</b></sub></a><br /><a href="https://github.com/qd-today/qd/commits?author=seiuneko" title="Code">💻</a></td>
</tr>
<tr>
<td align="center"><a href="https://github.com/powersee"><img src="https://avatars.githubusercontent.com/u/38074760?v=4?s=100" width="100px;" alt=""/><br /><sub><b>powersee</b></sub></a><br /><a href="https://github.com/qd-today/qd/commits?author=powersee" title="Code">💻</a></td>
</tr>
</table>
<!-- markdownlint-restore -->
<!-- prettier-ignore-end -->
<!-- ALL-CONTRIBUTORS-LIST:END -->
This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!
Stargazers over time
===========
[![Stargazers over time](https://starchart.cc/qd-today/qd.svg)](https://starchart.cc/qd-today/qd)

20
apps/qiandao/data.yml.bak Normal file
View File

@ -0,0 +1,20 @@
name: QianDao
tags:
- WebSite
title: 一个HTTP请求定时任务自动执行框架
type: 建站
description: 一个HTTP请求定时任务自动执行框架
additionalProperties:
key: qiandao
name: QianDao
tags:
- Tool
shortDescZh: 一个HTTP请求定时任务自动执行框架
shortDescEn: An HTTP request timed task automation framework
type: tool
crossVersionUpdate: true
limit: 0
recommend: 0
website: https://hub.docker.com/r/a76yyyy/qiandao
github: https://github.com/qiandao-today/qiandao
document: https://qiandao-today.github.io/qiandao/zh_CN/

BIN
apps/qiandao/logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

View File

@ -0,0 +1,3 @@
[ZoneTransfer]
ZoneId=3
HostUrl=https://squoosh.app/