This is an anti-ddos script created by crossing the cloudflare api and status page.
git, nodejs, npm must be installed in advance.
git clone https://github.com/ThunLights/Status-Guard.gitnpm install or bun install
Please write .env with reference to .env.example.
Click here to register for prisma accelerate.
Please put the url of prisma accelerate in .env's DATABASE_URL.
You will have to pay for the prisma accelerate because it will exceed the free quota of the prisma accelerate.
If you would like to set up a database for free, please click here.
npm run db:migrationnpm run build
npm startPlease write ADAPTER_TYPE=cf in .env
npm run build:cf
npx wrangler deployThis alone will not work, so use trigger.dev.
And login from cli.
npx trigger.dev loginPlease write .trigger.json with reference to .trigger.example.json.
npm run triggerWe Welcome contributions.
Please see CONTRIBUTING.md
Please see SECURITY.md