From a611ab02ef8eb9d0a2536e8f89a7797564063d30 Mon Sep 17 00:00:00 2001 From: ArloFilley Date: Thu, 21 Mar 2024 17:59:00 +0000 Subject: [PATCH] added rocket.toml.example --- .gitignore | 3 ++- Rocket.toml.example | 23 +++++++++++++++++++++++ 2 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 Rocket.toml.example diff --git a/.gitignore b/.gitignore index 8fc794b..5602e5c 100644 --- a/.gitignore +++ b/.gitignore @@ -2,4 +2,5 @@ Cargo.lock .DS_Store -.env \ No newline at end of file +.env +Rocket.toml \ No newline at end of file diff --git a/Rocket.toml.example b/Rocket.toml.example new file mode 100644 index 0000000..150fdd6 --- /dev/null +++ b/Rocket.toml.example @@ -0,0 +1,23 @@ +[default] +address = "::" +port = 8000 +workers = 4 +max_blocking = 512 +keep_alive = 5 +ident = "Rocket" +log_level = "normal" +temp_dir = "/tmp" +cli_colors = true +secret_key = "Change This" + +[default.limits] +form = "64 kB" +json = "1 MiB" +msgpack = "2 MiB" +"file/jpg" = "5 MiB" + +[default.shutdown] +ctrlc = true +signals = ["term", "hup"] +grace = 5 +mercy = 5 \ No newline at end of file