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 2.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. # Please don't modify this file as your changes might be overwritten with
  2. # the next update.
  3. #
  4. # You can modify 'local.d/clickhouse.conf' to add and merge
  5. # parameters defined inside this section
  6. #
  7. # You can modify 'override.d/clickhouse.conf' to strictly override all
  8. # parameters defined inside this section
  9. #
  10. # See https://rspamd.com/doc/faq.html#what-are-the-locald-and-overrided-directories
  11. # for details
  12. #
  13. # Module documentation can be found at https://rspamd.com/doc/modules/clickhouse.html
  14. clickhouse {
  15. # Push update when 1000 records are collected (1000 if unset)
  16. limit = 1000;
  17. # IP:port of Clickhouse server
  18. # server = "localhost:8123";
  19. # Timeout to wait for response (5 seconds if unset)
  20. timeout = 5;
  21. # How many bits of sending IP to mask in logs for IPv4 (19 if unset)
  22. ipmask = 19;
  23. # How many bits of sending IP to mask in logs for IPv6 (48 if unset)
  24. ipmask6 = 48;
  25. # Record URL paths? (default false)
  26. full_urls = false;
  27. # This parameter points to a map of domain names
  28. # If a message has a domain in this map in From: header and DKIM signature,
  29. # record general metadata in a table named after the domain
  30. #from_tables = "/etc/rspamd/clickhouse_from.map";
  31. # These are symbols of other checks in Rspamd
  32. # Set these if you use non-default symbol names (unlikely)
  33. #bayes_spam_symbols = ["BAYES_SPAM"];
  34. #bayes_ham_symbols = ["BAYES_HAM"];
  35. #fann_symbols = ["FANN_SCORE"];
  36. #fuzzy_symbols = ["FUZZY_DENIED"];
  37. #whitelist_symbols = ["WHITELIST_DKIM", "WHITELIST_SPF_DKIM", "WHITELIST_DMARC"];
  38. #dkim_allow_symbols = ["R_DKIM_ALLOW"];
  39. #dkim_reject_symbols = ["R_DKIM_REJECT"];
  40. #dmarc_allow_symbols = ["DMARC_POLICY_ALLOW"];
  41. #dmarc_reject_symbols = ["DMARC_POLICY_REJECT", "DMARC_POLICY_QUARANTINE"];
  42. #retention {
  43. # # disabled by default
  44. # enable = true;
  45. # # drop | detach, please refer to ClickHouse docs for details
  46. # # http://clickhouse-docs.readthedocs.io/en/latest/query_language/queries.html#manipulations-with-partitions-and-parts
  47. # method = "drop";
  48. # # how many month the data should be kept in ClickHouse
  49. # period_months = 3;
  50. # # how often run the cleanup process
  51. # run_every = "7d";
  52. #}
  53. .include(try=true,priority=5) "${DBDIR}/dynamic/clickhouse.conf"
  54. .include(try=true,priority=1,duplicate=merge) "$LOCAL_CONFDIR/local.d/clickhouse.conf"
  55. .include(try=true,priority=10) "$LOCAL_CONFDIR/override.d/clickhouse.conf"
  56. }