Oracle Cloud永久免费20G对象存储服务

开通地址

右侧菜单 – 对象存储 – 对象存储

图片[1]-Oracle Cloud永久免费20G对象存储服务-简单生活
免费规则

您可以在您的主区域中免费使用 10 GiB 对象存储和 10 GiB 归档存储。您目前使用的对象存储和归档存储总和大约为 0 字节。如果您使用的存储超过了 20 GiB 而且未在免费试用结束前进行升级,您的数据将被删除。

简要步骤

1)点击【创建存储桶】填写名称,其他保持默认!

图片[2]-Oracle Cloud永久免费20G对象存储服务-简单生活

2)将存储桶设置成公开,否则别人没法访问你的文件!

图片[3]-Oracle Cloud永久免费20G对象存储服务-简单生活

3)进入存储桶详情,可以上传

图片[4]-Oracle Cloud永久免费20G对象存储服务-简单生活

4)新上传文件的右侧菜单,可见文件的详情。URL部分就是下载地址

图片[5]-Oracle Cloud永久免费20G对象存储服务-简单生活
流量计费

按照官方免费服务的说明,存储文件产生的下载流量一块计入到 10T/月 里面。

其它

rclone挂载:https://github.com/jxjhheric/rclone-Object-Storage

申请access_key 和secret_access_key

申请完Oracle Object Storage后,点击账号头像—账号邮箱,进入账号页面 

选择左边的客户密钥,生成access_key 和secret_access_key  一定要记下access_key 和secret_access_key,一会rclone配置的时候要用到   

配置rclone

rclone : https://rclone.org/downloads/
winfsp : http://www.secfs.net/winfsp/download/
其中rclone的windows版需要解压,并添加解压目录到系统路径中。而依赖库winfsp下载完后一路Next直接安装就可以了。
安装完后在cmd中输入命令行

rclone.exe config 

选择Amazon S3

[oracle]
type = s3
provider = Other
env_auth = false
access_key_id = xxxxxxxxxxxxxxxxxxx
secret_access_key = xxxxxxxxxxxxxxxxxxxx
region =  
endpoint = https://[object_storage_namespace].compat.objectstorage.ap-tokyo-1.oraclecloud.com  
location_constraint =  
acl = private

endpoint地址具体见https://docs.cloud.oracle.com/iaas/Content/API/Concepts/apiref.htm说明

Amazon S3 Compatibility API
API reference

https://<object_storage_namespace>.compat.objectstorage.ap-mumbai-1.oraclecloud.com
https://<object_storage_namespace>.compat.objectstorage.ap-seoul-1.oraclecloud.com
https://<object_storage_namespace>.compat.objectstorage.ap-sydney-1.oraclecloud.com
https://<object_storage_namespace>.compat.objectstorage.ap-tokyo-1.oraclecloud.com
https://<object_storage_namespace>.compat.objectstorage.ca-toronto-1.oraclecloud.com
https://<object_storage_namespace>.compat.objectstorage.eu-frankfurt-1.oraclecloud.com
https://<object_storage_namespace>.compat.objectstorage.eu-zurich-1.oraclecloud.com
https://<object_storage_namespace>.compat.objectstorage.sa-saopaulo-1.oraclecloud.com
https://<object_storage_namespace>.compat.objectstorage.uk-london-1.oraclecloud.com
https://<object_storage_namespace>.compat.objectstorage.us-ashburn-1.oraclecloud.com
https://<object_storage_namespace>.compat.objectstorage.us-phoenix-1.oraclecloud.com

object_storage_namespace位置见下图:

2019-09-24_130740.png

绑定域名

官方没有提供绑定域名的地方!
我们可以通过301来实现

#REWRITE-START
        if ($host ~ '^image.zoohe.xyz'){
            return 301 https://objectstorage.ap-seoul-1.oraclecloud.com/n/cnbwucofj4d5/b/zzvast/o$request_uri;
        }
#REWRITE-END

DEMO:

图片[7]-Oracle Cloud永久免费20G对象存储服务-简单生活
图片DEMO
视频DEMO

音频DEMO

© 版权声明
THE END
喜欢就支持一下吧
点赞13 分享
评论 抢沙发
头像
欢迎您留下宝贵的见解!
提交
头像

昵称

取消
昵称表情代码图片

    暂无评论内容