personal activity index (bluesky, leaflet, substack)
pai.desertthunder.dev
rss
bluesky
1# Personal Activity Index Configuration Example
2# Copy this file to your config directory and customize as needed
3#
4# Default config location:
5# - $XDG_CONFIG_HOME/pai/config.toml
6# - $HOME/.config/pai/config.toml
7
8[database]
9# Path to SQLite database file (optional, defaults to $XDG_DATA_HOME/pai/pai.db)
10path = "/home/owais/.local/share/pai/pai.db"
11
12[deployment]
13# Deployment mode: "sqlite" for local, "cloudflare" for Workers
14mode = "sqlite"
15
16# Cloudflare deployment configuration (optional, only needed for Workers)
17[deployment.cloudflare]
18worker_name = "personal-activity-index"
19d1_binding = "DB"
20database_name = "personal_activity_db"
21
22# CORS configuration for HTTP server (optional)
23[cors]
24# List of allowed origins for cross-origin requests
25# Supports exact match and same-root-domain matching
26# Example: "https://desertthunder.dev" allows pai.desertthunder.dev, api.desertthunder.dev, etc.
27allowed_origins = ["https://desertthunder.dev", "http://localhost:4321"]
28
29# Optional development key for local testing
30# When set, requests with X-Local-Dev-Key header matching this value are allowed
31dev_key = "your-secret-dev-key-change-this"
32
33# Substack RSS feed source
34[sources.substack]
35enabled = true
36base_url = "https://patternmatched.substack.com"
37
38# Bluesky AT Protocol source
39[sources.bluesky]
40enabled = true
41handle = "desertthunder.dev"
42
43# Leaflet publications (can have multiple)
44[[sources.leaflet]]
45enabled = true
46id = "desertthunder"
47base_url = "https://desertthunder.leaflet.pub"
48
49[[sources.leaflet]]
50enabled = true
51id = "stormlightlabs"
52base_url = "https://stormlightlabs.leaflet.pub"
53
54# BearBlog publications (can have multiple)
55[[sources.bearblog]]
56enabled = true
57id = "desertthunder"
58base_url = "https://desertthunder.bearblog.dev"