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

Creating CDN for storage type #318

Open
ArabAgile opened this issue Mar 24, 2023 · 2 comments
Open

Creating CDN for storage type #318

ArabAgile opened this issue Mar 24, 2023 · 2 comments

Comments

@ArabAgile
Copy link

Greetings,

I am using storage construct to store Laravel storage files in. However, as these files needs to be publicly available (behind CDN), I can't see any option where CDN will be created for this purpose.

Is it a bug? Or I should create another bucket with another cdn?

@mnapoli
Copy link
Member

mnapoli commented Mar 24, 2023

There is indeed no "public storage" construct, see #201

I think it could make sense to create a new construct for that though.

@anamaker
Copy link

I created my construct like this

constructs:
    uploads:
        type: storage

However, uploads is where the application will store the uploaded files for example. These files are different than the static files /public/static/file.js which stored in another bucket. These files needs to be publicly available somehow. The user uploaded his "avatar.png", and this should be served over CloudFront as cdn.

But no cdn for storage construct! So the dirty way is to create it manually. Unless you have the best practice for this case.

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

No branches or pull requests

3 participants