Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Discord cdn URLS #174

Open
Kathund opened this issue Oct 30, 2024 · 5 comments
Open

Discord cdn URLS #174

Kathund opened this issue Oct 30, 2024 · 5 comments
Labels
help wanted Extra attention is needed

Comments

@Kathund
Copy link
Contributor

Kathund commented Oct 30, 2024

At some point in the past year discord changed there urls for there CDN and making it now require auth to visit/view. Going to an discord cdn link now says This content is no longer available. The only way to get that file is pasting that link into a discord channel and then clicking it.

Would there not be a better way to host these files?
Test Location: docs/1.8.9/5zig.md#L51

@MicrocontrollersDev MicrocontrollersDev added the help wanted Extra attention is needed label Oct 30, 2024
@MicrocontrollersDev
Copy link
Owner

If you have a solution I'd love to hear it. I'm not sure what to do about this short of rehosting jars myself on GitHub or something (which I'd rather not do)

@Tricked-dev
Copy link
Contributor

You can host them on Cloudflare r2 its free until you store more than 5gb requires a cc in cf tho

@MicrocontrollersDev
Copy link
Owner

as long as there's no chance of me getting overcharged like $3k overnight I have no problem giving my cc (that 3k comes out of genshin funds). will look into it

@Tricked-dev
Copy link
Contributor

https://developers.cloudflare.com/r2/pricing/
Iirc b and c are for writing and listing and the rest is free so like a million people could download and you wouldn't pay a dime

@Tricked-dev
Copy link
Contributor

I would advise you to put the r2 bucket on a subdomain and use a page rule or something to force everything from that subdomainnto be cached for 6 hours

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants