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

Combine R2 buckets (prod) #132

Open
4 tasks
joseph-flinn opened this issue Jul 4, 2024 · 0 comments
Open
4 tasks

Combine R2 buckets (prod) #132

joseph-flinn opened this issue Jul 4, 2024 · 0 comments
Labels
debt This issue pays down tech debt

Comments

@joseph-flinn
Copy link
Owner

Combine all static assets for a single instance of the blog into a single R2 bucket.

The current architecture of the blog R2 buckets are both a public and private bucket. The private bucket (flinnlab-blog) is used to host the static posts.json "database" and the static rss.xml, which is then tucked behind a worker. The public bucket is used for hosting images. There is no reason to prevent the direct read of posts.json and rss.xml from the bucket, so there is no reason to keep that bucket private. The images in the flinnlab-blog-images bucket can be moved over to the main blog bucket and be hosted from there.

Sub Tasks

  • Set up new custom domain on flinnlab-blog to make it public
  • Copy over all images into an /images directory
  • Update frontend configurations to point to the new location
  • Update Taskfile and workflows to put images in the correct bucket (as needed)
@joseph-flinn joseph-flinn mentioned this issue Jul 21, 2024
4 tasks
@joseph-flinn joseph-flinn added the debt This issue pays down tech debt label Aug 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
debt This issue pays down tech debt
Projects
None yet
Development

No branches or pull requests

1 participant