From ee6956a5a0d09d0d42208bf22e4d4e80c8df5392 Mon Sep 17 00:00:00 2001 From: Julien Nahum Date: Tue, 10 Jan 2023 15:01:18 +0100 Subject: [PATCH] =?UTF-8?q?Update=20Readme=20to=20add=20details=20about=20?= =?UTF-8?q?setting=20up=20s3=20=F0=9F=93=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index ac65a58..0d7d4d2 100644 --- a/README.md +++ b/README.md @@ -62,7 +62,7 @@ Now, we can configure Laravel. We just need to prepare some vars in our `.env` f Configure the desired database in the `DATABASE_` section. You can fine tune your installation on the [laravel documentation](https://laravel.com/docs/9.x). -Finally, just run these artisan commands and you're done! +Run these artisan commands: ```bash # Generate needed secrets 🙈 @@ -72,6 +72,10 @@ php artisan jwt:secret # and select yes! # Creates DB schemas php artisan migrate ``` +Now, create an S3 bucket (or equivalent). Create an IAM user with access to this bucket, fill the environment variables: `AWS_ACCESS_KEY_ID`, `AWS_SECRET_ACCESS_KEY`, `AWS_DEFAULT_REGION`, `AWS_BUCKET`. In your AWS bucket permissions, add the following under "Cross-origin resource sharing (CORS)": +```json +[ { "AllowedHeaders": [ "*" ], "AllowedMethods": [ "PUT", "POST", "GET", "DELETE" ], "AllowedOrigins": [ "*" ], "ExposeHeaders": [] } ] +``` 🎉 Done! Enjoy your personal OpnForm instance at: [http://opnform.test](http://opnform.test).