Skip to content
This repository has been archived by the owner on Aug 17, 2023. It is now read-only.

anjaraeu/nocdn

Repository files navigation

NoCDN

Nocdn is an alternative to old-school CDNs

For the developers who wants to protect the privacy of their users, just put "nocdn.domain.tld/" between "https://" and the CDN. Per example, if you want to have a javascript file on ajax.googleapis.com, and, if you installed NoCDN on nocdn.nsa.ovh, the URL should be like this: https://nocdn.nsa.ovh/ajax.googleapis.com/some/random/ressource.

For an user, you can bind thoses old-school CDN to your instance. You can do it by editing the entries in your local resolver or editing your hosts file.

So each time you call for a CDN, the request will be handled by your instance, a big plus for privacy.

For now, we only support Javascript CDNs, we will do CSS CDNs in the future.

CDNs supported

  • ajax.aspnetcdn.com

  • ajax.googleapis.com

  • ajax.microsoft.com

  • cdn.jsdelivr.net

  • cdnjs.cloudflare.com

  • code.jquery.com

  • lib.sinaapp.com

  • libs.baidu.com

  • yandex.st

  • yastatic.net

Installation

Just download the script, check it and execute it:

wget https://raw.githubusercontent.com/nsaovh/nocdn/master/install.sh -O /tmp/install.sh
less /tmp/install.sh
bash /tmp/install.sh

Docker

You can run NoCDN via Docker:

docker run -p 8080:80 --name nocdn -d luclu7/nocdn

License :

This project is under the MIT license, if you have any question, please contact a member of the team.

ToDo List :

  • Auto install script (in progress)
  • A Wiki (one day)

Releases

No releases published

Packages

No packages published

Languages