-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathexample.gobin.toml
81 lines (70 loc) · 1.53 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
69
70
71
72
73
74
75
76
77
78
79
80
81
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, leave empty to disable
custom_styles = "custom_styles"
default_style = "onedark"
# 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"
# rate limit settings
[rate_limit]
enabled = false
requests = 10
duration = "1m"
whitelist = ["127.0.0.1"]
blacklist = ["123.456.789.0"]
# settings for social media previews
[preview]
enabled = false
inkscape_path = "inkscape.exe"
max_lines = 0
dpi = 120
cache_size = 1024
cache_ttl = "1h"
# open telemetry settings
[otel]
enabled = false
instance_id = "1"
# settings for otel tracing
[otel.trace]
enabled = false
endpoint = "localhost:4318"
insecure = true
# settings for otel metrics
[otel.metrics]
enabled = false
listen_addr = ":9100"
# settings for webhooks
[webhook]
enabled = false
timeout = "10s"
max_tries = 3
backoff = "1s"
backoff_factor = 2
max_backoff = "5m"