-
Notifications
You must be signed in to change notification settings - Fork 33
/
defaults.toml
208 lines (188 loc) · 6.83 KB
/
defaults.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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
# readflow configuration file
#
# If an attribute has a default value, this value is used if the attribute is not
# set or empty.
#
# Environment variables can be used anywhere in this config file, simply surround
# them with ${}. For strings the variable must be within quotes (ie, "${STR_VAR}"),
# for numbers and booleans they should be plain (ie, ${INT_VAR}, ${BOOL_VAR})
[log]
## Log level
# Values: "debug", "info", "warn" or "error"
# Default: "info"
level = "${READFLOW_LOG_LEVEL}"
## Log format
# Values: "json" or "text"
# Default: "json"
format = "${READFLOW_LOG_FORMAT}"
[database]
## Database connection string
# Default: "postgres://postgres:testpwd@localhost/readflow_test?sslmode=disable"
uri = "${READFLOW_DATABASE_URI}"
[http]
## HTTP listen address
# Default: ":8080"
# Examples: "localhost:8080" or ":8080" for all interfaces
listen_addr = "${READFLOW_HTTP_LISTEN_ADDR}"
## Public URL
# Default: "https://localhost:8080"
# Example: "https://api.readflow.app"
public_url = "${READFLOW_HTTP_PUBLIC_URL}"
[metrics]
## Metrics listen address (aka: Prometheus metrics endpoint), disabled if empty
# Example: ":9090"
listen_addr = "${READFLOW_METRICS_LISTEN_ADDR}"
[smtp]
## SMTP listen address, disabled if empty
# Examples: "localhost:1025" or ":1025" for all interfaces
listen_addr = "${READFLOW_SMTP_LISTEN_ADDR}"
## SMTP hostname
# Default: "localhost"
hostname = "${READFLOW_SMTP_HOSTNAME}"
[authn]
## Autentification method
# - `mock`: Mocked, aka fake user for testing
# - `basic`: Basic Authentication using htpasswd file
# - `proxy`: Proxied authentication using specific header as username
# - `oidc`: OpenID Connect authentification
# Default: "mock"
method = "${READFLOW_AUTHN_METHOD}"
## Administrators usernames
# Comma separated list of username
# Example: "admin,john.doe@example.com"
admins = "${READFLOW_AUTHN_ADMINS}"
[authn.basic]
## htpasswd file
# Default: "file://.htpasswd"
htpasswd_file = "${READFLOW_AUTHN_BASIC_HTPASSWD_FILE}"
[authn.oidc]
## OpenID Connect issuer
# Default: "https://accounts.readflow.app"
issuer = "${READFLOW_AUTHN_OIDC_ISSUER}"
## OpenID client ID (used only for opaque token introspection)
client_id = "${READFLOW_AUTHN_OIDC_CLIENT_ID}"
## OpenID client secret (used only for opaque token introspection)
client_secret = "${READFLOW_AUTHN_OIDC_CLIENT_SECRET}"
[authn.proxy]
## Proxy headers
# Comma separated list of header carrying the username
# Default: "X-WEBAUTH-USER", "X-Auth-Username", "Remote-User" or "Remote-Name"
# Example: "x-auth-username, x-username"
headers = "${READFLOW_AUTHN_PROXY_HEADERS}"
[ui]
## UI directory, disabled if empty
# Example: "/var/local/html"
directory = "${READFLOW_UI_DIRECTORY}"
## UI public URL
# Default: "https://localhost:8080"
public_url = "${READFLOW_UI_PUBLIC_URL}"
## UI client ID (when using OpenID Connect authentication method)
client_id = "${READFLOW_UI_CLIENT_ID}"
[hash]
## Secret key used by hash algorythms (hex-encoded)
# Default: "736563726574" (aka "secret")
secret_key = "${READFLOW_HASH_SECRET_KEY}"
## Secret salt used by hash algorythms (hex-encoded)
# Default: "706570706572" (aka "pepper")
secret_salt = "${READFLOW_HASH_SECRET_SALT}"
[downloader]
## User-Agent of the HTTP client used by the downloader
# Default: "Mozilla/5.0 (compatible; Readflow/1.0; +https://github.com/ncarlier/readflow)"
user_agent = "${READFLOW_DOWNLOADER_USER_AGENT}"
## Timeout of the HTTP client used by the downloader
# Default: 5s
timeout = "${READFLOW_DOWNLOADER_TIMEOUT}"
## Cache parameters of the downloader
# Default: "boltdb:///tmp/readflow-downloads.cache?maxSize=256,maxEntries=5000,maxEntrySize=5"
cache = "${READFLOW_DOWNLOADER_CACHE}"
## Max concurent downloads
# Default: 10
#max_concurent_downloads = ${READFLOW_DOWNLOADER_MAX_CONCURENT_DOWNLOADS}
[scraping]
## User-Agent of the HTTP client used by the Web Scraper
# Default: "Mozilla/5.0 (compatible; Readflow/1.0; +https://github.com/ncarlier/readflow)"
user_agent = "${READFLOW_SCRAPING_USER_AGENT}"
## Timeout of the HTTP client used by the Web Scraper
# Default: 5s
timeout = "${READFLOW_SCRAPING_TIMEOUT}"
## Block-list local or remote location, disabled if empty
# Examples:
# - file:///var/opt/block-list-txt
# - https://raw.githubusercontent.com/anudeepND/blacklist/master/adservers.txt
# - https://raw.githubusercontent.com/notracking/hosts-blocklists/master/dnscrypt-proxy/dnscrypt-proxy.blacklist.txt
block_list = "${READFLOW_SRAPING_BLOCK_LIST}"
## Forward Proxy used to fetch special pages
[scraping.forward_proxy]
## Forward Proxy endpoint, disabled if empty
# {url} is a placehoder for the target page URL.
# Examples: https://my-html-rewriting.site?url={url}
endpoint = "${READFLOW_SCRAPING_FORWARD_PROXY_ENDPOINT}"
## Hosts to be proxied
# The use of a wildcard character ("*") means that ALL URLs will be proxied.
# Example: [ "medium.com", "washingtonpost.com" ]
hosts = [ "medium.com" ]
[avatar]
## Avatar local or remote service provider
# If using a remote service provider, {seed} is a placehoder for the avatar seed.
# Default: "https://robohash.org/{seed}?set=set4&size=48x48"
# Examples:
# - file:///var/opt/avatars?default=cat
# - https://seccdn.libravatar.org/avatar/{seed}?d=mp&s=48
service_provider = "${READFLOW_AVATAR_SERVICE_PROVIDER}"
[image_proxy]
## Image proxy URL, disabled if empty
# Example: "http://imagor:8080"
url = "${READFLOW_IMAGE_PROXY_URL}"
## Image proxy supported sizes
# Comma separated list of image size
# Default: "320,768"
sizes = "${READFLOW_IMAGE_PROXY_SIZES}"
[pdf]
## PDF generator service provider, disabled if empty
# Example: "http://gotenberg:3000/forms/chromium/convert/html"
service_provider = "${READFLOW_PDF_SERVICE_PROVIDER}"
[secrets]
## Secrets service provider for secrets encryption, disabled if empty (aka: no encryption)
# Examples:
# - file:///var/opt/key.txt
service_provider = "${READFLOW_SECRETS_SERVICE_PROVIDER}"
[event]
## Event broker URI for outgoing events, disabled if empty
# Example: "https://example.com/event"
broker_uri = "${READFLOW_EVENT_BROKER_URI}"
[integration]
## Sentry integration
[integration.sentry]
## DSN URL, disabled if empty
dsn_url = "${READFLOW_SENTRY_DSN}"
## Pocker integration
[integration.pocket]
## Consumer key, disabled if empty
consumer_key = "${READFLOW_POCKET_CONSUMER_KEY}"
## Rate limiting for notifications, none by default
#[rate_limiting.notification]
#provider = "memory"
#tokens = 5
#interval = "24h"
## Rate limiting for incoming webhooks, none by default
#[rate_limiting.webhook]
#provider = "memory"
#tokens = 30
#interval = "1m"
## User Plans, none by default
#[[user_plans]]
#name = "free to play"
#articles_limit = 200
#categories_limit = 10
#incoming_webhooks_limit = 1
#outgoing_webhooks_limit = 1
#outgoing_webhooks_timeout = "2s"
#download_timeout = "2s"
#[[user_plans]]
#name = "friends and family"
#articles_limit = 2000
#categories_limit = 50
#incoming_webhooks_limit = 5
#outgoing_webhooks_limit = 5
#outgoing_webhooks_timeout = "10s"
#download_timeout = "10s"