move cdn
This commit is contained in:
@@ -35,19 +35,22 @@ return [
|
|||||||
],
|
],
|
||||||
|
|
||||||
'cdn' => [
|
'cdn' => [
|
||||||
'driver' => 's3',
|
'driver' => 'local',
|
||||||
'key' => env('AWS_PUBLIC_ACCESS_KEY_ID'),
|
'root' => storage_path('app/public'),
|
||||||
'secret' => env('AWS_PUBLIC_SECRET_ACCESS_KEY'),
|
'url' => env('APP_URL') . "/storage",
|
||||||
'region' => env('AWS_PUBLIC_DEFAULT_REGION'),
|
// 'driver' => 's3',
|
||||||
'bucket' => env('AWS_PUBLIC_BUCKET'),
|
// 'key' => env('AWS_PUBLIC_ACCESS_KEY_ID'),
|
||||||
'url' => env('AWS_PUBLIC_URL'),
|
// 'secret' => env('AWS_PUBLIC_SECRET_ACCESS_KEY'),
|
||||||
'endpoint' => env('AWS_PUBLIC_ENDPOINT'),
|
// 'region' => env('AWS_PUBLIC_DEFAULT_REGION'),
|
||||||
'use_path_style_endpoint' => env('AWS_PUBLIC_USE_PATH_STYLE_ENDPOINT', false),
|
// 'bucket' => env('AWS_PUBLIC_BUCKET'),
|
||||||
'throw' => false,
|
// 'url' => env('AWS_PUBLIC_URL'),
|
||||||
|
// 'endpoint' => env('AWS_PUBLIC_ENDPOINT'),
|
||||||
|
// 'use_path_style_endpoint' => env('AWS_PUBLIC_USE_PATH_STYLE_ENDPOINT', false),
|
||||||
|
// 'throw' => false,
|
||||||
'public' => true,
|
'public' => true,
|
||||||
'options' => [
|
// 'options' => [
|
||||||
'ACL' => '',
|
// 'ACL' => '',
|
||||||
]
|
// ]
|
||||||
],
|
],
|
||||||
|
|
||||||
'private' => [
|
'private' => [
|
||||||
|
|||||||
@@ -15,7 +15,7 @@
|
|||||||
|
|
||||||
# Add www subdomain if missing
|
# Add www subdomain if missing
|
||||||
RewriteCond %{HTTP_HOST} ^stemmechanics.com.au$ [NC]
|
RewriteCond %{HTTP_HOST} ^stemmechanics.com.au$ [NC]
|
||||||
RewriteRule (.*) https://www.stemmechanics.com.au/$1 [R=301,L]
|
RewriteRule (.*) https://www.stemmechanics.com.au/$1 [R=301,L]
|
||||||
|
|
||||||
# Handle Authorization Header
|
# Handle Authorization Header
|
||||||
RewriteCond %{HTTP:Authorization} .
|
RewriteCond %{HTTP:Authorization} .
|
||||||
@@ -27,9 +27,9 @@
|
|||||||
RewriteRule ^ %1 [L,R=301]
|
RewriteRule ^ %1 [L,R=301]
|
||||||
|
|
||||||
# Pass to media handler if the media request has query
|
# Pass to media handler if the media request has query
|
||||||
RewriteCond %{REQUEST_FILENAME} -f
|
#RewriteCond %{REQUEST_FILENAME} -f
|
||||||
RewriteCond %{QUERY_STRING} .
|
#RewriteCond %{QUERY_STRING} .
|
||||||
RewriteRule ^uploads/(.+)\.(jpe?g|png)$ media.php?url=uploads/$1.$2 [NC,QSA,L]
|
#RewriteRule ^uploads/(.+)\.(jpe?g|png)$ media.php?url=uploads/$1.$2 [NC,QSA,L]
|
||||||
|
|
||||||
# AddEncoding allows you to have certain browsers uncompress information on the fly.
|
# AddEncoding allows you to have certain browsers uncompress information on the fly.
|
||||||
AddEncoding gzip .gz
|
AddEncoding gzip .gz
|
||||||
@@ -52,4 +52,5 @@
|
|||||||
RewriteCond %{REQUEST_FILENAME} !-d
|
RewriteCond %{REQUEST_FILENAME} !-d
|
||||||
RewriteCond %{REQUEST_FILENAME} !-f
|
RewriteCond %{REQUEST_FILENAME} !-f
|
||||||
RewriteRule ^ index.php [L]
|
RewriteRule ^ index.php [L]
|
||||||
|
|
||||||
</IfModule>
|
</IfModule>
|
||||||
|
|||||||
Reference in New Issue
Block a user