Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support AWS_S3_URL_PROTOCOL #3336

Merged
merged 3 commits into from Apr 24, 2024
Merged

Conversation

Minnozz
Copy link
Contributor

@Minnozz Minnozz commented Mar 27, 2024

  • Allow setting in .env
  • Default to PROTOCOL (same as before)
  • Propagate to django-storages so it generates the correct URLs in sass_src

@Minnozz Minnozz force-pushed the s3-url-protocol branch 2 times, most recently from ff3fa87 to 0b2d717 Compare April 10, 2024 20:10
- Allow setting in .env
- Default to PROTOCOL (same as before)
- Propagate to django-storages so it generates the correct URLs in sass_src
@Minnozz
Copy link
Contributor Author

Minnozz commented Apr 15, 2024

@bookwyrm-social/code-review this PR is ready for review

Copy link
Contributor

@dato dato left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've never used S3, but tried to review this to get things moving.

It isn't clear now, from .env.example, when AWS_S3_URL_PROTOCOL should be set. I tried to find some appropriate wording ("should be set if there's a mismatch with USE_HTTPS"?), but wasn't satisfied.

I only have one real question, below.

bookwyrm/settings.py Show resolved Hide resolved
@Minnozz
Copy link
Contributor Author

Minnozz commented Apr 24, 2024

@dato Thanks for the review! I added a comment in .env.example that hopefully clarifies when you should set it.

@Minnozz Minnozz merged commit 637f19b into bookwyrm-social:main Apr 24, 2024
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants