Skip to content

Commit

Permalink
Update Readme to add details about setting up s3 πŸ“
Browse files Browse the repository at this point in the history
  • Loading branch information
JhumanJ authored Jan 10, 2023
1 parent 688f2f7 commit ee6956a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 πŸ™ˆ
Expand All @@ -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).

Expand Down

0 comments on commit ee6956a

Please sign in to comment.