Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. options = {
  2. url_tld = "${URL_TLD}"
  3. pidfile = "${TMPDIR}/rspamd.pid"
  4. lua_path = "${INSTALLROOT}/share/rspamd/lib/?.lua"
  5. filters = [];
  6. explicit_modules = ["settings"];
  7. }
  8. logging = {
  9. type = "file",
  10. level = "debug"
  11. filename = "${TMPDIR}/rspamd.log"
  12. log_usec = true;
  13. }
  14. metric = {
  15. name = "default",
  16. actions = {
  17. reject = 100500,
  18. add_header = 50500,
  19. }
  20. unknown_weight = 1
  21. }
  22. worker {
  23. type = normal
  24. bind_socket = ${LOCAL_ADDR}:${PORT_NORMAL}
  25. count = 1
  26. task_timeout = 10s;
  27. }
  28. worker {
  29. type = controller
  30. bind_socket = ${LOCAL_ADDR}:${PORT_CONTROLLER}
  31. count = 1
  32. secure_ip = ["127.0.0.1", "::1"];
  33. stats_path = "${TMPDIR}/stats.ucl"
  34. }
  35. modules {
  36. path = "${TESTDIR}/../../src/plugins/lua/"
  37. }
  38. lua = "${TESTDIR}/lua/test_coverage.lua";
  39. neural {
  40. rules {
  41. SHORT {
  42. train {
  43. learning_rate = 0.001;
  44. max_usages = 2;
  45. spam_score = 1;
  46. ham_score = -1;
  47. max_trains = 10;
  48. max_iterations = 250;
  49. store_pool_only = true;
  50. }
  51. symbol_spam = "NEURAL_SPAM_SHORT";
  52. symbol_ham = "NEURAL_HAM_SHORT";
  53. ann_expire = 86400;
  54. watch_interval = 0.5;
  55. }
  56. SHORT_PCA {
  57. train {
  58. learning_rate = 0.001;
  59. max_usages = 2;
  60. spam_score = 1;
  61. ham_score = -1;
  62. max_trains = 10;
  63. max_iterations = 250;
  64. store_pool_only = true;
  65. }
  66. symbol_spam = "NEURAL_SPAM_SHORT_PCA";
  67. symbol_ham = "NEURAL_HAM_SHORT_PCA";
  68. ann_expire = 86400;
  69. watch_interval = 0.5;
  70. max_inputs = 2;
  71. }
  72. }
  73. allow_local = true;
  74. }
  75. redis {
  76. servers = "${REDIS_ADDR}:${REDIS_PORT}";
  77. expand_keys = true;
  78. }
  79. lua = "${TESTDIR}/lua/neural.lua";