-
Notifications
You must be signed in to change notification settings - Fork 1
/
config.py
33 lines (29 loc) · 983 Bytes
/
config.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
import os
# Общие параметры
path='/var/www'
logFileName = 'ai-bolit.log'
try:
SERVER_NAME = os.uname()[1]
except:
SERVER_NAME='NONAME'
# Настройки для Slack
slack_key = 'xoxb-305032156928-lSlI90MIcjUu29cg1W3IM57V2' # введите свой slack key
slack_channel='#4admin'
# Config for e-mail send report
smtp_ssl_host = 'smtp.yandex.ru'
smtp_ssl_port = 465
username = '[email protected]'
password = 'pass'
sender = '[email protected]'
targets = ['[email protected]']
# Настройки для работы AI-BOLIT
# WORK_DIR = os.getcwd()
WORK_DIR = '/opt/ai'
AI_DIR = WORK_DIR+'/ai-bolit/'
AI = 'ai-bolit.php'
REPORT_PATH = WORK_DIR + '/report/'
SKIP = '--skip=7z,7zip,zip,rar,css,avi,mov'
SCAN = '' # '--scan=php,php5,pht,phtml,pl,cgi,htaccess,suspected,tpl'
MODE = '--mode=1' # Режим работы. MODE 1 - диагностика, MODE 2 - лечение
SIZE = '--size=100M'
PROGRESS = '--progress='+WORK_DIR+'progress.json'