Nginx Configuration

Nginx Setup

Prerequisites

Run ls to verify the folder name before renaming.

Dashboard image
1

Create A Records

Create the following DNS A records:

  • Host: dashboard

  • Value: <Server IP>

2

Install NVM and Node.js v21.7.3

Verify the installation by running node -v. It should output v21.7.3.

3

Install Nginx

4

Create Nginx Configuration

Edit the Nginx configuration file:

Replace your-domain.com with your own domain.

Add the following configuration:

To save in nano: press CTRL + X, then Y, then Enter.

5

Enable the Site and Restart Nginx

Run sudo nginx -t to test the configuration before restarting.

6

Install SSL Certificate

Follow the prompts from certbot to complete the SSL setup.

7

Edit the Bot Configuration

Update the bot settings with the following values:

Replace your-domain.com with your own domain.

  • URL: https://dashboard.your-domain.com

  • Redirect: https://dashboard.your-domain.com/api/auth/callback

8

Run the Dashboard

Ensure all dependencies are installed before running npm run start.

Your Aegis Bot dashboard should now be up and running!

Previous: Dashboard Setup Next: Developer Mode (Copying IDs)

Last updated