neptune/app/local_settings.example.py

68 lines
1.4 KiB
Python
Raw Permalink Normal View History

# Secret key
SECRET_KEY = ""
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True
2022-07-21 12:47:37 +00:00
# OpenSearch settings
OPENSEARCH_URL = "127.0.0.1"
OPENSEARCH_PORT = 9200
OPENSEARCH_TLS = True
OPENSEARCH_USERNAME = "opensearch_user1"
OPENSEARCH_PASSWORD = "hunter2"
OPENSEARCH_INDEX_MAIN = "main"
OPENSEARCH_INDEX_META = "meta"
2022-07-21 12:49:38 +00:00
OPENSEARCH_MAIN_SEARCH_FIELDS = ["msg", "nick", "host", "ident"]
OPENSEARCH_MAIN_SIZES = ["5", "10", "15", "20", "50", "100", "200"]
OPENSEARCH_MAIN_TIMESCALES = ["minute", "hour", "day", "week", "month", "6months"]
2022-07-21 12:47:37 +00:00
2022-07-21 12:49:27 +00:00
OPENSEARCH_BLACKLISTED = {
"msg": ["example.com"],
"nick": ["me"],
}
2022-07-21 12:47:37 +00:00
# URLs
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
STRIPE_API_KEY_TEST = "sk_test_xxx"
STRIPE_PUBLIC_API_KEY_TEST = "pk_test_xxx"
STRIPE_API_KEY_PROD = "sk_prod_xxx"
STRIPE_PUBLIC_API_KEY_PROD = "pk_prod_xxx"
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
STRIPE_ADMIN_COUPON = "promo"
# Threshold
THRESHOLD_ENDPOINT = "http://127.0.0.1:13869"
THRESHOLD_API_KEY = "name"
THRESHOLD_API_TOKEN = "token"
THRESHOLD_API_COUNTER = "counter"
# 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-02 16:10:41 +00:00
PROFILER = True