Repository navigation
Expand file tree
/
Copy pathconfig.example.toml
More file actions
63 lines (54 loc) · 1.6 KB
/
Copy pathconfig.example.toml
File metadata and controls
63 lines (54 loc) · 1.6 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
# make up copies this file to config.toml if it is missing.
# Edit config.toml; it is private and ignored by Git.
# Example: sources = ["blog.codinghorror.com"]
# X example: sources = [{ domain = "x.com", accounts = ["example"] }]
# Reddit: sources = [{ domain = "reddit.com", feed_urls = ["r/LocalLLaMA"] }]
# Domain strings and tables with feed_urls/tags can be mixed.
# See docs/features/rss.md for examples.
sources = []
[clickhouse]
# Compose service name, reachable from the application container.
host = "clickhouse"
port = 8123
database = "dank"
username = "default"
password = ""
secure = false
use_http = true
[media]
# Use ["image"] for images only, or [] to keep references without downloads.
download_types = ["image", "audio", "video"]
[storage]
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
[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
[browser]
executable_path = "/usr/local/bin/dank-chromium"
[logging]
file = "data/dank.log"
level = "INFO"
# Uncomment for X account collection.
# [x]
# username = "your-username"
# email = "you@example.com"
# password = "your-password"
# max_posts = 200
# max_scrolls = 20
# scroll_pause_seconds = 1.5
# Optional IMAP settings for X confirmation codes.
# [email]
# host = "imap.example.com"
# username = "you@example.com"
# password = "your-imap-password"
# port = 993