diff --git a/rsshub/2024-08-06/data.yml b/rsshub/2024-08-06/data.yml new file mode 100644 index 000000000..bcf3f5208 --- /dev/null +++ b/rsshub/2024-08-06/data.yml @@ -0,0 +1,43 @@ +additionalProperties: + formFields: + - default: 1200 + edit: true + envKey: PANEL_APP_PORT_HTTP + labelZh: WebUI 端口 + labelEn: WebUI port + required: true + rule: paramPort + type: number + - default: "" + edit: true + envKey: ACCESS_KEY + labelZh: 访问密钥 + labelEn: Access key + required: true + type: text + - default: "memory" + edit: true + envKey: CACHE_TYPE + labelZh: 缓存类型 + labelEn: Cache type + required: true + type: select + values: + - label: 内存 + value: "memory" + - label: Redis + value: "redis" + - default: "redis://127.0.0.1:6379/" + edit: true + envKey: REDIS_URL + labelZh: Redis URL 地址 + labelEn: Redis URL address + required: false + type: text + - default: "" + edit: true + envKey: PROXY_URI + labelZh: 代理 URL 地址 + labelEn: Proxy URL address + required: false + type: text diff --git a/rsshub/2024-08-06/docker-compose.yml b/rsshub/2024-08-06/docker-compose.yml new file mode 100644 index 000000000..a5617efff --- /dev/null +++ b/rsshub/2024-08-06/docker-compose.yml @@ -0,0 +1,30 @@ +version: "3.8" + +networks: + 1panel-network: + external: true + +services: + rsshub: + image: diygod/rsshub:chromium-bundled-2024-08-06 + container_name: ${CONTAINER_NAME} + labels: + createdBy: "Apps" + restart: always + networks: + - 1panel-network + ports: + - ${PANEL_APP_PORT_HTTP}:1200 + env_file: + - /etc/1panel/envs/global.env + - ${ENV_FILE:-/etc/1panel/envs/default.env} + environment: + - NODE_ENV=production + - PORT=1200 + - LISTEN_INADDR_ANY=1 + - REQUEST_RETRY=2 + - REQUEST_TIMEOUT=3000 + - ALLOW_ORIGIN=* + - CACHE_CONTENT_EXPIRE=360 + - CACHE_EXPIRE=300 + - MEMORY_MAX=256 diff --git a/rsshub/2024-08-06/scripts/init.sh b/rsshub/2024-08-06/scripts/init.sh new file mode 100644 index 000000000..77b849120 --- /dev/null +++ b/rsshub/2024-08-06/scripts/init.sh @@ -0,0 +1,15 @@ +#!/bin/bash + +if [ -f .env ]; then + source .env + + # setup-1 add default values + CURRENT_DIR=$(pwd) + sed -i '/^ENV_FILE=/d' .env + echo "ENV_FILE=${CURRENT_DIR}/.env" >> .env + + echo "Check Finish." + +else + echo "Error: .env file not found." +fi diff --git a/rsshub/2024-08-06/scripts/uninstall.sh b/rsshub/2024-08-06/scripts/uninstall.sh new file mode 100644 index 000000000..c86c4fbca --- /dev/null +++ b/rsshub/2024-08-06/scripts/uninstall.sh @@ -0,0 +1,10 @@ +#!/bin/bash + +if [ -f .env ]; then + source .env + + echo "Check Finish." + +else + echo "Error: .env file not found." +fi diff --git a/rsshub/2024-08-06/scripts/upgrade.sh b/rsshub/2024-08-06/scripts/upgrade.sh new file mode 100644 index 000000000..77b849120 --- /dev/null +++ b/rsshub/2024-08-06/scripts/upgrade.sh @@ -0,0 +1,15 @@ +#!/bin/bash + +if [ -f .env ]; then + source .env + + # setup-1 add default values + CURRENT_DIR=$(pwd) + sed -i '/^ENV_FILE=/d' .env + echo "ENV_FILE=${CURRENT_DIR}/.env" >> .env + + echo "Check Finish." + +else + echo "Error: .env file not found." +fi diff --git a/rsshub/README.md b/rsshub/README.md new file mode 100644 index 000000000..6de0afc64 --- /dev/null +++ b/rsshub/README.md @@ -0,0 +1,44 @@ +# RssHub + +万物皆可 RSS + +![RssHub](https://file.lifebus.top/imgs/rsshub_cover.png) + +从任何内容生成 RSS/Atom/JSON 订阅源 + +![](https://img.shields.io/badge/%E6%96%B0%E7%96%86%E8%90%8C%E6%A3%AE%E8%BD%AF%E4%BB%B6%E5%BC%80%E5%8F%91%E5%B7%A5%E4%BD%9C%E5%AE%A4-%E6%8F%90%E4%BE%9B%E6%8A%80%E6%9C%AF%E6%94%AF%E6%8C%81-blue) + +## 安装说明 + +我们建议您使用 Redis 作为缓存数据库,以提高性能。 + +## 使用说明 + +请参考官方文档:[RssHub 使用说明](https://docs.rsshub.app/zh/guide/) + +## 配置说明 + +一些站点的RSS Feed需要登录后才能访问,这时候就需要配置一些鉴权配置 + +具体配置方法请参考官方文档:[RssHub 配置说明](https://docs.rsshub.app/zh/deploy/config/) + +## 注意事项 + +1. 请勿滥用本软件,否则后果自负 +2. 请遵守各网站的使用规定 +3. 请勿将本软件用于商业用途 +4. 请勿将本软件用于违法用途 +5. 请勿将本软件用于违反道德用途 +6. 请勿将本软件用于违反社会公德用途 +7. 请勿将本软件用于违反国家法律用途 +8. 请勿将本软件用于违反国家政策用途 +9. 请勿将本软件用于违反国家战略用途 +10. 请勿将本软件用于违反国家安全用途 +11. 请勿将本软件用于违反国家利益用途 +12. 请勿将本软件用于违反国家尊严用途 +13. 请勿将本软件用于违反国家权益用途 +14. 总而言之,请遵守法律法规,文明上网 + +--- + +![Ms Studio](https://file.lifebus.top/imgs/ms_blank_001.png) diff --git a/rsshub/data.yml b/rsshub/data.yml new file mode 100644 index 000000000..76e3cf497 --- /dev/null +++ b/rsshub/data.yml @@ -0,0 +1,19 @@ +name: RssHub +title: 从任何内容生成 RSS/Atom/JSON 订阅源 +description: +additionalProperties: + key: rsshub + name: RssHub + tags: + - WebSite + - Middleware + - Tool + - Local + shortDescZh: 从任何内容生成 RSS/Atom/JSON 订阅源 + shortDescEn: Generate RSS/Atom/JSON feeds from any content + type: website + crossVersionUpdate: true + limit: 0 + website: https://rsshub.app/ + github: https://github.com/DIYgod/RSSHub/ + document: https://docs.rsshub.app/ diff --git a/rsshub/logo.png b/rsshub/logo.png new file mode 100644 index 000000000..3ca374f04 Binary files /dev/null and b/rsshub/logo.png differ