2026-07-08 19:18:50 +02:00
2026-07-08 18:09:09 +02:00
2026-07-08 18:09:09 +02:00
2026-07-08 19:18:50 +02:00
2026-07-08 18:39:10 +02:00
2026-07-08 19:18:50 +02:00
2026-07-08 19:18:50 +02:00
2026-07-08 15:25:12 +02:00
2026-07-08 15:25:12 +02:00
2026-07-08 15:25:12 +02:00
2026-07-08 18:39:10 +02:00
2026-07-08 19:18:50 +02:00

This is a Next.js project bootstrapped with create-next-app.

Minecraft whitelist

La page Minecraft contient un formulaire de candidature. Une demande valide est envoyée vers Discord avec deux boutons-lien signés :

  • Accepter appelle /api/minecraft/whitelist/review et exécute whitelist add <pseudo> via RCON.
  • Refuser marque la demande comme refusée et notifie Discord.

Un vrai bot Discord peut aussi appeler POST /api/minecraft/whitelist/decision avec Authorization: Bearer <MINECRAFT_WHITELIST_ADMIN_TOKEN> et un JSON :

{
  "username": "Leon",
  "decision": "accept"
}

Variables nécessaires :

APP_BASE_URL="https://leonmorival.xyz"
DISCORD_WHITELIST_WEBHOOK_URL="https://discord.com/api/webhooks/..."
MINECRAFT_WHITELIST_REVIEW_SECRET="une-valeur-aleatoire-longue"
MINECRAFT_WHITELIST_ADMIN_TOKEN="une-autre-valeur-aleatoire-longue"
MINECRAFT_RCON_HOST="127.0.0.1"
MINECRAFT_RCON_PORT="25575"
MINECRAFT_RCON_PASSWORD="mot-de-passe-rcon"

Active RCON côté serveur Minecraft, idéalement sans exposer publiquement le port 25575.

Getting Started

First, run the development server:

npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev

Open http://localhost:3000 with your browser to see the result.

You can start editing the page by modifying app/page.tsx. The page auto-updates as you edit the file.

This project uses next/font to automatically optimize and load Geist, a new font family for Vercel.

Learn More

To learn more about Next.js, take a look at the following resources:

You can check out the Next.js GitHub repository - your feedback and contributions are welcome!

Deploy on Vercel

The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.

Check out our Next.js deployment documentation for more details.

S
Description
No description provided
Readme 4 MiB
Languages
MDX 48%
TypeScript 26.4%
CSS 24.3%
Dockerfile 0.6%
JavaScript 0.4%
Other 0.3%