-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
797c740
commit 893394a
Showing
27 changed files
with
482 additions
and
945 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
REDIS_INSTANCE=redis:6379 | ||
PYTHONUNBUFFERED=1 | ||
SECRET_KEY=secretkey | ||
ENV=dev | ||
DEBUG=true | ||
CELERY_BROKER_URL=redis://redis:6379/0 | ||
CELERY_RESULT_BACKEND=redis://redis:6379/0 | ||
CACHE_LOCATION=redis://redis:6379/1 | ||
CONSTANCE_REDIS_CONNECTION=redis://redis:6379/0 | ||
DATABASE_URL=postgis://postgres:postgres@db:5432/postgres | ||
USE_DUMMY_EXCHANGE_RATES=yes | ||
CELERY_TASK_ALWAYS_EAGER=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,20 @@ | ||
from environ import Env | ||
from smart_env import SmartEnv | ||
|
||
DEFAULTS = { | ||
"AURORA_SERVER": (str, ""), | ||
"AURORA_TOKEN": (str, ""), | ||
"AURORA_USER": (str, ""), | ||
"DATABASE_URL": ( | ||
str, | ||
"sqlite://", | ||
"", | ||
"", | ||
"https://django-environ.readthedocs.io/en/latest/types.html#environ-env-db-url", | ||
), | ||
"DEBUG": (bool, False), | ||
"ENV": (str, "dev"), | ||
"DOMAIN": (str, "localhost:8000"), | ||
"DJANGO_ALLOWED_HOSTS": (list, "*"), | ||
"DJANGO_ALLOWED_HOSTS": (list, []), | ||
"HCT_MIS_FRONTEND_HOST": (str, ""), | ||
"ALERTS_EMAIL": (str, "[email protected]"), | ||
"SECRET_KEY": (str, ""), | ||
|
@@ -20,16 +27,21 @@ | |
"EMAIL_HOST_USER": (str, ""), | ||
"EMAIL_HOST_PASSWORD": (str, ""), | ||
"EMAIL_USE_TLS": (bool, True), | ||
"DEFAULT_EMAIL": (str, ""), | ||
"MAILJET_API_KEY": (str, ""), | ||
"MAILJET_SECRET_KEY": (str, ""), | ||
"CATCH_ALL_EMAIL": (list, []), | ||
"DEFAULT_EMAIL_DISPLAY": (list, []), | ||
"KOBO_KF_URL": (str, "https://kf-hope.unitst.org"), | ||
"KOBO_KC_URL": (str, "https://kc-hope.unitst.org"), | ||
"KOBO_MASTER_API_TOKEN": (str, "KOBO_TOKEN"), | ||
"AZURE_CLIENT_ID": (str, ""), | ||
"AZURE_CLIENT_SECRET": (str, ""), | ||
"AZURE_TENANT_KEY": (str, ""), | ||
"CONSTANCE_REDIS_CONNECTION": (str, "redis://redis:6379/0"), | ||
"SANCTION_LIST_CC_MAIL": (str, "[email protected]"), | ||
"ELASTICSEARCH_HOST": (str, "http://elasticsearch:9200"), | ||
"ELASTICSEARCH_INDEX_PREFIX": (str, ""), | ||
"RAPID_PRO_URL": (str, "https://rapidpro.io"), | ||
"DATAMART_USER": (str, ""), | ||
"DATAMART_URL": (str, "https://datamart-dev.unicef.io"), | ||
|
@@ -54,6 +66,7 @@ | |
"SECURE_HSTS_SECONDS": (int, 3600), | ||
"FLOWER_ADDRESS": (str, "https://hope.unicef.org/flower"), | ||
"CACHE_ENABLED": (bool, True), | ||
"CACHE_LOCATION": (str, "redis://redis:6379/1"), | ||
"CSP_REPORT_URI": (tuple, ("",)), | ||
"CSP_REPORT_ONLY": (bool, True), | ||
"CSP_REPORT_PERCENTAGE": (float, 0.1), | ||
|
@@ -112,6 +125,34 @@ | |
str, | ||
"", | ||
), | ||
"SOCIAL_AUTH_REDIRECT_IS_HTTPS": (bool, True), | ||
"LOG_LEVEL": (str, "ERROR"), | ||
"POSTGRES_SSL": (bool, False), | ||
"GIT_VERSION": (str, "UNKNOWN"), | ||
"EXCHANGE_RATE_CACHE_EXPIRY": (int, 60 * 60 * 24), | ||
"USE_DUMMY_EXCHANGE_RATES": (str, "no"), | ||
"PROFILING": (str, "off"), | ||
"LIBRARY_PATHS": (bool, False), | ||
"STATIC_URL": (str, "/static/"), | ||
"MEDIA_URL": (str, "/media/"), | ||
"FILE_STORAGE_STATIC": ( | ||
str, | ||
"django.core.files.storage.FileSystemStorage", | ||
), | ||
"FILE_STORAGE_MEDIA": ( | ||
str, | ||
"django.core.files.storage.FileSystemStorage", | ||
), | ||
"STORAGE_AZURE_ACCOUNT_NAME": (str, ""), | ||
"STORAGE_AZURE_ACCOUNT_KEY": (str, ""), | ||
"MEDIA_STORAGE_AZURE_ACCOUNT_NAME": (str, ""), | ||
"MEDIA_STORAGE_AZURE_ACCOUNT_KEY": (str, ""), | ||
"STATIC_STORAGE_AZURE_ACCOUNT_NAME": (str, ""), | ||
"STATIC_STORAGE_AZURE_ACCOUNT_KEY": (str, ""), | ||
"STATIC_LOCATION": (str, "static"), | ||
"MEDIA_LOCATION": (str, "media"), | ||
"AZURE_ACCOUNT_NAME": (str, ""), | ||
"AZURE_ACCOUNT_KEY": (str, ""), | ||
} | ||
|
||
env = Env(**DEFAULTS) | ||
env = SmartEnv(**DEFAULTS) |
Oops, something went wrong.