]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
doveadm: add doveadm_http_rawlog_dir setting
authorMartti Rannanjärvi <martti.rannanjarvi@dovecot.fi>
Fri, 27 Jan 2017 11:56:30 +0000 (13:56 +0200)
committerGitLab <gitlab@git.dovecot.net>
Sun, 29 Jan 2017 17:58:56 +0000 (19:58 +0200)
src/doveadm/client-connection-http.c
src/doveadm/doveadm-settings.c
src/doveadm/doveadm-settings.h

index a2536d8d386dba64161f473336a795ecffdecd44..c58c37d621e1710520030eb16068168686c2b43d 100644 (file)
@@ -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)
index e9a4ee4141efa6688e652625a225669649d4265c..c41d013c0fed22d2509a2a63ee9b6eafc59125c5 100644 (file)
@@ -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
 };
index 6ea049a4d889eec7fa754d26c850f11a76f9def2..8bfa39c7021c0173786bfc1292eef4e51db0390b 100644 (file)
@@ -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;
 };