ok, so we added a lot more checks for the config file, and some post processing, still needs a few more things, but now some defaults are set too, basically it works under most circumstances

This commit is contained in:
Me
2022-08-01 00:49:25 +02:00
parent 19f7493aac
commit 16af16084b
8 changed files with 245 additions and 135 deletions

View File

@@ -26,14 +26,23 @@ class LocationConfig
public:
// canonic stuff?
std::string path;
int client_body_limit;
std::string path;
std::string root;
std::vector<std::string> index;
std::vector<MethodType> allow_methods;
std::map<std::string, std::string> cgi_info;
// wait if i can call several times, shouldn't it be a map?
// wait no there can only be 1 and i think it might have to be in
// location only...
int redirect_status;
std::string redirect_uri;
// au pire you do location / { return 301 http://location; }
// and that's how you get the redirect from the root.
};