-
Notifications
You must be signed in to change notification settings - Fork 3
/
example.gobin.toml
68 lines (59 loc) · 1.44 KB
/
example.gobin.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
56
57
58
59
60
61
62
63
64
65
66
67
68
debug = false
dev_mode = false
listen_addr = ":80"
http_timeout = "30s"
jwt_secret = "..."
max_document_size = 0
max_highlight_size = 0
# load custom chroma xml or base16 yaml themes from this directory, omit to disable
custom_styles = "custom_styles"
default_style = "snazzy"
# settings for the logging
[log]
# level can be -4 (debug), 0 (info), 4 (warn), 8 (error)
level = "info"
# format can be "text" or "json"
format = "text"
add_source = false
no_color = false
# settings for the database
[database]
# type can be "sqlite" or "postgres"
type = "postgres"
expire_after = "0"
cleanup_interval = "1m"
debug = false
# "path" is only used for SQLite
path = "gobin.db"
# "host", "port", "username", "password", "database", "ssl_mode" are only used for PostgreSQL
host = "database"
port = 5432
username = "gobin"
password = "gobin"
database = "gobin"
ssl_mode = "disable"
# omit or set values to 0 or "0" to disable rate limit
[rate_limit]
requests = 10
duration = "1m"
whitelist = ["127.0.0.1"]
blacklist = ["123.456.789.0"]
# settings for social media previews, omit to disable
[preview]
inkscape_path = "inkscape.exe"
max_lines = 0
dpi = 120
cache_size = 1024
cache_ttl = "1h"
# open telemetry settings, omit to disable
[otel]
instance_id = "1"
trace = { endpoint = "tempo:4318", insecure = true }
metrics = { listen_addr = ":9100" }
# settings for webhooks, omit to disable
[webhook]
timeout = "10s"
max_tries = 3
backoff = "1s"
backoff_factor = 2
max_backoff = "5m"