forked from hugolz/storage_server
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRocket.toml
More file actions
36 lines (30 loc) · 1.08 KB
/
Rocket.toml
File metadata and controls
36 lines (30 loc) · 1.08 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
# https://rocket.rs/v0.5-rc/guide/configuration/
## defaults for ALL profiles
[default]
ident = false # Do not show ident for security reasons (kinda dumb since it's open source lol)
address = "127.0.0.1"
port = 0xa456
# Number of threads to use for executing futures.
workers = 8
# Keep-alive timeout seconds; disabled when 0.
keep_alive = 0
# Max level to log. (off/normal/debug/critical)
log_level = "normal" # Isn't it the 'minimal' level instead ? like log everything above that threshold ?
# Doesn't work well with my file logger system
cli_colors = false
# Streaming read size limits.
[default.limits]
bytes = "0 B"
data-form = "0 B"
file = "5 GiB"
form = "0 B"
msgpack = "0 B"
string = "0 B"
json = "0 B" # 50 kb data + 33% base64 + 3.5mb space for additional json data and others
# ## set only when compiled in debug mode, i.e, `cargo build`
# [debug]
# ## only the `json` key from `default` will be overridden; `form` will remain
# limits = { json = "50 MiB" }
# ## set only when compiled in release mode, i.e, `cargo build --release`
# [release]
# limits = { json = "10 MiB" }