Nginx Configuration

Nginx Setup

Prerequisites

circle-info

Run ls to verify the folder name before renaming.

circle-exclamation
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

circle-info

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:

circle-info

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

circle-exclamation
5

Enable the Site and Restart Nginx

circle-info

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

circle-exclamation
6

Install SSL Certificate

circle-info

Follow the prompts from certbot to complete the SSL setup.

circle-exclamation
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

circle-exclamation
8

Run the Dashboard

circle-info

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