Open HugoSilvaF opened 1 month ago
Pull Request Description
I changed config.json, ResourceConfig interface, http-service. I have added supports to Cloudflare R2 to upload images. IMGUR doesnt works anymore, so i have added another option.
To r2 works, need the public link in
In url needs the public url the r2
"images": { "url": "https://pub-your-public-url.r2.dev/", "type": "r2", "imageEncoding": "jpg", "contentType": "multipart/form-data", "useContentType": true, "authorizationHeader": "Authorization", "authorizationPrefix": "Client-ID", "useAuthorization": true, "returnedDataIndexes": ["data", "link"], "r2": { "bucketName": "your-bucktname", "endpoint" : "https://your-endpoint.r2.cloudflarestorage.com", "credentials": { "accessKeyId": "your-access-key-id", "secretAccessKey": "your-secret-access-key" } } },
your config
you need access cloudflare and create an account and a public r2 bucket
https://dash.cloudflare.com/
after created your account you need go to the r2 overiew
after this, you need create an bucket
after created your bucket go to the settings and get a public url
getting a public url
Pull Request Checklist:
I am waiting the approval.
Hey @HugoSilvaF ! Awesome PR! I'll have a look!
Would be great if you could also update the docs with this guide!
Pull Request Description
I changed config.json, ResourceConfig interface, http-service. I have added supports to Cloudflare R2 to upload images. IMGUR doesnt works anymore, so i have added another option.
To r2 works, need the public link in
your config
you need access cloudflare and create an account and a public r2 bucket
https://dash.cloudflare.com/
after created your account you need go to the r2 overiew
after this, you need create an bucket
after created your bucket go to the settings and get a public url
getting a public url
Pull Request Checklist: