Let's make CDN yourself!
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!
- clone this repo (
$git clone https://github.com/TeamSekai/Sekai.CDN.git
) - install package (
$npm i
or$yarn install
)
If you wanna use yarn, you need install yarn. (
$npm i -g yarn
)
- edit
config.json
(copyconfig.json.example
asconfig.json
) - build with
$yarn build
- run server (
$yarn start
or$pm2 start yarn -- start
)
Done! default port is 8080. you can view page on http://localhost:8080
.
You can cache files with Cloudflare Cache!
Writing...