-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfanotify.example.toml
56 lines (50 loc) · 1.93 KB
/
fanotify.example.toml
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
# FA Notify configuration file
# Set TG client to debug mode, and also run a pprof debug server on
# http://localhost:6680/debug/pprof/
debug = true
logLevel = "DEBUG"
# For colors in log output, useful in IDEs that properly interpret them but don't show up as TTYs
logForceColors = true
# Output logs in JSON format instead. Overrides logForceColors.
logJSON = false
[tg]
# Get this token from @BotFather when you create your bot.
token = ""
# User ID of the owner (*not* the username). They will receive a message for
# every "error" level log message.
# You can use @userinfobot to get your user ID.
ownerID = 0
debug = false
[fa]
# How often to poll for searches/submissions. You can use common
# suffixes; see https://golang.org/pkg/time/#ParseDuration
pollInterval = "1m"
# Proxy server to use for FA requests. You can do something like
# ssh -D 18080 my-awesome-server.com
# to run a SOCKS5 proxy over an ssh connection, and then specify something like
# socks5://127.0.0.1:18080
# for this to use that proxy.
proxy = ""
# You probably want to set this to what your browser says it is.
userAgent = "fanotify/faapi/go"
# Requests to FA will not occur more frequently than this.
# Note: Requests of facdn (for downloading images) are not constrained by this.
rateLimit = "10s"
# The maximum amount of time for a single request to FA, including any retries.
# This should be at least as long as requestTimeout times retryLimit.
timeout = "1m"
# The maximum amount of time for a single request attempt to FA.
requestTimeout = "15s"
# The delay between retries for a single request.
retryDelay = "5s"
# How many times to retry a single request, whether it timed out or got an error
# code back from FA or Cloudflare.
retryLimit = 3
# Cookies to set on requests to FA. If you don't provide valid cookies that will
# get you logged in to an account, only general-rated artwork will be returned.
[[fa.cookies]]
name = "a"
value = "A"
[[fa.cookies]]
name = "b"
value = "B"