-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathconfig.toml
More file actions
105 lines (84 loc) · 3.82 KB
/
Copy pathconfig.toml
File metadata and controls
105 lines (84 loc) · 3.82 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
# Web Scraper Configuration
# ========================
# Target URLs to scrape
targets = [
# "https://example-manga.com/series/one-piece",
# "https://example-donghua.com/anime/soul-land",
# "https://example-wordpress.com/blog/post-1",
]
# Output file path
output_path = "output.json"
# Maximum concurrent requests (1-100)
concurrency = 5
# Request timeout in seconds (1-300)
timeout_secs = 30
# Maximum response body size in bytes (default: 10MB)
max_body_size = 10485760
# Default rate limit delay in milliseconds (100-60000)
rate_limit_ms = 1000
# Maximum retry attempts for failed requests
max_retries = 3
# Base delay for retry backoff in milliseconds
retry_base_delay_ms = 1000
# JSON indentation (0-8 spaces)
indent = 2
# Maximum pagination pages to follow
max_pages = 50
# Default headers for all requests
[headers]
Accept = "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8"
Accept-Language = "en-US,en;q=0.9,id;q=0.8"
# User-Agent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36"
# Per-domain rate limit overrides (domain -> delay_ms)
[rate_limits]
# "mangadex.org" = 2000
# "example.com" = 500
# Per-site configuration overrides
# [sites."mangadex.org"]
# referer = "https://mangadex.org"
# user_agent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) Chrome/120.0.0.0"
# rate_limit_ms = 2000
# [sites."mangadex.org".headers]
# X-Custom-Header = "value"
# ===========================================================================
# Consumer web app branding & monetization (served at "/")
# ===========================================================================
# Everything in [web] is read at server start and injected into the SPA.
# You can rebrand, add SEO/ad-network verification, and place ads WITHOUT
# recompiling -- just edit this file and restart `apiku serve`.
[web]
# Site name shown in the header, drawer, browser tab title.
# Ganti nilai ini untuk mengubah nama situs TANPA build ulang binary.
# Bisa juga di-override lewat environment variable APIKU_SITE_NAME
# (env menang atas nilai di sini), berguna untuk Docker/systemd.
site_name = "apiku"
# Tagline shown on the home hero banner. (env: APIKU_TAGLINE)
tagline = "Stream donghua, read comics & novels, browse cosplay galleries - all in one platform."
# Custom logo. Kosongkan untuk auto-deteksi / logo bawaan.
# - Auto-deteksi: cukup taruh file `logo.*` atau `favicon.*` di folder
# static_dir (public/), mis. public/logo.png -> otomatis dipakai.
# - Manual: set path/URL di sini (menang atas auto-deteksi), mis.
# logo_url = "/brand.png" atau "https://cdn.kamu/logo.svg"
# - Kosong & tak ada file logo -> pakai logo gradien bawaan.
# Lihat public/README.md untuk panduan lengkap.
logo_url = ""
# Footer HTML. Empty -> a minimal "<site_name> (c) <year>" line.
# Provide your own markup to fully control it (raw HTML allowed).
footer_html = ""
# Raw HTML injected into <head>. Use for search-engine / ad-network
# verification meta tags and analytics/ad loader scripts. Example:
# head_html = '<meta name="google-site-verification" content="XXXX">'
head_html = ""
# Raw HTML injected just before </body> (deferred scripts).
body_html = ""
# Directory served at the site root for verification files, ads.txt,
# sitemap.xml, robots.txt, favicons, and custom logos. Relative to the
# working directory. A request to /google1234.html serves
# <static_dir>/google1234.html. Missing files simply 404.
static_dir = "public"
# Named ad slots: raw HTML rendered at fixed positions in the web app.
# Known slots: home, browse, detail, reader.
[web.ads]
# home = '<ins class="adsbygoogle" ...></ins><script>(adsbygoogle=window.adsbygoogle||[]).push({})</script>'
# browse = ''
# reader = ''