tycrek / ass

The simple self-hosted ShareX server
ISC License
656 stars 52 forks source link

[FEATURE] Direct download/playback from S3 #108

Open Recontaminated opened 2 years ago

Recontaminated commented 2 years ago

Description

I don't know if this is possible but to save bandwidth on the host, is there a way a feature could be implemented where uploads go directly to S3 using a one time token or something, then played back directly from s3, this way the internet speed of the Ass host doesn't become a bottleneck.

tycrek commented 2 years ago

Uploads I wouldn't be able to do due to multiple S3 limitations, plus that would need a modified local installation of ShareX or some other software.

For loading, however, I could probably add an option to redirect the /direct path on each resource to the raw S3 URL. Not sure how permissions would work but probably wouldn't be much of an issue.

NullOrNaN commented 2 years ago

Adding myself to this issue as interested. I know with Digital Ocean S3 this shouldn't be an issue. I can include reference URLs that are for the direct URL in Discord if you'd like.

This is even with disallowing indexing of the S3 bucket

tycrek commented 2 years ago

@Recontaminated @NullOrNaN Would one of you mind testing out the s3redirect option on https://github.com/tycrek/ass/tree/s3-redirect? For reference see #161

Recontaminated commented 2 years ago

I'll check it out this weekend. Looks promising.