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

Cloudfront as CDN #64

Open
dominikager opened this issue Jan 3, 2022 · 3 comments
Open

Cloudfront as CDN #64

dominikager opened this issue Jan 3, 2022 · 3 comments

Comments

@dominikager
Copy link

Hi,

does anyone have experience using cloudfront as a cdn for elastic beanstalk? This should protect the application DDOS.

Thanks for any help!

@rennokki
Copy link
Owner

I use Elastic Beanstalk with Cloudfront. Basically, I just use webpack-s3-uploader plugin for Webpack and configure it in mix to upload to S3 and invalidate cache on upload then just configure the Base URL for Laravel

@dominikager
Copy link
Author

@rennokki thanks a lot for your answer!

But i want to put the whole Applciation behind cloudfront, because of DDOS protection.
Current Problem is that it directly redirects to the Domain of the Load Balancer and not to the Cloudfront URL.

@rennokki
Copy link
Owner

Well, Cloudfront is different from Load Balancing.

Cloudfront is mainly used for Lambda calls and serving static content from S3. Laravel is PHP-based and needs EC2/Computing to work, so you cannot have it behind Cloudfront. I think you can still achieve this by using Laravel Vapor and see if it works deploying the Lambda functions with Lambda@Edge.

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

2 participants