-
Notifications
You must be signed in to change notification settings - Fork 11
/
config.py.template
72 lines (63 loc) · 2.02 KB
/
config.py.template
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
"""
Template to create config.py file.
Do not add 'config.py' to SCM.
"""
import os
_basedir = os.path.abspath(os.path.dirname(__file__))
MHN_SERVER_HOME = _basedir
# Local settings.
DEBUG = {{DEBUG}}
SECRET_KEY = '{{SECRET_KEY}}'
SUPERUSER_EMAIL = '{{SUPERUSER_EMAIL}}'
SUPERUSER_ONETIME_PASSWORD = '{{SUPERUSER_ONETIME_PASSWORD}}'
SERVER_BASE_URL = '{{SERVER_BASE_URL}}'
HONEYMAP_URL = '{{HONEYMAP_URL}}'
DEPLOY_KEY = '{{DEPLOY_KEY}}'
LOG_FILE_PATH = '{{LOG_FILE_PATH}}'
MAIL_SERVER = '{{MAIL_SERVER}}'
MAIL_PORT = {{MAIL_PORT}}
MAIL_USE_TLS = {{MAIL_USE_TLS}}
MAIL_USE_SSL = {{MAIL_USE_SSL}}
MAIL_USERNAME = '{{MAIL_USERNAME}}'
MAIL_PASSWORD = '{{MAIL_PASSWORD}}'
DEFAULT_MAIL_SENDER = '{{DEFAULT_MAIL_SENDER}}'
MAIL_DEBUG = DEBUG
MONGODB_HOST = '{{MONGODB_HOST}}'
MONGODB_PORT = {{MONGODB_PORT}}
HPFEEDS_HOST = '{{HPFEEDS_HOST}}'
HPFEEDS_PORT = {{HPFEEDS_PORT}}
# Other settings.
FEED_AUTH_REQUIRED = False
SQLALCHEMY_TRACK_MODIFICATIONS = True
SQLALCHEMY_DATABASE_URI = 'sqlite:///' + os.path.join(_basedir, 'sqlite/mhn.db')
SECURITY_PASSWORD_HASH = 'sha512_crypt'
SECURITY_PASSWORD_SINGLE_HASH = True
SECURITY_LOGIN_URL = '/ui/login/'
HONEYPOT_CHANNELS = {
'dionaea': [
'mwbinary.dionaea.sensorunique',
'dionaea.capture',
'dionaea.capture.anon',
'dionaea.dcerpcrequests',
'dionaea.connections'
],
'conpot': ['conpot.events'],
'snort': ['snort.alerts'],
'kippo': ['kippo.sessions'],
'cowrie': ['cowrie.sessions'],
'thug': ['thug.files', 'thug.events'],
'glastopf': ['glastopf.files', 'glastopf.events'],
'amun': ['amun.events'],
'wordpot': ['wordpot.events'],
'shockpot': ['shockpot.events'],
'p0f': ['p0f.events'],
'suricata': ['suricata.events'],
'elastichoney': ['elastichoney.events'],
'rdphoney': ['rdphoney.sessions'],
'uhp': ['uhp.events'],
'elasticpot': ['elasticpot.events'],
'spylex': ['spylex.events'],
'big-hp': ['big-hp.events'],
'ssh-auth-logger': ['ssh-auth-logger.events'],
'honeydb-agent': ['honeydb-agent.events']
}