| 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 |
|
| 16 |
import shutil |
| 17 |
import socket |
| 18 |
|
| 19 |
CONTROLLER_ERRORS = True |
| 20 |
HAVE_MILTERTEST = shutil.which('miltertest') and True or False |
| 21 |
RSPAMD_EXTERNAL_RELAY_ENABLED = False |
| 22 |
RSPAMD_KEY_PVT1 = 'ekd3x36tfa5gd76t6pa8hqif3ott7n1siuux68exbkk7ukscte9y' |
| 23 |
RSPAMD_KEY_PUB1 = 'm8kneubpcjsb8sbsoj7jy7azj9fdd3xmj63txni86a8ye9ncomny' |
| 24 |
RSPAMD_KEY_PUB2 = 'mbggdnw3tdx7r3ruakjecpf5hcqr4cb4nmdp1fxynx3drbyujb3y' |
| 25 |
RSPAMD_KEY_PUB3 = 'zhypei8sartqrtow84dddgp5exh3gsr65kbw88wj7ppot1bwmuiy' |
| 26 |
RSPAMD_LOCAL_ADDR = '127.0.0.1' |
| 27 |
RSPAMD_MAP_WATCH_INTERVAL = '1min' |
| 28 |
RSPAMD_PORT_CONTROLLER = 56790 |
| 29 |
RSPAMD_PORT_CONTROLLER_SLAVE = 56793 |
| 30 |
RSPAMD_PORT_FUZZY = 56791 |
| 31 |
RSPAMD_PORT_FUZZY_SLAVE = 56792 |
| 32 |
RSPAMD_PORT_NORMAL = 56789 |
| 33 |
RSPAMD_PORT_NORMAL_SLAVE = 56794 |
| 34 |
RSPAMD_PORT_PROXY = 56795 |
| 35 |
RSPAMD_PORT_CONTROLLER_SSL = 56796 |
| 36 |
RSPAMD_PORT_NORMAL_SSL = 56797 |
| 37 |
RSPAMD_PORT_CLAM = 2100 |
| 38 |
RSPAMD_PORT_FPROT = 2101 |
| 39 |
RSPAMD_PORT_FPROT2_DUPLICATE = 2102 |
| 40 |
RSPAMD_PORT_AVAST = 2103 |
| 41 |
RSPAMD_P0F_SOCKET = '/tmp/p0f.sock' |
| 42 |
RSPAMD_REDIS_ADDR = '127.0.0.1' |
| 43 |
RSPAMD_REDIS_PORT = 56379 |
| 44 |
RSPAMD_NGINX_ADDR = '127.0.0.1' |
| 45 |
RSPAMD_NGINX_PORT = 56380 |
| 46 |
RSPAMD_GROUP = 'nogroup' |
| 47 |
RSPAMD_USER = 'nobody' |
| 48 |
SOCK_DGRAM = socket.SOCK_DGRAM |
| 49 |
SOCK_STREAM = socket.SOCK_STREAM |