You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

clickhouse.conf 1.7KB

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