Repository navigation
Expand file tree
/
Copy pathconfig.native.example.toml
More file actions
173 lines (153 loc) · 5.4 KB
/
Copy pathconfig.native.example.toml
File metadata and controls
173 lines (153 loc) · 5.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
# Copy to config.toml for native execution with uv.
# Keep an existing native config.toml and its connection/data settings.
# Example: sources = ["blog.codinghorror.com"]
# Domain strings and tables with feed_urls/tags can be mixed.
# See docs/features/rss.md for examples.
# Reddit: sources = [{ domain = "reddit.com", feed_urls = ["r/LocalLLaMA"] }]
# YouTube: sources = [{ domain = "youtube.com", accounts = ["@Channel4News"] }]
# Hacker News: sources = [{ domain = "hckrnews.com", hacker_news_filter = "top50" }]
# Compose HN with RSS: docs/features/hacker-news.md#add-rss-or-use-it-alone
sources = []
# The list above is used by default. Set this to true to manage sources
# in the reader. Run make sources-import to carry over an existing list.
# Keep this setting before any [section]. See docs/features/sources.md.
sources_in_database = false
[clickhouse]
host = "localhost"
port = 8123
database = "dank"
username = "default"
password = ""
secure = false
use_http = true
[postgres]
# Your own server; see docs/setup.md#postgres-on-your-own-server.
host = "localhost"
port = 5432
database = "dank"
user = "dank"
# Holds only the password. make config creates a random one if it is missing.
password_file = "postgres-password"
# The web app needs this server and Atlas; see docs/setup.md. To run without
# them until a feature needs Postgres, turn this off.
# enabled = false
[media]
# Use ["image"] for images only, or [] to keep references without downloads.
download_types = ["image", "audio", "video"]
# Optional limits per file, in bytes, overriding storage.max_asset_bytes. A site's
# limit applies first, then a type's. See docs/features/media.md.
# [media.max_bytes]
# video = 52428800
#
# [media.max_bytes."youtube.com"]
# video = 209715200
[storage]
# Relative to the directory where you run DANK, or use your existing host path.
data_dir = "data"
max_asset_bytes = 10485760
# Optional; these concurrency limits apply in both native and Docker runs.
[scrape]
source_concurrency = 4
http_concurrency = 16
http_per_host = 2
media_concurrency = 4
queue_batches = 2
# Optional scheduling defaults for X accounts and YouTube channel feeds.
# [scrape.account_schedule]
# enabled = true
# min_interval = "1h"
# max_interval = "24h"
# lookback = "7d"
[reddit]
# Minimum spacing between Reddit browser actions; reuse unchanged details.
request_interval_seconds = 2.0
detail_cache_hours = 24.0
# Post bodies and media links are always collected from individual post pages.
capture_comments = true
comment_limit = 50
comment_sort = "best"
# Also requires "video" in media.download_types; false keeps remote playback.
download_videos = false
# Save linked publisher articles, reusing readable articles already collected.
collect_linked_articles = false
[rss]
feed_staleness_days = 14
keep_feed_on_fetch_failure = false
# Zero or omitted preserves unlimited fetching; use 20 for a bounded run.
max_entries_per_feed = 0
[logging]
file = "data/dank.log"
level = "INFO"
backup_count = 14
# Browser auto-detection is used when executable_path is omitted.
# [browser]
# executable_path = "/path/to/your/chromium-browser"
# Sign in with make x-login MODE=native before collecting X accounts.
# See docs/features/x.md for account and collection settings.
# [x]
# username = "your-handle" # Optional direct credentials in private config.toml.
# password = "your-password"
# email = "you@example.com"
# homepage = true # Include signed-in For You in normal scrapes.
# known_overlap = 5 # Use 0 for a bounded backfill.
# Bounded conversation snapshots for each account's newest owned posts.
# [x.conversation]
# enabled = true
# max_posts_per_account = 5
# max_replies = 50
# max_scrolls = 3
# timeout_seconds = 30
# Optional sign-in via 1Password CLI for headless X scrapes.
# [x.onepassword]
# username = "op://Personal/X/username"
# password = "op://Personal/X/password"
# Optional IMAP settings for X sign-in codes.
# [email]
# host = "imap.example.com"
# username = "you@example.com"
# password = "your-imap-password"
# port = 993
# YouTube starts with public Hype and News feeds when selected as a source.
[youtube]
scrape_videos = false
include_shorts = true
include_posts = true
hype = true
news_tabs = ["top_stories", "business", "world"]
region = "GB"
max_posts = 200
max_scrolls = 20
scroll_pause_seconds = 1.5
stall_scrolls = 3
# Stop chronological channel feeds after this many consecutive known videos.
known_overlap = 5
listing_workers = 3
# Saved browser sessions are opt-in; homepage also requires a signed-in session.
authenticated = false
homepage = false
# profile_dir = "data/youtube-browser-profile"
# Daily front-page stories; comments are fetched only with --hacker-news-details.
[hacker_news]
days = 7
comment_limit = "all"
detail_max_posts = 20
detail_timeout_seconds = "all"
# Optional Google login through 1Password (including authenticator codes).
# [youtube.onepassword]
# account = "YOUR_1PASSWORD_ACCOUNT_ID"
# username = "op://VAULT_ID/GOOGLE_ITEM_ID/username"
# password = "op://VAULT_ID/GOOGLE_ITEM_ID/password"
# otp = "op://VAULT_ID/GOOGLE_ITEM_ID/one-time password?attribute=otp"
# Optional category training and local assignment; see docs/features/categories.md.
# [categories]
# enabled = true
# api_key = "YOUR_OPENAI_API_KEY"
# model = "gpt-6-luna"
# cosine_threshold = 0.75
# confidence_threshold = 0.8
# concurrency = 4
# max_content_chars = 8192
#
# [[categories.definitions]]
# name = "software"
# description = "Software development, programming tools and languages."