From 1d373807dbe529c6939edbe6dcab8931e1d002d9 Mon Sep 17 00:00:00 2001 From: 3lswear Date: Mon, 7 Mar 2022 14:21:47 +0300 Subject: [PATCH] feat: add example config file --- config/example.toml | 42 ++---------------------------------------- 1 file changed, 2 insertions(+), 40 deletions(-) diff --git a/config/example.toml b/config/example.toml index 71382c4..4a6c106 100644 --- a/config/example.toml +++ b/config/example.toml @@ -1,46 +1,8 @@ [[server]] - name = ["jopa.com", "popa.org"] host = "127.0.0.1" port = 8080 - body_size_limit = 10 - [server.error_page] - 400 = "error_400.html" - 401 = "error_401.html" [[server.location]] - redirect = ["301", "http://localhost/secret"] location = "/" - root = "/var/www/html/" - methods = ["GET", "POST"] - autoindex = true - directory_file = "its_a_directory.html" - upload_accept = true - upload_dir = "/var/www/html/upload" - - [[server.location]] - location = "/secret" - root = "/var/www/html/secret.html" + root = "www/def" methods = ["GET"] - autoindex = false - directory_file = "oops.html" - -[[server]] - name = "2222" - ip = "10.0.0.1" - port = 8081 - body_size_limit = 10 - [[server.location]] - location = "/root2/" - # redirection ??? - root = "/var/www/html/jopa.html" - methods = ["GET", "POST"] - autoindex = true - directory_file = "its_a_directory.html" - upload_accept = false - upload_dir = "/var/www/html/upload" - - [[server.location]] - location = "/secret2/" - root = "/var/www/html/secret.html" - methods = ["GET"] - autoindex = false - directory_file = "oops.html" + directory_file = "index.html"