mirror of
https://github.com/rclone/rclone.git
synced 2025-02-02 11:39:33 +01:00
s3: docs for how to configure Aliyun OSS / Netease NOS - thanks @xiaolei0125
This commit is contained in:
parent
f06ba393b8
commit
01af8e2905
@ -921,3 +921,107 @@ acl =
|
|||||||
server_side_encryption =
|
server_side_encryption =
|
||||||
storage_class =
|
storage_class =
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### Aliyun OSS / Netease NOS ###
|
||||||
|
|
||||||
|
This describes how to set up Aliyun OSS - Netease NOS is the same
|
||||||
|
except for different endpoints.
|
||||||
|
|
||||||
|
Note this is a pretty standard S3 setup, except for the setting of
|
||||||
|
`force_path_style = false` in the advanced config.
|
||||||
|
|
||||||
|
```
|
||||||
|
# rclone config
|
||||||
|
e/n/d/r/c/s/q> n
|
||||||
|
name> oss
|
||||||
|
Type of storage to configure.
|
||||||
|
Enter a string value. Press Enter for the default ("").
|
||||||
|
Choose a number from below, or type in your own value
|
||||||
|
3 / Amazon S3 Compliant Storage Providers (AWS, Ceph, Dreamhost, IBM COS, Minio)
|
||||||
|
\ "s3"
|
||||||
|
Storage> s3
|
||||||
|
Choose your S3 provider.
|
||||||
|
Enter a string value. Press Enter for the default ("").
|
||||||
|
Choose a number from below, or type in your own value
|
||||||
|
8 / Any other S3 compatible provider
|
||||||
|
\ "Other"
|
||||||
|
provider> other
|
||||||
|
Get AWS credentials from runtime (environment variables or EC2/ECS meta data if no env vars).
|
||||||
|
Only applies if access_key_id and secret_access_key is blank.
|
||||||
|
Enter a boolean value (true or false). Press Enter for the default ("false").
|
||||||
|
Choose a number from below, or type in your own value
|
||||||
|
1 / Enter AWS credentials in the next step
|
||||||
|
\ "false"
|
||||||
|
2 / Get AWS credentials from the environment (env vars or IAM)
|
||||||
|
\ "true"
|
||||||
|
env_auth> 1
|
||||||
|
AWS Access Key ID.
|
||||||
|
Leave blank for anonymous access or runtime credentials.
|
||||||
|
Enter a string value. Press Enter for the default ("").
|
||||||
|
access_key_id> xxxxxxxxxxxx
|
||||||
|
AWS Secret Access Key (password)
|
||||||
|
Leave blank for anonymous access or runtime credentials.
|
||||||
|
Enter a string value. Press Enter for the default ("").
|
||||||
|
secret_access_key> xxxxxxxxxxxxxxxxx
|
||||||
|
Region to connect to.
|
||||||
|
Leave blank if you are using an S3 clone and you don't have a region.
|
||||||
|
Enter a string value. Press Enter for the default ("").
|
||||||
|
Choose a number from below, or type in your own value
|
||||||
|
1 / Use this if unsure. Will use v4 signatures and an empty region.
|
||||||
|
\ ""
|
||||||
|
2 / Use this only if v4 signatures don't work, eg pre Jewel/v10 CEPH.
|
||||||
|
\ "other-v2-signature"
|
||||||
|
region> 1
|
||||||
|
Endpoint for S3 API.
|
||||||
|
Required when using an S3 clone.
|
||||||
|
Enter a string value. Press Enter for the default ("").
|
||||||
|
Choose a number from below, or type in your own value
|
||||||
|
endpoint> oss-cn-shenzhen.aliyuncs.com
|
||||||
|
Location constraint - must be set to match the Region.
|
||||||
|
Leave blank if not sure. Used when creating buckets only.
|
||||||
|
Enter a string value. Press Enter for the default ("").
|
||||||
|
location_constraint>
|
||||||
|
Canned ACL used when creating buckets and/or storing objects in S3.
|
||||||
|
For more info visit https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html#canned-acl
|
||||||
|
Enter a string value. Press Enter for the default ("").
|
||||||
|
Choose a number from below, or type in your own value
|
||||||
|
1 / Owner gets FULL_CONTROL. No one else has access rights (default).
|
||||||
|
\ "private"
|
||||||
|
acl> 1
|
||||||
|
Edit advanced config? (y/n)
|
||||||
|
y) Yes
|
||||||
|
n) No
|
||||||
|
y/n> y
|
||||||
|
Chunk size to use for uploading
|
||||||
|
Enter a size with suffix k,M,G,T. Press Enter for the default ("5M").
|
||||||
|
chunk_size>
|
||||||
|
Don't store MD5 checksum with object metadata
|
||||||
|
Enter a boolean value (true or false). Press Enter for the default ("false").
|
||||||
|
disable_checksum>
|
||||||
|
An AWS session token
|
||||||
|
Enter a string value. Press Enter for the default ("").
|
||||||
|
session_token>
|
||||||
|
Concurrency for multipart uploads.
|
||||||
|
Enter a signed integer. Press Enter for the default ("2").
|
||||||
|
upload_concurrency>
|
||||||
|
If true use path style access if false use virtual hosted style.
|
||||||
|
Some providers (eg Aliyun OSS or Netease COS) require this.
|
||||||
|
Enter a boolean value (true or false). Press Enter for the default ("true").
|
||||||
|
force_path_style> false
|
||||||
|
Remote config
|
||||||
|
--------------------
|
||||||
|
[oss]
|
||||||
|
type = s3
|
||||||
|
provider = Other
|
||||||
|
env_auth = false
|
||||||
|
access_key_id = xxxxxxxxx
|
||||||
|
secret_access_key = xxxxxxxxxxxxx
|
||||||
|
endpoint = oss-cn-shenzhen.aliyuncs.com
|
||||||
|
acl = private
|
||||||
|
force_path_style = false
|
||||||
|
--------------------
|
||||||
|
y) Yes this is OK
|
||||||
|
e) Edit this remote
|
||||||
|
d) Delete this remote
|
||||||
|
y/e/d> y
|
||||||
|
```
|
||||||
|
Loading…
Reference in New Issue
Block a user