mirror of
https://github.com/KeyZox71/webserv.git
synced 2025-05-10 20:48:46 +02:00
「🔨」 fix: fixed sample config
This commit is contained in:
@ -1,9 +0,0 @@
|
||||
[server]
|
||||
host = "localhost"
|
||||
port = 8080
|
||||
|
||||
[server.location./]
|
||||
methods = { "GET" }
|
||||
root = "/var/www/html"
|
||||
dirlist = true
|
||||
client_max_body_size = "10M"
|
@ -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"
|
@ -6,7 +6,7 @@
|
||||
/* By: adjoly <adjoly@student.42angouleme.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* 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 {
|
||||
|
Reference in New Issue
Block a user