Skip to content

🪪 The best way to protect your products from unauthorized access

License

Notifications You must be signed in to change notification settings

Lorenzo0111/LicenseServer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

License Server

GitHub Release GitHub License Discord


Deploy with Vercel

What is License Server

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.

Deploying

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

Dashboard Environment Variables

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 to 1 to enable the corepack support if using Vercel.

Bot Environment Variables

Key Description Example
BACKEND_SECRET Backend secret used for the bot
ALLOWED_GUILDS CSV for guilds id 1088775598337433662,..
BOT_TOKEN The bot token

Serverless

You can deploy the project to Vercel or any other hosting service by clicking the buttons above.

Selfhosting

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.

Adding an admin

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

License

This project is licensed under the MIT License - see the LICENSE file for details.

Support

If you need help, feel free to join the Discord Server or open an issue.