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

How to set root for S3 access #70

Open
3DUNAPI opened this issue May 3, 2018 · 3 comments
Open

How to set root for S3 access #70

3DUNAPI opened this issue May 3, 2018 · 3 comments

Comments

@3DUNAPI
Copy link

3DUNAPI commented May 3, 2018

I have got all the dependancies installed with composer but I still cannot figure out how to configure my roots to get access to my S3 bucket. I am new to php so I don't fully understand how to implement it.

Here is what I have so far:

array(
	'driver' => 'Flysystem',
	's3' => array(
		  "key" => "xxxxxxxx",
		  "secret" => "xxxxxxxx",
	          "region" => "eu-west-1"
				),
	'URL'           => 'https://s3-eu-west-1.amazonaws.com/bucketname',
	'path'          => '/',   // path relative to bucket
	'bucket' => 'bucketname',
	'acl' => 'public-read'     // depends on your case

	),

Please can someone point me in the right direction.

@og6k
Copy link

og6k commented May 4, 2018

this is how I did it:
#69

remember to install laravel aws-s3 filesystem. and keep all your keys in .env file, you don't want it to be in a public config file.

@3DUNAPI
Copy link
Author

3DUNAPI commented May 4, 2018

Thanks @og6k
I don't have experience of Laravel but I will give it a try. I have been trying to piece this together for two days using the straight php version and haven't had much luck thus far.

@bayucandra
Copy link

@3DUNAPI , you can check this config example: https://github.com/bayucandra/ckeditor-elfinder/blob/master/vendor/elFinder/php/connector.minimal.php

Or clone full repo for a quick start: https://github.com/bayucandra/ckeditor-elfinder then put your S3 config to /vendor/elFinder/php/connector.minimal.php for $aws_config variable.

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