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
<?php | |
return [ | |
// ... | |
'cloud' => env('FILESYSTEM_CLOUD', 's3'), | |
'disks' => [ | |
// ... |
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
FILESYSTEM_CLOUD=liara | |
LIARA_ENDPOINT="https://asdf.storage.liara.ir" | |
LIARA_ACCESS_KEY=KBSIYRR36U3A1IO1QARI | |
LIARA_SECRET_KEY=Z9BV6YsP7jtRQR1qCJk3PWecs22smNTOl7HC1Yj3 | |
LIARA_BUCKET=test |
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
Storage::cloud()->put('hello.text', 'My file contents...'); |
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
<?php | |
use Illuminate\Support\Facades\Storage; | |
Storage::put('avatars/1', $fileContents); |
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
var Liara = require('@liara/sdk'); | |
var liaraClient = new Liara.Storage.Client({ | |
accessKey: 'Q3AM3UQ867SPQQA43P2F', | |
secretKey: 'zuf+tfteSlswRu7BJ86wekitnifILbZam1KYY3TG', | |
endPoint: '2aoassadfu234.storage.liara.ir', | |
}); |
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
liaraClient.putObject('my-files', 'file.txt', 'Hello World!') | |
.then(() => console.log('File created.')) |
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
const fs = require('fs'); | |
const fileContents = fs.createReadStream('./cat.png'); | |
liaraClient.putObject('photos', '/cat.png', fileContents) | |
.then(result => console.log('Successfully uploaded.')) |
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
<?php | |
// Include the SDK using the Composer autoloader | |
date_default_timezone_set('America/Los_Angeles'); | |
require 'vendor/autoload.php'; | |
$s3 = new Aws\S3\S3Client([ | |
'version' => 'latest', | |
'region' => 'us-east-1', | |
'endpoint' => 'https://asdfasdf.storage.liara.ir', |
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
FROM liararepo/node-platform | |
RUN apt-get update \ | |
# See https://crbug.com/795759 | |
&& apt-get install -yq libgconf-2-4 \ | |
# Install latest chrome dev package, which installs the necessary libs to | |
# make the bundled version of Chromium that Puppeteer installs work. | |
&& apt-get install -y wget --no-install-recommends \ | |
&& wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - \ | |
&& sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list' \ |
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
FROM liararepo/node-platform | |
CMD npm run serve |
OlderNewer