diff --git a/apps/qiandao/20230601/.env.sample b/apps/qiandao/20230601/.env.sample new file mode 100644 index 00000000..380240de --- /dev/null +++ b/apps/qiandao/20230601/.env.sample @@ -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" \ No newline at end of file diff --git a/apps/qiandao/20230601/data.yml b/apps/qiandao/20230601/data.yml new file mode 100644 index 00000000..7fae5628 --- /dev/null +++ b/apps/qiandao/20230601/data.yml @@ -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 \ No newline at end of file diff --git a/apps/qiandao/20230601/docker-compose.yml b/apps/qiandao/20230601/docker-compose.yml new file mode 100644 index 00000000..8425a340 --- /dev/null +++ b/apps/qiandao/20230601/docker-compose.yml @@ -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 diff --git a/apps/qiandao/README.md b/apps/qiandao/README.md new file mode 100644 index 00000000..32341071 --- /dev/null +++ b/apps/qiandao/README.md @@ -0,0 +1,122 @@ +

+ + + +

+ +

QD for Python3

+ +
+QD —— 一个HTTP请求定时任务自动执行框架 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](https://img.shields.io/badge/all_contributors-15-orange.svg?style=flat-square)](#contributors-) + + +[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 + +
+ +

+ + +

+ +操作说明 +========== + +请参阅 **[使用指南](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)): + + + + + + + + + + + + + + + + + + + + + + + + + + +

a76yyyy

🎨 💻 🚧

Roy Binux

🎨 💻 🚧

AragonSnow

💻 🎨 🚧

Mark

🎨 📝 💡 📖

pidan

🎨

buzhibujue

💻

billypon

💻

acooler15

💻 🚧

shxyke

💻

xiaoxiao

💻

hiCasper

💻

旋子

💻

chen8945

💻

seiuneko

💻

powersee

💻
+ + + + + + +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) diff --git a/apps/qiandao/data.yml.bak b/apps/qiandao/data.yml.bak new file mode 100644 index 00000000..323da09c --- /dev/null +++ b/apps/qiandao/data.yml.bak @@ -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/ diff --git a/apps/qiandao/logo.png b/apps/qiandao/logo.png new file mode 100644 index 00000000..33dd37ae Binary files /dev/null and b/apps/qiandao/logo.png differ diff --git a/apps/qiandao/logo.png:Zone.Identifier b/apps/qiandao/logo.png:Zone.Identifier new file mode 100644 index 00000000..45a0c90e --- /dev/null +++ b/apps/qiandao/logo.png:Zone.Identifier @@ -0,0 +1,3 @@ +[ZoneTransfer] +ZoneId=3 +HostUrl=https://squoosh.app/