summaryrefslogtreecommitdiffstats
path: root/test/functional/configs/clickhouse.conf
blob: f92f2e759f88d7f90c639dff0dd8f59b44a3deab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
options = {
  filters = ["spf", "dkim", "regexp"]
  pidfile = "${RSPAMD_TMPDIR}/rspamd.pid"
  lua_path = "${INSTALLROOT}/share/rspamd/lib/?.lua"
  dns {
    nameserver = ["8.8.8.8", "8.8.4.4"];
    retransmits = 10;
    timeout = 2s;
        fake_records = [{ # ed25519
          name = "test._domainkey.example.com";
          type = txt;
          replies = ["k=ed25519; p=yi50DjK5O9pqbFpNHklsv9lqaS0ArSYu02qp1S0DW1Y="];
        }];
  }
}
clickhouse {
  # Push update when 1000 records are collected (1000 if unset)
  limit = 1;
  # IP:port of Clickhouse server
  server = "localhost:18123";
  allow_local = true;
  retention {
    # disabled by default
    enable = true;
    # drop | detach, please refer to ClickHouse docs for details
    # http://clickhouse-docs.readthedocs.io/en/latest/query_language/queries.html#manipulations-with-partitions-and-parts
    method = "drop";
    # how many month the data should be kept in ClickHouse
    period_months = 3;
    # how often run the cleanup process
    run_every = "7d";
  }
}
logging = {
  type = "file",
  level = "debug"
  filename = "${RSPAMD_TMPDIR}/rspamd.log"
}
metric = {
  name = "default",
  actions = {
    reject = 100500,
  }
  unknown_weight = 1
}
worker {
  type = normal
  bind_socket = ${RSPAMD_LOCAL_ADDR}:${RSPAMD_PORT_NORMAL}
  count = 1
  task_timeout = 60s;
}
worker {
        type = controller
        bind_socket = ${RSPAMD_LOCAL_ADDR}:${RSPAMD_PORT_CONTROLLER}
        count = 1
        secure_ip = ["127.0.0.1", "::1"];
        stats_path = "${RSPAMD_TMPDIR}/stats.ucl"
}
lua = "${RSPAMD_TESTDIR}/lua/test_coverage.lua";
modules {
    path = "${RSPAMD_TESTDIR}/../../src/plugins/lua/"
}
lua = "${INSTALLROOT}/share/rspamd/rules/rspamd.lua"