This commit is contained in:
Me
2022-08-12 04:38:07 +02:00
parent ab0bc2c4c0
commit f7c0ff1a8a
11 changed files with 27 additions and 103 deletions

View File

@@ -20,12 +20,14 @@ public:
// we could shove default in here if we wanted to...
std::string host;
std::string port; // port needs to be something else... not quite an int
std::string port;
std::string root; // ./www/ or www work www/ and www work
// i do remove trailing / tho
unsigned int client_body_limit; // set to default max if none set
// 413 (Request Entity Too Large) if exceeded
// default is 1m 1 000 000 ?
std::vector<std::string> index;
std::map<int, std::string> error_pages;
@@ -33,7 +35,7 @@ public:
std::vector<LocationConfig> locations;
void print_all()
void print_all() // const?
{
std::cout << "PRINTING A FULL SERVER CONFIG\n\n";