neptune/app/local_settings.example.py

118 lines
2.6 KiB
Python
Raw Normal View History

2022-07-21 12:47:37 +00:00
# OpenSearch settings
OPENSEARCH_URL = "127.0.0.1"
OPENSEARCH_PORT = 9200
OPENSEARCH_TLS = True
2022-08-10 19:40:58 +00:00
OPENSEARCH_USERNAME = "admin"
OPENSEARCH_PASSWORD = ""
2022-07-21 12:47:37 +00:00
OPENSEARCH_INDEX_MAIN = "pathogen-main"
OPENSEARCH_INDEX_META = "pathogen-meta"
OPENSEARCH_INDEX_INT = "pathogen-int"
2022-07-21 12:47:37 +00:00
2022-08-10 19:40:58 +00:00
OPENSEARCH_MAIN_SIZES = ["20", "50", "100", "200", "400", "800"]
OPENSEARCH_MAIN_SIZES_ANON = ["20", "50", "100"]
OPENSEARCH_MAIN_SOURCES = ["dis", "4ch", "all"]
OPENSEARCH_SOURCES_RESTRICTED = ["irc"]
# Manticore settings
MANTICORE_URL = "http://monolith-db-1:9308"
MANTICORE_INDEX_MAIN = "main"
MANTICORE_INDEX_META = "meta"
2022-09-05 06:20:30 +00:00
MANTICORE_INDEX_INT = "internal"
MANTICORE_MAIN_SIZES = ["20", "50", "100", "200", "400", "800"]
MANTICORE_MAIN_SIZES_ANON = ["20", "50", "100"]
MANTICORE_MAIN_SOURCES = ["dis", "4ch", "all"]
MANTICORE_SOURCES_RESTRICTED = ["irc"]
2022-09-05 06:20:30 +00:00
MANTICORE_CACHE = True
MANTICORE_CACHE_TIMEOUT = 60
2022-08-10 19:40:58 +00:00
DRILLDOWN_RESULTS_PER_PAGE = 15
DRILLDOWN_DEFAULT_PARAMS = {
"size": "20",
"index": "main",
"sorting": "desc",
"source": "4ch",
}
2022-07-21 12:47:37 +00:00
# Encryption
# ENCRYPTION = False
# ENCRYPTION_KEY = b""
# Hashing
# HASHING = True
# HASHING_KEY = "xxx"
2022-08-26 19:44:39 +00:00
# Obfuscation
# 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-08-10 19:40:58 +00:00
OPENSEARCH_BLACKLISTED = {}
2022-07-21 12:49:27 +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 = ""
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
THRESHOLD_ENDPOINT = "http://threshold-app-1:13869"
THRESHOLD_API_KEY = ""
2022-08-10 19:40:58 +00:00
THRESHOLD_API_TOKEN = ""
THRESHOLD_API_COUNTER = ""
2022-07-21 12:52:03 +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
DEBUG = True
2022-08-10 21:40:54 +00:00
PROFILER = False
if DEBUG:
import socket # only if you haven't already imported this
hostname, _, ips = socket.gethostbyname_ex(socket.gethostname())
INTERNAL_IPS = [ip[: ip.rfind(".")] + ".1" for ip in ips] + [
"127.0.0.1",
"10.0.2.2",
]