This is the top level authentication server for KOCity.xyz. It is responsible for authenticating users and providing them with a keys and tokens to gatekeep kocity.xyz public servers using the AuthProxy
This is not an actively supported software. It is only here to disclose the inner workings of the KOCity.xyz project. It is not recommended to use this software in production and does not come with any warranty whatsoever.
- A PostgreSQL database
- NodeJS LTS
- Clone the repository
- Run
npm install
- Create a
.env
file in the root directory with the following contents:
# Discord Stuff
CLIENTID="discordAppID"
CLIENTSECRET="discordAppSecret"
REDIRECTURI="http://localhost:23501"
# Database Stuff
DATABASE_URL="postgres://YourUserName:YourPassword@yourhostname:5432/YourDatabaseName"
# Web Stuff
SPAMCUTOFF=5
- Run
npm run db:migrate
to create the database tables - Run
npm start
to start the server
Please join the KOCity.xyz Discord Server and contact one of the developers if you want to contribute or feel free to open a pull request.