added: config parameters:

bool log_check_proxy_ip_header;
       // check whether there is a 'log_proxy_ip_header' header
       // and if so then log the IP address from it
       // default: false

       std::wstring log_proxy_ip_header;
       // proxy header representing the real IP address of a client
       // default: X-Real-IP





git-svn-id: svn://ttmath.org/publicrep/winix/trunk@1104 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
2018-05-01 10:43:20 +00:00
parent 6252a0e732
commit ba7d55b7c1
3 changed files with 19 additions and 1 deletions

View File

@@ -149,6 +149,8 @@ void Config::AssignValues(bool stdout_is_closed)
log_env_variables = Bool(L"log_env_variables", false);
log_env_http_variables = Bool(L"log_env_http_variables", false);
log_http_answer_headers = Bool(L"log_http_answer_headers", false);
log_check_proxy_ip_header = Bool(L"log_check_proxy_ip_header", false);
log_proxy_ip_header = Text(L"log_proxy_ip_header", L"X-Real-IP");
post_file_max = Size(L"post_file_max", 8388608); // 8 MB