Skip to content

Commit

Permalink
doveadm: add doveadm_http_rawlog_dir setting
Browse files Browse the repository at this point in the history
  • Loading branch information
mrannanj authored and sirainen committed Jan 30, 2017
1 parent b694e99 commit 0ceec81
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/doveadm/client-connection-http.c
Expand Up @@ -766,15 +766,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)
Expand Down
2 changes: 2 additions & 0 deletions src/doveadm/doveadm-settings.c
Expand Up @@ -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 },

Expand All @@ -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
};
Expand Down
1 change: 1 addition & 0 deletions src/doveadm/doveadm-settings.h
Expand Up @@ -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;
};
Expand Down

0 comments on commit 0ceec81

Please sign in to comment.