2022-11-21 07:20:29 +00:00
|
|
|
# Elasticsearch settings
|
|
|
|
ELASTICSEARCH_URL = "10.1.0.1"
|
|
|
|
ELASTICSEARCH_PORT = 9200
|
|
|
|
ELASTICSEARCH_TLS = True
|
|
|
|
ELASTICSEARCH_USERNAME = "admin"
|
|
|
|
ELASTICSEARCH_PASSWORD = "secret"
|
2022-07-21 12:47:37 +00:00
|
|
|
|
2022-11-21 19:20:02 +00:00
|
|
|
# Manticore settings
|
|
|
|
MANTICORE_URL = "http://example-db-1:9308"
|
2022-07-21 12:47:37 +00:00
|
|
|
|
2022-11-21 19:20:02 +00:00
|
|
|
DB_BACKEND = "ELASTICSEARCH"
|
2022-09-05 06:20:30 +00:00
|
|
|
|
2022-11-21 19:20:02 +00:00
|
|
|
# Common DB settings
|
|
|
|
INDEX_MAIN = "main"
|
|
|
|
INDEX_RESTRICTED = "restricted"
|
|
|
|
INDEX_META = "meta"
|
|
|
|
INDEX_INT = "internal"
|
2023-02-09 07:20:28 +00:00
|
|
|
INDEX_RULE_STORAGE = "rule_storage"
|
2022-11-21 19:20:02 +00:00
|
|
|
|
|
|
|
MAIN_SIZES = ["1", "5", "15", "30", "50", "100", "250", "500", "1000"]
|
|
|
|
MAIN_SIZES_ANON = ["1", "5", "15", "30", "50", "100"]
|
|
|
|
MAIN_SOURCES = ["dis", "4ch", "all"]
|
|
|
|
SOURCES_RESTRICTED = ["irc"]
|
|
|
|
CACHE = False
|
|
|
|
CACHE_TIMEOUT = 2
|
2022-09-05 06:20:30 +00:00
|
|
|
|
2022-08-10 19:40:58 +00:00
|
|
|
DRILLDOWN_RESULTS_PER_PAGE = 15
|
2022-09-05 06:20:30 +00:00
|
|
|
DRILLDOWN_DEFAULT_PARAMS = {
|
2022-11-21 19:20:02 +00:00
|
|
|
"size": "15",
|
2022-09-05 06:20:30 +00:00
|
|
|
"index": "main",
|
|
|
|
"sorting": "desc",
|
2023-02-10 07:20:22 +00:00
|
|
|
"source": "all",
|
2022-09-05 06:20:30 +00:00
|
|
|
}
|
2022-07-21 12:47:37 +00:00
|
|
|
|
2022-11-21 19:20:02 +00:00
|
|
|
|
2022-08-26 16:16:55 +00:00
|
|
|
# Encryption
|
2022-09-05 06:20:30 +00:00
|
|
|
# ENCRYPTION = False
|
|
|
|
# ENCRYPTION_KEY = b""
|
2022-08-26 16:16:55 +00:00
|
|
|
|
|
|
|
# Hashing
|
2022-09-05 06:20:30 +00:00
|
|
|
# HASHING = True
|
|
|
|
# HASHING_KEY = "xxx"
|
2022-08-26 16:16:55 +00:00
|
|
|
|
2022-08-26 19:44:39 +00:00
|
|
|
# Obfuscation
|
2022-09-05 06:20:30 +00:00
|
|
|
# OBFUSCATION = True
|
|
|
|
# # Fields obfuscate based on separators
|
|
|
|
# OBFUSCATE_FIELDS_SEP = ["date", "time"]
|
|
|
|
# # Fields to obfuscate based on length
|
|
|
|
# OBFUSCATE_FIELDS = ["ts"]
|
|
|
|
# OBFUSCATE_KEEP_RATIO = 0.9
|
|
|
|
# # DON'T obfuscate the last X fields of values separates by dashes
|
|
|
|
# OBFUSCATE_DASH_NUM = 2
|
|
|
|
# # DON'T obfuscate the last X fields of values separates by colons
|
|
|
|
# OBFUSCATE_COLON_NUM = 1
|
|
|
|
|
|
|
|
# SEARCH_FIELDS_DENY = ["ts", "date", "time"]
|
|
|
|
|
|
|
|
# DELAY_RESULTS = True
|
|
|
|
# # Delay results by this many days
|
|
|
|
# DELAY_DURATION = 10
|
2022-08-27 11:20:36 +00:00
|
|
|
|
2022-11-21 19:43:23 +00:00
|
|
|
ELASTICSEARCH_BLACKLISTED = {}
|
2022-07-21 12:49:27 +00:00
|
|
|
|
2022-09-05 06:20:30 +00:00
|
|
|
|
|
|
|
# URLs\
|
2022-07-21 12:47:37 +00:00
|
|
|
DOMAIN = "example.com"
|
2022-07-21 12:48:23 +00:00
|
|
|
URL = f"https://{DOMAIN}"
|
2022-07-21 12:47:37 +00:00
|
|
|
|
|
|
|
# Access control
|
2022-07-21 12:48:23 +00:00
|
|
|
ALLOWED_HOSTS = ["127.0.0.1", DOMAIN]
|
2022-07-21 12:47:37 +00:00
|
|
|
|
|
|
|
# CSRF
|
2022-07-21 12:48:23 +00:00
|
|
|
CSRF_TRUSTED_ORIGINS = [URL]
|
2022-07-21 12:47:37 +00:00
|
|
|
|
|
|
|
# Stripe
|
|
|
|
STRIPE_TEST = True
|
2022-08-10 19:40:58 +00:00
|
|
|
STRIPE_API_KEY_TEST = ""
|
|
|
|
STRIPE_PUBLIC_API_KEY_TEST = ""
|
2022-07-21 12:47:37 +00:00
|
|
|
|
2022-08-10 19:40:58 +00:00
|
|
|
STRIPE_API_KEY_PROD = ""
|
|
|
|
STRIPE_PUBLIC_API_KEY_PROD = ""
|
2022-07-21 12:49:38 +00:00
|
|
|
|
|
|
|
STRIPE_ENDPOINT_SECRET = ""
|
2022-07-21 12:50:41 +00:00
|
|
|
STATIC_ROOT = ""
|
2022-07-21 12:50:45 +00:00
|
|
|
SECRET_KEY = "a"
|
2022-07-21 12:52:03 +00:00
|
|
|
|
2022-08-10 19:40:58 +00:00
|
|
|
STRIPE_ADMIN_COUPON = ""
|
2022-07-21 12:52:03 +00:00
|
|
|
|
|
|
|
# Threshold
|
2022-11-21 19:20:02 +00:00
|
|
|
THRESHOLD_ENDPOINT = "http://threshold:13869"
|
|
|
|
THRESHOLD_API_KEY = "api_1"
|
2022-08-10 19:40:58 +00:00
|
|
|
THRESHOLD_API_TOKEN = ""
|
|
|
|
THRESHOLD_API_COUNTER = ""
|
2022-07-21 12:52:03 +00:00
|
|
|
|
2022-07-21 12:52:34 +00:00
|
|
|
# NickTrace
|
|
|
|
NICKTRACE_MAX_ITERATIONS = 4
|
|
|
|
NICKTRACE_MAX_CHUNK_SIZE = 500
|
|
|
|
NICKTRACE_QUERY_SIZE = 10000
|
|
|
|
|
2022-07-21 12:52:41 +00:00
|
|
|
# Meta
|
|
|
|
META_MAX_ITERATIONS = 4
|
|
|
|
META_MAX_CHUNK_SIZE = 500
|
|
|
|
META_QUERY_SIZE = 10000
|
|
|
|
|
2022-07-21 12:52:10 +00:00
|
|
|
DEBUG = True
|
2022-11-21 19:43:23 +00:00
|
|
|
PROFILER = False
|