From c8ad9407eb4493c068531ba3523de332b38ec128 Mon Sep 17 00:00:00 2001 From: 3lswear Date: Fri, 7 Jan 2022 01:43:08 +0300 Subject: [PATCH] feat: add new values --- config/example.toml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/config/example.toml b/config/example.toml index 4bbe5af..f148367 100644 --- a/config/example.toml +++ b/config/example.toml @@ -1,19 +1,22 @@ [[server]] name = "jopaserver" - port = 8080 host = "127.0.0.1" + port = 8080 error_page = "error.html" body_size_limit = 10 [[location]] location = "/" + # redirection ??? root = "/var/www/html/jopa.html" methods = ["GET", "POST"] directory_list = true directory_fallback = "its_a_directory.html" + upload_accept = true + upload_dir = "/var/www/html/upload" + [[location]] location = "/secret/" root = "/var/www/html/secret.html" methods = ["GET"] directory_list = false directory_fallback = "oops.html" -