Skip to content

Commit

Permalink
merge chaging to staging settings
Browse files Browse the repository at this point in the history
  • Loading branch information
Suryansh5545 committed Aug 8, 2023
1 parent ab3eeaf commit 4e7b37e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 14 deletions.
5 changes: 0 additions & 5 deletions settings/prod.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,6 @@
AWS_S3_ACCESS_KEY_ID = getenv("AWS_S3_ACCESS_KEY_ID ", "aws_s3_access_key_id")
AWS_S3_SECRET_ACCESS_KEY = getenv("AWS_S3_SECRET_ACCESS_KEY ", "aws_s3_secret_access_key")
AWS_S3_USE_SSL = True
SFTP_STORAGE_PARAMS = {
"username": getenv("SFTP_STORAGE_USERNAME", "sftp_storage_username"),
"password": getenv("SFTP_STORAGE_PASSWORD", "sftp_storage_password"),
"port": getenv("SFTP_STORAGE_PORT", "sftp_storage_port"),
}

STORAGES = {
"default": {"BACKEND": "storages.backends.s3boto3.S3Boto3Storage"},
Expand Down
15 changes: 6 additions & 9 deletions settings/staging.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,17 +42,14 @@
]

# SFTP Bucket settings
SFTP_STORAGE_HOST = getenv("SFTP_STORAGE_HOST", "sftp_storage_host")
SFTP_STORAGE_ROOT = getenv("SFTP_STORAGE_ROOT", "sftp_storage_root")
SFTP_STORAGE_PARAMS = {
"username": getenv("SFTP_STORAGE_USERNAME", "sftp_storage_username"),
"password": getenv("SFTP_STORAGE_PASSWORD", "sftp_storage_password"),
"port": getenv("SFTP_STORAGE_PORT", "sftp_storage_port"),
}
AWS_STORAGE_BUCKET_NAME = getenv("AWS_STORAGE_BUCKET_NAME", "aws_storage_bucket_name")
AWS_S3_ACCESS_KEY_ID = getenv("AWS_S3_ACCESS_KEY_ID ", "aws_s3_access_key_id")
AWS_S3_SECRET_ACCESS_KEY = getenv("AWS_S3_SECRET_ACCESS_KEY ", "aws_s3_secret_access_key")
AWS_S3_USE_SSL = True

STORAGES = {
"default": {"BACKEND": "storages.backends.sftpstorage.SFTPStorage"},
"staticfiles": {"BACKEND": "storages.backends.sftpstorage.SFTPStorage"},
"default": {"BACKEND": "storages.backends.s3boto3.S3Boto3Storage"},
"staticfiles": {"BACKEND": "storages.backends.s3boto3.S3Boto3Storage"},
}

SECURE_PROXY_SSL_HEADER = ("HTTP_X_FORWARDED_PROTO", "https")
Expand Down

0 comments on commit 4e7b37e

Please sign in to comment.