Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 44 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# Python虚拟环境
venv/
env/
*.venv/
.venv/ # UV默认虚拟环境

# UV包管理器
uv.lock
.uv/

# 输出目录&文件
output/
index.html

# 本地配置文件
config/config.yaml
config/frequency_words.txt

# 日志文件
*.log
logs/

# IDE配置
.idea/
.vscode/
*.swp
*.swo
*~

# 操作系统文件
.DS_Store
Thumbs.db

# Docker相关
.docker/

# 其他临时文件
*.pyc
__pycache__/

# 敏感文件
.env
*.env
secrets.txt
19 changes: 19 additions & 0 deletions config/config.yaml → config/config.yaml.example
Original file line number Diff line number Diff line change
Expand Up @@ -137,3 +137,22 @@ platforms:
name: "抖音"
- id: "zhihu"
name: "知乎"

# RSS源配置,用于订阅外部RSS源
# 支持两种配置方式:
# 1. 嵌套方式(推荐):
rss:
feeds:
# 示例RSS源配置
# - url: "https://example.com/tech/rss.xml"
# name: "示例科技博客"
# - url: "https://example.com/news/rss.xml"
# name: "示例新闻网站"

# 2. 直接方式:
# rss_sources:
# # 示例RSS源配置
# # - url: "https://example.com/tech/rss.xml"
# # name: "示例科技博客"
# # - url: "https://example.com/news/rss.xml"
# # name: "示例新闻网站"
File renamed without changes.
2 changes: 1 addition & 1 deletion docker/.env
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ REVERSE_CONTENT_ORDER=
# 是否自动启动 Web 服务器托管 output 目录 (true/false)
# 启用后可通过 http://localhost:{WEBSERVER_PORT} 访问生成的报告
# 手动控制:docker exec -it trend-radar python manage.py start_webserver
ENABLE_WEBSERVER=false
ENABLE_WEBSERVER=true

# Web 服务器端口(默认 8080,可自定义避免冲突)
# 注意:修改后需要重启容器生效
Expand Down
1 change: 1 addition & 0 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ RUN pip install --no-cache-dir -r requirements.txt

COPY main.py .
COPY docker/manage.py .
COPY rss_module/ rss_module/

# 复制 entrypoint.sh 并强制转换为 LF 格式
COPY docker/entrypoint.sh /entrypoint.sh.tmp
Expand Down
8 changes: 6 additions & 2 deletions docker/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
services:
trend-radar:
image: wantcat/trendradar:latest
build:
context: ..
dockerfile: docker/Dockerfile
container_name: trend-radar
restart: unless-stopped

Expand Down Expand Up @@ -58,7 +60,9 @@ services:
- IMMEDIATE_RUN=${IMMEDIATE_RUN:-true}

trend-radar-mcp:
image: wantcat/trendradar-mcp:latest
build:
context: ..
dockerfile: docker/Dockerfile.mcp
container_name: trend-radar-mcp
restart: unless-stopped

Expand Down
Loading