New on LowEndTalk? Please Register and read our Community Rules.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
Comments
We can just buy a couple of anycast vps across the world like at buyvm & set this up for the beginnings of a cdn & it will work like one, like what others said in the thread, this is a great script to get started.
Cloudflare and BunnyCDN, while they both CDN, work very differently.
in Cloudflare you don't need to do anything. Just use their DNS service. in BunnyCDN, you need to change your software path to their domain or your custom domain. The point si, you CANNOT use existing domain with BunnyCDN, you must use dedicated domain for the cdn, which require some tuning within the softare.
I am not aware any other service or software that works like cloudflare. If this is one, then it's Great.
Also I am assuming this come with DNS Server, right ?
Also does it have API for purging the cache ?
This script used ATS, take a look at https://trafficserver.apache.org/ for more details. The script basically works like CENTMINMOD console but similar to how you configure in bunny as basic levels. Between, ATS already have APIs out of the box.
Anyway applaud for @dedipromo again on starting this piece.
Well, it does not come with DNS servers. You have to point your domain to these CDN IPs using A records. But yes, you can use your existing domain, and it will work just like cloudflare, without a fancy control panel though.
It has very powerful API for purging caches if you read the ATS documentation, like @mrclown mentioned, but the script itself only comes with a purge-all option. I'll need to think about how to incorporate the feature.
www.yourdomain.com CNAME your_subdomain.cdn_provider.domain.net let you use your domain on the CDN's edges.
I'd recommend making the oneclickcdn.sh script be added as a native file to run. or else it's easy to delete if it's just another file floating around in the home directory.
So store/execute it from /opt
Wondering if this would (could be made to) work in a NAT environment.
sent a pull request so that it builds the server from github rather than having to update the link to the latest
This has been added.
This has been added.
This is an interesting point that I didn't even think of. I'll try to implement this in the next version.
As long as there is a reverse proxy instance (e.g. haproxy) in the host node, this should work. Performance might be somewhat lowered, but negligible. You'll also have to manually change the following line in
/etc/trafficserver/records.config
to match the port in your NAT server.One thing I'm worried about is that most NAT vps come with very small RAM and heavily throttled CPU. The compiling process might very likely get killed.
Thank you so much for the contribution, and I agree building from github is usually a more convenient way. The reason I chose not to build from github repo is because many Chinese users of this script are having a hard time accessing content from Github. Cloning content from github is unfortunately very unreliable in mainland China, due to GFW. Therefore, I can't really switch to Github source.
Encourage contributions made by open source, but this may only apply to test, not a production environment.
This sounds and looks like a great project, I'm looking forward to checking it out more thoroughly when I have a little time.
Thanks for creating and sharing.
Actually, you can. Just set it to forward host header and set your origin as an IP address.
I don't think so
What backdoors you found in scripts from China?
it's open source so you can check by yourself, or the community will check it...
I don't thinks this shell scripts is coded for those who don't know how to read it!
Will there be any backdoor feature in the future?
Nice trick. Why I didn't think of this. I am assuming bunnycdn will honor the no cache request right? It would be terrible if it doesn't.
It does not have auto update, you can simply check the code before updating if there is a new release.
Headshot Of The Month !!
Of course! I personally use it to speed up some dynamic sites, and BunnyCDN’s main site also seems to use this.
This is actually better than Cloudflare for some cases, since CF routes free or pro users to farther locations for some, and Bunny’s page rule is awesome!
BTW, there is an option called ‘forward host header’, or you can set the request header ‘Host’ to your domain with your domain using edge rules
This Is Awesome, Thanks.
I might be able to contribute to this with Trafficserver deb/rpm package. Not everyone have good amount of ram/cpu burst for long time not allowed by provider. Can LETers confirm if they would use this? I would provide packages if decent amount of users use this package.
got error message,
OneClickCDN.sh: line 536: [: =: unary operator expected
Warning on diags.log
I will definitely use this.
i used Debian 10, 64 bit, clean install, it just worked, no issues.
I use
root@hels:/home/debian# lsb_release -d
Description: Debian GNU/Linux 10 (buster)
not touched since I got free credit from lifehost360
Will try make some VPS on proxmox and try again
may i ask what package and what is Integrated firewall?
I think because of this
And this is my mistake, not choose any.
just hit enter because it was both work
>
a few trys for me also, that was my only issue
what do you mean by this statement exactly?