Add readme

This commit is contained in:
Nanten
2025-02-20 14:42:55 +09:00
parent 9b85df8b40
commit bb80afbf8e
+18
View File
@@ -0,0 +1,18 @@
# typora-img-uploader-r2
Upload images to R2 using Typora.
``` bash:.env
.env
R2_ENDPOINT = 'https://your-endpoint-url'
R2_BUCKET_NAME= 'bucket name'
R2_ACCESS_KEY_ID = 'access key'
R2_SECRET_ACCESS_KEY = 'securet access key'
R2_CUSTOM_URL = 'https://custom.domain/'
```
## Usage
```python
upload.py --image-path <image path>
```