diff --git a/sample.conf b/sample.conf deleted file mode 100644 index 531a1af..0000000 --- a/sample.conf +++ /dev/null @@ -1,9 +0,0 @@ -[server] -host = "localhost" -port = 8080 - -[server.location./] -methods = { "GET" } -root = "/var/www/html" -dirlist = true -client_max_body_size = "10M" diff --git a/sample.toml b/sample.toml deleted file mode 100644 index 06c8565..0000000 --- a/sample.toml +++ /dev/null @@ -1,9 +0,0 @@ -[server] -host = "0.0.0.0" -port = 80 - -[server.location./] -methods = { "GET" } -root = "/var/www/html" -dirlist = true -client_max_body_size = "10M" diff --git a/src/help.cpp b/src/help.cpp index 6657527..ff6b84c 100644 --- a/src/help.cpp +++ b/src/help.cpp @@ -6,7 +6,7 @@ /* By: adjoly +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2025/04/10 13:08:36 by adjoly #+# #+# */ -/* Updated: 2025/05/06 19:20:57 by adjoly ### ########.fr */ +/* Updated: 2025/05/08 11:21:10 by adjoly ### ########.fr */ /* */ /* ************************************************************************** */ @@ -40,9 +40,7 @@ void _generateConf(void) { std::ofstream file(SAMPLE_CONF_PATH); if (file.is_open()) { file << "[server]\nhost = \"0.0.0.0\"\nport = " - "80\n\n[server.location./]\nmethods = { \"GET\" }\nroot " - "= \"/var/www/html\"\ndirlist = true\nclient_max_body_size " - "= \"10M\"\n"; + "80\n\n[server.location./]\ndirlist = false\n"; file.close(); _log.info("config file successfully generated"); } else {