From 551401d91af13db9c20a064e0cde886c8d8a1398 Mon Sep 17 00:00:00 2001 From: Mark Veidemanis Date: Thu, 21 Jul 2022 13:47:37 +0100 Subject: [PATCH] Add local settings template --- app/local_settings.example.py | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 app/local_settings.example.py diff --git a/app/local_settings.example.py b/app/local_settings.example.py new file mode 100644 index 0000000..1065431 --- /dev/null +++ b/app/local_settings.example.py @@ -0,0 +1,28 @@ +# 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" + +OPENSEARCH_MAIN_SEARCH_FIELDS = ["msg"] + +# URLs +DOMAIN = "example.com" + +# Access control +ALLOWED_HOSTS = ["127.0.0.1"] + +# CSRF +CSRF_TRUSTED_ORIGINS = [f"https://{DOMAIN}"] + +# 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"