Skip to content

Commit

Permalink
changed sftp configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
Suryansh5545 committed Aug 8, 2023
1 parent f410581 commit ebbb3f5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion settings/prod.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"},
Expand Down
6 changes: 5 additions & 1 deletion settings/staging.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"},
Expand Down

0 comments on commit ebbb3f5

Please sign in to comment.