Skip to content

Commit

Permalink
feat: updates to code
Browse files Browse the repository at this point in the history
  • Loading branch information
yokwejuste committed Jan 5, 2025
1 parent c0c6828 commit 4bc9120
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/visuleo_port/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,14 +126,14 @@
# AWS Credentials
AWS_ACCESS_KEY_ID = os.environ.get("S3_ACCESS_KEY_ID")
AWS_SECRET_ACCESS_KEY = os.environ.get("S3_SECRET_ACCESS_KEY")
AWS_STORAGE_BUCKET_NAME = os.environ.get("S3_STORAGE_BUCKET_NAME")
AWS_STORAGE_BUCKET_NAME = str(os.environ.get("S3_STORAGE_BUCKET_NAME")).strip()
AWS_S3_REGION_NAME = os.environ.get("S3_REGION_NAME", "us-east-1")
AWS_QUERYSTRING_AUTH = False
AWS_S3_CUSTOM_DOMAIN = f"{AWS_STORAGE_BUCKET_NAME}.s3.amazonaws.com"

# URL for serving static and media files
STATIC_URL = f"https://{AWS_S3_CUSTOM_DOMAIN}/static/"
MEDIA_URL = f"https://{AWS_S3_CUSTOM_DOMAIN}/media/"
STATIC_URL = f"https://{AWS_S3_CUSTOM_DOMAIN}/static/".strip()
MEDIA_URL = f"https://{AWS_S3_CUSTOM_DOMAIN}/media/".strip()

# Define STATIC_ROOT even if using S3 for management commands
STATIC_ROOT = os.path.join(BASE_DIR, "app", "static")
Expand Down

0 comments on commit 4bc9120

Please sign in to comment.