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.

vars.py 3.8KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. # Copyright 2024 Vsevolod Stakhov
  2. #
  3. # Licensed under the Apache License, Version 2.0 (the "License");
  4. # you may not use this file except in compliance with the License.
  5. # You may obtain a copy of the License at
  6. #
  7. # http://www.apache.org/licenses/LICENSE-2.0
  8. #
  9. # Unless required by applicable law or agreed to in writing, software
  10. # distributed under the License is distributed on an "AS IS" BASIS,
  11. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. # See the License for the specific language governing permissions and
  13. # limitations under the License.
  14. #
  15. # Licensed under the Apache License, Version 2.0 (the "License");
  16. # you may not use this file except in compliance with the License.
  17. # You may obtain a copy of the License at
  18. #
  19. # http://www.apache.org/licenses/LICENSE-2.0
  20. #
  21. # Unless required by applicable law or agreed to in writing, software
  22. # distributed under the License is distributed on an "AS IS" BASIS,
  23. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  24. # See the License for the specific language governing permissions and
  25. # limitations under the License.
  26. #
  27. # Licensed under the Apache License, Version 2.0 (the "License");
  28. # you may not use this file except in compliance with the License.
  29. # You may obtain a copy of the License at
  30. #
  31. # http://www.apache.org/licenses/LICENSE-2.0
  32. #
  33. # Unless required by applicable law or agreed to in writing, software
  34. # distributed under the License is distributed on an "AS IS" BASIS,
  35. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  36. # See the License for the specific language governing permissions and
  37. # limitations under the License.
  38. #
  39. # Licensed under the Apache License, Version 2.0 (the "License");
  40. # you may not use this file except in compliance with the License.
  41. # You may obtain a copy of the License at
  42. #
  43. # http://www.apache.org/licenses/LICENSE-2.0
  44. #
  45. # Unless required by applicable law or agreed to in writing, software
  46. # distributed under the License is distributed on an "AS IS" BASIS,
  47. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  48. # See the License for the specific language governing permissions and
  49. # limitations under the License.
  50. #
  51. # Licensed under the Apache License, Version 2.0 (the "License");
  52. # you may not use this file except in compliance with the License.
  53. # You may obtain a copy of the License at
  54. #
  55. # http://www.apache.org/licenses/LICENSE-2.0
  56. #
  57. # Unless required by applicable law or agreed to in writing, software
  58. # distributed under the License is distributed on an "AS IS" BASIS,
  59. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  60. # See the License for the specific language governing permissions and
  61. # limitations under the License.
  62. import shutil
  63. import socket
  64. CONTROLLER_ERRORS = True
  65. HAVE_MILTERTEST = shutil.which('miltertest') and True or False
  66. RSPAMD_EXTERNAL_RELAY_ENABLED = False
  67. RSPAMD_KEY_PVT1 = 'ekd3x36tfa5gd76t6pa8hqif3ott7n1siuux68exbkk7ukscte9y'
  68. RSPAMD_KEY_PUB1 = 'm8kneubpcjsb8sbsoj7jy7azj9fdd3xmj63txni86a8ye9ncomny'
  69. RSPAMD_KEY_PUB2 = 'mbggdnw3tdx7r3ruakjecpf5hcqr4cb4nmdp1fxynx3drbyujb3y'
  70. RSPAMD_KEY_PUB3 = 'zhypei8sartqrtow84dddgp5exh3gsr65kbw88wj7ppot1bwmuiy'
  71. RSPAMD_LOCAL_ADDR = '127.0.0.1'
  72. RSPAMD_MAP_WATCH_INTERVAL = '1min'
  73. RSPAMD_PORT_CONTROLLER = 56790
  74. RSPAMD_PORT_CONTROLLER_SLAVE = 56793
  75. RSPAMD_PORT_FUZZY = 56791
  76. RSPAMD_PORT_FUZZY_SLAVE = 56792
  77. RSPAMD_PORT_NORMAL = 56789
  78. RSPAMD_PORT_NORMAL_SLAVE = 56794
  79. RSPAMD_PORT_PROXY = 56795
  80. RSPAMD_PORT_CLAM = 2100
  81. RSPAMD_PORT_FPROT = 2101
  82. RSPAMD_PORT_FPROT2_DUPLICATE = 2102
  83. RSPAMD_PORT_AVAST = 2103
  84. RSPAMD_P0F_SOCKET = '/tmp/p0f.sock'
  85. RSPAMD_REDIS_ADDR = '127.0.0.1'
  86. RSPAMD_REDIS_PORT = 56379
  87. RSPAMD_NGINX_ADDR = '127.0.0.1'
  88. RSPAMD_NGINX_PORT = 56380
  89. RSPAMD_GROUP = 'nogroup'
  90. RSPAMD_USER = 'nobody'
  91. SOCK_DGRAM = socket.SOCK_DGRAM
  92. SOCK_STREAM = socket.SOCK_STREAM