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.

lua_test.conf 962B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. options = {
  2. filters = ["spf", "dkim", "regexp"]
  3. url_tld = "${URL_TLD}"
  4. pidfile = "${TMPDIR}/rspamd.pid"
  5. map_watch_interval = ${MAP_WATCH_INTERVAL};
  6. dns {
  7. retransmits = 10;
  8. timeout = 2s;
  9. fake_records = [{
  10. name = "example.com",
  11. type = "a";
  12. replies = ["93.184.216.34"];
  13. }, {
  14. name = "site.resolveme",
  15. type = "a";
  16. replies = ["127.0.0.1"];
  17. }, {
  18. name = "not-resolvable.com",
  19. type = "a";
  20. rcode = 'norec';
  21. }]
  22. }
  23. }
  24. logging = {
  25. type = "file",
  26. level = "debug"
  27. filename = "${TMPDIR}/rspamd.log"
  28. log_usec = true;
  29. }
  30. metric = {
  31. name = "default",
  32. actions = {
  33. reject = 100500,
  34. }
  35. unknown_weight = 1
  36. }
  37. worker {
  38. type = normal
  39. bind_socket = ${LOCAL_ADDR}:${PORT_NORMAL}
  40. count = 1
  41. task_timeout = 10s;
  42. }
  43. worker {
  44. type = controller
  45. bind_socket = ${LOCAL_ADDR}:${PORT_CONTROLLER}
  46. count = 1
  47. secure_ip = ["127.0.0.1", "::1"];
  48. stats_path = "${TMPDIR}/stats.ucl"
  49. }
  50. lua = "${TESTDIR}/lua/test_coverage.lua";
  51. lua = ${LUA_SCRIPT};