License Server is an easy to use system that allows you to create a simple license system for your projects to protect your code from unauthorized access.
You'll have to set the following environment variables to setup the dashboard, here is a list of them:
✨ You can generate secret tokens by visiting this link
Key | Description | Example |
---|---|---|
DATABASE_URL | The postgres url | postgresql:// |
AUTH_SECRET | The auth secret | |
AUTH_DISCORD_ID | Your discord client id | |
AUTH_DISCORD_SECRET | Your discord client secret | |
BACKEND_SECRET | Backend secret used for the bot |
🚨 You must also set
ENABLE_EXPERIMENTAL_COREPACK
to1
to enable the corepack support if using Vercel.
Key | Description | Example |
---|---|---|
BACKEND_SECRET | Backend secret used for the bot | |
ALLOWED_GUILDS | CSV for guilds id | 1088775598337433662,.. |
BOT_TOKEN | The bot token |
You can deploy the project to Vercel or any other hosting service by clicking the buttons above.
If you want to selfhost, you can run yarn
, yarn build
and yarn start
to start the program.
The dashboard will usually be available here.
You must be an admin to access the dashboard. You can use the CLI for that. Here are the steps:
- Create an account on the dashboard
- Set the same .env variables on your local environment
- Run
yarn install
- Run
yarn cli users:list
to see the list of users - Run
yarn cli admins:add <id>
to add your user as admin
This project is licensed under the MIT License - see the LICENSE file for details.
If you need help, feel free to join the Discord Server or open an issue.