Skip to content

YOUSIKI/cloudflare-workers-mikan

Repository files navigation

Mirror site of Mikan using Workers

This is a mirror site for Mikan Project using Cloudflare Workers, which is a serverless platform that allows you to run JavaScript code on Cloudflare's edge network.

Features

  • Mirror the entire site
  • Support login and register
  • Support for custom domain

Usage

You can directly access the mirror site I deployed: https://mikan.siki.moe, or you can deploy your own mirror site by following the steps below.

Deploy

  1. Fork this repository
  2. Edit the wrangler.toml file and replace routes with your own domain
  3. Create a new Cloudflare API token with the permission to edit workers, and add it to GitHub Secrets with the name CLOUDFLARE_API_TOKEN. Add CLOUDFLARE_ACCOUNT_ID to GitHub Secrets as well
  4. Enable GitHub Actions in your repository
  5. Trigger the workflow manually or push a commit to the repository

License

MIT