-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🐛 Add PGP Fix for New Email API (#180)
* 🐛 Add PGP Fix for New Email API * 🐳 new platform-dev image * 🧹 chore(lint) --------- Co-authored-by: Eunsoo Shin <me@esinx.net>
- Loading branch information
Showing
3 changed files
with
52 additions
and
5 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 |
---|---|---|
|
@@ -28,3 +28,5 @@ docker-compose.yml | |
|
||
# Uploaded media files | ||
backend/accounts/mediafiles | ||
|
||
.env |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
import os | ||
|
||
import sentry_sdk | ||
from sentry_sdk.integrations.django import DjangoIntegration | ||
|
||
from Platform.settings.base import * # noqa | ||
from Platform.settings.base import DOMAINS | ||
|
||
|
||
DEBUG = False | ||
|
||
# Honour the 'X-Forwarded-Proto' header for request.is_secure() | ||
SECURE_PROXY_SSL_HEADER = ("HTTP_X_FORWARDED_PROTO", "https") | ||
|
||
# Allow production host headers | ||
ALLOWED_HOSTS = DOMAINS | ||
|
||
# SECRET_KEY = os.environ.get("SECRET_KEY", None) | ||
|
||
# IDENTITY_RSA_PRIVATE_KEY = os.environ.get("IDENTITY_RSA_PRIVATE_KEY", None) | ||
|
||
# OIDC_RSA_PRIVATE_KEY = os.environ.get("OIDC_RSA_PRIVATE_KEY", None) | ||
|
||
# Sentry settings | ||
SENTRY_URL = os.environ.get("SENTRY_URL", "") | ||
sentry_sdk.init(dsn=SENTRY_URL, integrations=[DjangoIntegration()]) | ||
|
||
# CORS settings | ||
CORS_ALLOW_ALL_ORIGINS = True | ||
CORS_ALLOW_METHODS = ["GET", "POST"] | ||
CORS_URLS_REGEX = r"^(/options/)|(/accounts/token/)$" | ||
|
||
# Email client settings | ||
EMAIL_HOST = os.getenv("SMTP_HOST") | ||
EMAIL_PORT = int(os.getenv("SMTP_PORT", 587)) | ||
EMAIL_HOST_USER = os.getenv("SMTP_USERNAME") | ||
EMAIL_HOST_PASSWORD = os.getenv("SMTP_PASSWORD") | ||
EMAIL_USE_TLS = True | ||
|
||
IS_DEV_LOGIN = os.environ.get("DEV_LOGIN", "False") in ["True", "TRUE", "true"] | ||
|
||
# AWS S3 | ||
DEFAULT_FILE_STORAGE = "storages.backends.s3boto3.S3Boto3Storage" | ||
AWS_ACCESS_KEY_ID = os.getenv("AWS_ACCESS_KEY_ID") | ||
AWS_ACCESS_SECRET_ID = os.getenv("AWS_SECRET_ACCESS_KEY") | ||
AWS_STORAGE_BUCKET_NAME = os.getenv("AWS_STORAGE_BUCKET_NAME") | ||
AWS_QUERYSTRING_AUTH = False |