Created
June 25, 2021 03:35
-
-
Save lucasgio/78fa48ead6b0071c90b9c0b9c377a56a to your computer and use it in GitHub Desktop.
Config to upload to Digital Ocean img or file
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Put this into filesystem.php | |
'spaces' => [ | |
'driver' => 's3', | |
'key' => env('DO_SPACES_KEY'), | |
'secret' => env('DO_SPACES_SECRET'), | |
'endpoint' => env('DO_SPACES_ENDPOINT'), | |
'region' => env('DO_SPACES_REGION'), | |
'bucket' => env('DO_SPACES_BUCKET'), | |
'url' => env('DO_URL'), | |
'visibility' => 'public' | |
], | |
// Put this into var env in your deploy server or in .env in localhost | |
DO_SPACES_BUCKET = 'name you put at you space' | |
DO_SPACES_ENDPOINT = 'url of you space(usually give to you in options)' | |
DO_SPACES_KEY = 'key you find in Manage Keys in spaces config' | |
DO_SPACES_SECRET = 'key you find in Manage Keys in spaces config' | |
DO_SPACES_REGION = 'this give to you when y create space' | |
DO_URL = 'complete url from your space' | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment