bug fixing
This commit is contained in:
120
config.yaml.example
Normal file
120
config.yaml.example
Normal file
@@ -0,0 +1,120 @@
|
||||
schedule:
|
||||
time: "07:00"
|
||||
timezone: "Europe/Oslo"
|
||||
|
||||
sources:
|
||||
rss:
|
||||
# General Tech
|
||||
- name: "Hacker News"
|
||||
url: "https://news.ycombinator.com/rss"
|
||||
category: "tech"
|
||||
|
||||
- name: "Ars Technica"
|
||||
url: "https://feeds.arstechnica.com/arstechnica/index"
|
||||
category: "tech"
|
||||
|
||||
- name: "TechCrunch"
|
||||
url: "https://techcrunch.com/feed/"
|
||||
category: "tech"
|
||||
|
||||
# Development
|
||||
- name: "Dev.to"
|
||||
url: "https://dev.to/feed"
|
||||
category: "development"
|
||||
|
||||
- name: "GitHub Trending"
|
||||
url: "https://mshibanami.github.io/GitHubTrendingRSS/daily/all.xml"
|
||||
category: "development"
|
||||
|
||||
- name: "InfoQ"
|
||||
url: "https://feed.infoq.com/"
|
||||
category: "development"
|
||||
|
||||
- name: "r/programming"
|
||||
url: "https://www.reddit.com/r/programming/.rss"
|
||||
category: "development"
|
||||
|
||||
# Self-hosting
|
||||
- name: "r/selfhosted"
|
||||
url: "https://www.reddit.com/r/selfhosted/.rss"
|
||||
category: "selfhosting"
|
||||
|
||||
- name: "r/homelab"
|
||||
url: "https://www.reddit.com/r/homelab/.rss"
|
||||
category: "selfhosting"
|
||||
|
||||
# Enterprise Architecture
|
||||
- name: "Martin Fowler"
|
||||
url: "https://martinfowler.com/feed.atom"
|
||||
category: "architecture"
|
||||
|
||||
- name: "InfoQ Architecture"
|
||||
url: "https://feed.infoq.com/architecture-design/"
|
||||
category: "architecture"
|
||||
|
||||
- name: "The New Stack"
|
||||
url: "https://thenewstack.io/feed/"
|
||||
category: "architecture"
|
||||
|
||||
# Gadgets
|
||||
- name: "Engadget"
|
||||
url: "https://www.engadget.com/rss.xml"
|
||||
category: "gadgets"
|
||||
|
||||
#- name: "AnandTech"
|
||||
# url: "https://www.anandtech.com/rss/"
|
||||
# category: "gadgets"
|
||||
|
||||
- name: "Tom's Hardware"
|
||||
url: "https://www.tomshardware.com/feeds/all"
|
||||
category: "gadgets"
|
||||
|
||||
ai:
|
||||
provider: "openrouter"
|
||||
base_url: "https://openrouter.ai/api/v1"
|
||||
model: "openai/gpt-4o-mini"
|
||||
# Alternative models (always check https://openrouter.ai/models for current names):
|
||||
# - "openai/gpt-4o-mini" (RECOMMENDED - good quality, ~$0.05-0.10/day, no rate limits)
|
||||
# - "anthropic/claude-3.5-haiku" (excellent quality, ~$0.10/day)
|
||||
# - "google/gemini-2.0-flash-exp:free" (FREE but has rate limits - not good for production)
|
||||
# - "meta-llama/llama-3.1-8b-instruct:free" (FREE but has rate limits)
|
||||
# NOTE: Free models have strict rate limits - use paid models for daily production use
|
||||
|
||||
filtering:
|
||||
enabled: true
|
||||
min_score: 5.5 # Out of 10 - lower score = more articles (was 6.5, now more permissive)
|
||||
max_articles: 15 # Maximum articles to include in daily digest
|
||||
|
||||
interests:
|
||||
- "AI and machine learning developments"
|
||||
- "Open source projects and tools"
|
||||
- "Self-hosting solutions and home lab setups"
|
||||
- "Enterprise architecture patterns and best practices"
|
||||
- "Python ecosystem and development tools"
|
||||
- "Linux and system administration"
|
||||
- "New gadgets and hardware reviews"
|
||||
- "Cloud-native technologies and Kubernetes"
|
||||
- "DevOps and infrastructure as code"
|
||||
- "Security and privacy tools"
|
||||
|
||||
email:
|
||||
to: "your-email@example.com"
|
||||
from: "news-agent@yourdomain.com"
|
||||
from_name: "Daily Tech News Agent"
|
||||
subject_template: "Tech News Digest - {date}"
|
||||
smtp:
|
||||
host: "mail.yourdomain.com"
|
||||
port: 587 # Standard SMTP submission port (use 465 for SSL)
|
||||
use_tls: true # Use STARTTLS (for port 587)
|
||||
use_ssl: false # Set to true if using port 465
|
||||
# Username and password are loaded from .env file for security
|
||||
|
||||
database:
|
||||
path: "data/articles.db"
|
||||
retention_days: 30 # How long to keep article history
|
||||
|
||||
logging:
|
||||
level: "INFO"
|
||||
file: "data/logs/news-agent.log"
|
||||
max_bytes: 10485760 # 10MB
|
||||
backup_count: 5
|
||||
Reference in New Issue
Block a user