pterodactyl / panel

Pterodactyl® is a free, open-source game server management panel built with PHP, React, and Go. Designed with security in mind, Pterodactyl runs all game servers in isolated Docker containers while exposing a beautiful and intuitive UI to end users.
https://pterodactyl.io
Other
6.6k stars 1.65k forks source link

Cloudflare R2 Compatibility #4074

Closed FlaringPhoenix closed 2 years ago

FlaringPhoenix commented 2 years ago

Current Behavior

I have cloudflare r2 S3 fully configured in my .env. I try making a backup inside of a server but it just fails. I check the panel logs and no logs are created. I tested the exact same details in the S3 browser app and they work.

Here is my env:

AWS_DEFAULT_REGION='auto'
AWS_ACCESS_KEY_ID='???'
AWS_SECRET_ACCESS_KEY='???'
AWS_BACKUPS_BUCKET='pterodactyl'
AWS_ENDPOINT='https://e77ad9bbbaa89c6c7705b6045d1e363b.r2.cloudflarestorage.com'
AWS_USE_PATH_STYLE_ENDPOINT=true

I contacted cloudflare's team and they checked logs and they responded to me: Click-here

Expected Behavior

Server remotely backed up to cloudflare r2 via s3

Steps to Reproduce

Configure your .env to use cloudflare r2 s3

Panel Version

1.7.0

Wings Version

1.6.1

Games and/or Eggs Affected

No response

Docker Image

No response

Error Logs

No response

Is there an existing issue for this?

DaneEveritt commented 2 years ago

Please provide error logs or I'll be closing this issue, thanks. Even if the Panel isn't generating any logs it looks like you must have been providing something or seen logs somewhere to indicate there was a specific issue at play.

DaneEveritt commented 2 years ago

Presigned URLs are not supported for R2 at this time, so this is not going to work. Effectively, R2 is not supported.

camjac251 commented 1 year ago

With R2 being supported now, is it possible for it to support the Domain Access access feature of R2 that sets the DNS for a domain/subdomain to point to the "bucket", for use with the signed download URLs? https://developers.cloudflare.com/r2/data-access/public-buckets/#connect-your-bucket-to-a-custom-domain

matthewpi commented 1 year ago

With R2 being supported now, is it possible for it to support the Domain Access access feature of R2 that sets the DNS for a domain/subdomain to point to the "bucket", for use with the signed download URLs? https://developers.cloudflare.com/r2/data-access/public-buckets/#connect-your-bucket-to-a-custom-domain

I'm not sure. I haven't tested domain access with R2 yet, only the regular account id endpoint.

TheLegendarySpark commented 11 months ago

Any support on this?

matthewpi commented 11 months ago

Any support on this?

Yes, R2 is supported without any additional configuration.