Skip to content

takejohn/cdn

 
 

Repository files navigation

CDN w/Node.js

Let's make CDN yourself!

How it works?

Cloudflare Cache is serve files from CF CDN Server.

So I made this repo. You can use as Simple&Lightweight File Server or Fast&LightWeight CDN Server!

How to install?

  1. clone this repo ($git clone https://github.com/TeamSekai/Sekai.CDN.git)
  2. install package ($npm i or $yarn install)

If you wanna use yarn, you need install yarn. ($npm i -g yarn)

  1. edit config.json (copy config.json.example as config.json)
  2. build with $yarn build
  3. run server ($yarn start or $pm2 start yarn -- start)

Done! default port is 8080. you can view page on http://localhost:8080.

Cache files w/Cloudflare

You can cache files with Cloudflare Cache!

Writing...

About

Let's make CDN yourself!

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Astro 39.8%
  • JavaScript 25.5%
  • HTML 20.9%
  • TypeScript 13.8%