Skip to content

Commit

Permalink
S3: customize dev settings
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentporte committed May 22, 2024
1 parent 58b7fb3 commit 1c66623
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .env.template
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ CELLAR_ADDON_KEY_ID=__id_to_be_set__
CELLAR_ADDON_KEY_SECRET=__key_to_be_set__
CELLAR_ADDON_HOST=__host_to_be_set__
CELLAR_ADDON_PROTOCOL=https
S3_STORAGE_BUCKET_NAME=c3-storage-test-prive
S3_STORAGE_BUCKET_NAME_PUBLIC=c3-storage-test-public
S3_STORAGE_BUCKET_REGION=eu-west-3

# itou-backups
export RCLONE_S3_ACCESS_KEY_ID=ACCESS_KEY_ID
Expand Down
6 changes: 3 additions & 3 deletions config/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -264,9 +264,9 @@
AWS_S3_ENDPOINT_URL = (
f"{os.getenv('CELLAR_ADDON_PROTOCOL', 'https')}://{os.getenv('CELLAR_ADDON_HOST', 'set-var-env.com')}"
)
AWS_STORAGE_BUCKET_NAME = "c3-storage-prod"
AWS_STORAGE_BUCKET_NAME_PUBLIC = "c3-storage-prod-public"
AWS_S3_STORAGE_BUCKET_REGION = "eu-west-3"
AWS_STORAGE_BUCKET_NAME = os.getenv("S3_STORAGE_BUCKET_NAME", "c3-storage-prod")
AWS_STORAGE_BUCKET_NAME_PUBLIC = os.getenv("S3_STORAGE_BUCKET_NAME_PUBLIC", "c3-storage-prod-public")
AWS_S3_STORAGE_BUCKET_REGION = os.getenv("S3_STORAGE_BUCKET_REGION", "eu-west-3")

# MEDIA CONFIGURATION
# ------------------------------------------------------------------------------
Expand Down

0 comments on commit 1c66623

Please sign in to comment.