mirror of
https://github.com/KeyZox71/webserv.git
synced 2025-05-10 21:38:46 +02:00
「🔨」 fix: fixed some things.
This commit is contained in:
@ -6,7 +6,7 @@
|
|||||||
/* By: adjoly <adjoly@student.42angouleme.fr> +#+ +:+ +#+ */
|
/* By: adjoly <adjoly@student.42angouleme.fr> +#+ +:+ +#+ */
|
||||||
/* +#+#+#+#+#+ +#+ */
|
/* +#+#+#+#+#+ +#+ */
|
||||||
/* Created: 2025/04/10 13:08:36 by adjoly #+# #+# */
|
/* Created: 2025/04/10 13:08:36 by adjoly #+# #+# */
|
||||||
/* Updated: 2025/05/06 16:14:03 by adjoly ### ########.fr */
|
/* Updated: 2025/05/06 16:19:36 by adjoly ### ########.fr */
|
||||||
/* */
|
/* */
|
||||||
/* ************************************************************************** */
|
/* ************************************************************************** */
|
||||||
|
|
||||||
@ -37,8 +37,8 @@ void _generateConf(void) {
|
|||||||
_log.info(str.str());
|
_log.info(str.str());
|
||||||
std::ofstream file(SAMPLE_CONF_PATH);
|
std::ofstream file(SAMPLE_CONF_PATH);
|
||||||
if (file.is_open()) {
|
if (file.is_open()) {
|
||||||
file << "[server]\nhost = \"localhost\"\nport = "
|
file << "[server]\nhost = \"0.0.0.0\"\nport = "
|
||||||
"8080\n\n[server.location./]\nmethods = { \"GET\" }\nroot "
|
"80\n\n[server.location./]\nmethods = { \"GET\" }\nroot "
|
||||||
"= \"/var/www/html\"\ndirlist = true\nclient_max_body_size "
|
"= \"/var/www/html\"\ndirlist = true\nclient_max_body_size "
|
||||||
"= \"10M\"\n";
|
"= \"10M\"\n";
|
||||||
file.close();
|
file.close();
|
||||||
|
Reference in New Issue
Block a user