Skip to content

Commit

Permalink
Merge pull request #16 from traP-jp/rocket-config
Browse files Browse the repository at this point in the history
🔧 Modify Rocket.toml
  • Loading branch information
H1rono authored Dec 16, 2023
2 parents 6a2ceab + bcf4714 commit de45a67
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion Rocket.toml
Original file line number Diff line number Diff line change
@@ -1,11 +1,24 @@
# https://rocket.rs/v0.5/guide/configuration/#rockettoml
# https://rocket.rs/v0.5/guide/configuration/#configuration
[default]
address = "0.0.0.0"
port = 8000
limits = { json = "10MiB" }
keep_alive = 0

[default.limits]
# https://api.rocket.rs/v0.5/rocket/data/struct.Limits.html#impl-Default
form = "1MiB"
data-form = "10MiB"
file = "10MiB"
string = "1MiB"
bytes = "1MiB"
json = "5MiB"
msgpack = "1MiB"

## set only when compiled in debug mode, i.e, `cargo build`
[debug]
cli_colors = true

## set only when compiled in release mode, i.e, `cargo build --release`
[release]
cli_colors = false

0 comments on commit de45a67

Please sign in to comment.