add s3 example
This commit is contained in:
parent
eafab8c5cc
commit
84df2d683f
@ -59,7 +59,7 @@ Additionally, the plugin author may occasionally visit Obsidian official forum a
|
|||||||
### S3
|
### S3
|
||||||
|
|
||||||
- Prepare your S3 (-compatible) service information: [endpoint, region](https://docs.aws.amazon.com/general/latest/gr/s3.html), [access key id, secret access key](https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/getting-your-credentials.html), bucket name. The bucket should be empty and solely for syncing a vault.
|
- Prepare your S3 (-compatible) service information: [endpoint, region](https://docs.aws.amazon.com/general/latest/gr/s3.html), [access key id, secret access key](https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/getting-your-credentials.html), bucket name. The bucket should be empty and solely for syncing a vault.
|
||||||
- Configure (enable) [CORS](https://docs.aws.amazon.com/AmazonS3/latest/userguide/enabling-cors-examples.html) for requests from `app://obsidian.md` and `capacitor://localhost` and `http://localhost`. It's unfortunately required, because the plugin sends requests from a browser-like envirement. And those addresses are tested and found on desktop and ios and android.
|
- Configure (enable) [CORS](https://docs.aws.amazon.com/AmazonS3/latest/userguide/enabling-cors-examples.html) for requests from `app://obsidian.md` and `capacitor://localhost` and `http://localhost`. Full example is [here](./docs/s3_cors_configure.md). It's unfortunately required, because the plugin sends requests from a browser-like envirement. And those addresses are tested and found on desktop and ios and android.
|
||||||
- Download and enable this plugin.
|
- Download and enable this plugin.
|
||||||
- Enter your information to the settings of this plugin.
|
- Enter your information to the settings of this plugin.
|
||||||
- If you want to enable end-to-end encryption, also set a password in settings. If you do not specify a password, the files and folders are synced in plain, original content to the cloud.
|
- If you want to enable end-to-end encryption, also set a password in settings. If you do not specify a password, the files and folders are synced in plain, original content to the cloud.
|
||||||
|
|||||||
31
docs/s3_cors_configure.md
Normal file
31
docs/s3_cors_configure.md
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
# How To Configure S3 CORS Rules
|
||||||
|
|
||||||
|
Thanks to [@NAL100 in the Discussion](https://github.com/fyears/remotely-save/discussions/28).
|
||||||
|
|
||||||
|
Please try this config:
|
||||||
|
|
||||||
|
```json
|
||||||
|
[
|
||||||
|
{
|
||||||
|
"AllowedHeaders": ["*"],
|
||||||
|
"AllowedMethods": ["GET", "PUT", "POST", "DELETE", "HEAD"],
|
||||||
|
"AllowedOrigins": [
|
||||||
|
"app://obsidian.md",
|
||||||
|
"capacitor://localhost",
|
||||||
|
"http://localhost"
|
||||||
|
],
|
||||||
|
"ExposeHeaders": [
|
||||||
|
"Content-Length",
|
||||||
|
"Content-Type",
|
||||||
|
"Connection",
|
||||||
|
"Date",
|
||||||
|
"ETag",
|
||||||
|
"Server",
|
||||||
|
"x-amz-delete-marker",
|
||||||
|
"x-amz-id-2",
|
||||||
|
"x-amz-request-id",
|
||||||
|
"x-amz-version-id"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
```
|
||||||
Loading…
Reference in New Issue
Block a user