From ebbb3f5677659e6a1550e52ed507f41456efdb7d Mon Sep 17 00:00:00 2001 From: Suryansh5545 Date: Tue, 8 Aug 2023 08:38:05 +0530 Subject: [PATCH] changed sftp configuration --- settings/prod.py | 6 +++++- settings/staging.py | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/settings/prod.py b/settings/prod.py index 97e9615..f7cea2a 100644 --- a/settings/prod.py +++ b/settings/prod.py @@ -44,7 +44,11 @@ # 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 = getenv("SFTP_STORAGE_PARAMS", "") +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.sftpstorage.SFTPStorage"}, diff --git a/settings/staging.py b/settings/staging.py index b6fec54..18e0526 100644 --- a/settings/staging.py +++ b/settings/staging.py @@ -44,7 +44,11 @@ # 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 = getenv("SFTP_STORAGE_PARAMS", "") +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.sftpstorage.SFTPStorage"},