- Docker
- Node.js
- Start the services
docker compose up -d
-
Copy
.env.example
to.env
-
Go to https://authentik.localhost/if/flow/initial-setup/ and create admin account
-
Click on Admin interface button on the top right corner and login with the admin account
-
Go to
Applications > Providers
and create a new provider -
Select OAuth2/OpenID Provider and click Next
-
Fill in the details and Take note of the Client ID and Client secret!
-
Set
OIDC_CLIENT_ID
andOIDC_CLIENT_SECRET
in.env
file
OIDC_CLIENT_ID=your_client_id
OIDC_CLIENT_SECRET=your_client_secret
-
Then go to
Applications > Applications
and create a new application (select the provider you created in the previous steps) -
Set
PTERODACTYL_URL
to the root URL of your Pterodactyl instance -
Set
PTERODACTYL_APP_API_KEY
to the application API key of your Pterodactyl instance (generated in the admin panel) -
Set
PTERODACTYL_USER_API_KEY
to the user API key of your Pterodactyl instance (generated in the user panel) -
Set
PTERODACTYL_USER_ID
to the same user id as the user API key -
Set
PTERODACTYL_ALLOWED_NODES
to the node ids seperated with a comma (e.g.1,2,3
) that the backend is allowed to use -
Install the dependencies
npm run i
- Generate the Prisma client
npm run prisma:generate
- Push the database schema to the database
npm run prisma:push
- Start the development server
npm run dev