diff --git a/src/doveadm/client-connection-http.c b/src/doveadm/client-connection-http.c index a2536d8d38..c58c37d621 100644 --- a/src/doveadm/client-connection-http.c +++ b/src/doveadm/client-connection-http.c @@ -759,15 +759,15 @@ static void doveadm_http_server_send_response(void *context) http_server_response_submit_close(conn->http_response); } -static const struct http_server_settings http_server_set = { +static struct http_server_settings http_server_set = { .max_client_idle_time_msecs = 0, .max_pipelined_requests = 0 }; void doveadm_http_server_init(void) { + http_server_set.rawlog_dir = doveadm_settings->doveadm_http_rawlog_dir; doveadm_http_server = http_server_init(&http_server_set); - } void doveadm_http_server_deinit(void) diff --git a/src/doveadm/doveadm-settings.c b/src/doveadm/doveadm-settings.c index e9a4ee4141..c41d013c0f 100644 --- a/src/doveadm/doveadm-settings.c +++ b/src/doveadm/doveadm-settings.c @@ -72,6 +72,7 @@ static const struct setting_define doveadm_setting_defines[] = { DEF(SET_STR, director_username_hash), DEF(SET_STR, doveadm_api_key), DEF(SET_STR, dsync_features), + DEF(SET_STR, doveadm_http_rawlog_dir), { SET_STRLIST, "plugin", offsetof(struct doveadm_settings, plugin_envs), NULL }, @@ -98,6 +99,7 @@ const struct doveadm_settings doveadm_default_settings = { .ssl_client_ca_file = "", .director_username_hash = "%Lu", .doveadm_api_key = "", + .doveadm_http_rawlog_dir = "", .plugin_envs = ARRAY_INIT }; diff --git a/src/doveadm/doveadm-settings.h b/src/doveadm/doveadm-settings.h index 6ea049a4d8..8bfa39c702 100644 --- a/src/doveadm/doveadm-settings.h +++ b/src/doveadm/doveadm-settings.h @@ -29,6 +29,7 @@ struct doveadm_settings { const char *director_username_hash; const char *doveadm_api_key; const char *dsync_features; + const char *doveadm_http_rawlog_dir; enum dsync_features parsed_features; ARRAY(const char *) plugin_envs; };