mirror of
https://github.com/KeyZox71/webserv.git
synced 2025-06-25 09:33:36 +02:00
「🔨」 fix: fixed sample conf
This commit is contained in:
@ -1,5 +1,5 @@
|
|||||||
[server]
|
[server]
|
||||||
host = "0.0.0.0"
|
host = "0.0.0.0"
|
||||||
port = 8080
|
port = 80
|
||||||
|
|
||||||
[server.location./]
|
[server.location./]
|
||||||
|
@ -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/08 11:58:13 by adjoly ### ########.fr */
|
/* Updated: 2025/06/09 18:43:18 by adjoly ### ########.fr */
|
||||||
/* */
|
/* */
|
||||||
/* ************************************************************************** */
|
/* ************************************************************************** */
|
||||||
|
|
||||||
@ -40,7 +40,7 @@ void _generateConf(const std::string path) {
|
|||||||
std::ofstream file(path.c_str());
|
std::ofstream file(path.c_str());
|
||||||
if (file.is_open()) {
|
if (file.is_open()) {
|
||||||
file << "[server]\nhost = \"0.0.0.0\"\nport = "
|
file << "[server]\nhost = \"0.0.0.0\"\nport = "
|
||||||
"80\n\n[server.location./]\n";
|
"80\n\n[server.location./]\nmethods = { \"GET\" }\n";
|
||||||
file.close();
|
file.close();
|
||||||
_log.info("config file successfully generated");
|
_log.info("config file successfully generated");
|
||||||
} else {
|
} else {
|
||||||
|
Reference in New Issue
Block a user