Explorer

Install Dependencies

Remove any existing versions of Node.js and install the required packages:

sudo apt autoremove nodejs -y
curl -fsSL https://deb.nodesource.com/setup_19.x | sudo -E bash -
curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | gpg --dearmor | sudo tee /usr/share/keyrings/yarnkey.gpg >/dev/null
echo "deb [signed-by=/usr/share/keyrings/yarnkey.gpg] https://dl.yarnpkg.com/debian stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
sudo apt update
sudo apt install nginx certbot python3-certbot-nginx nodejs git yarn -y

NGINX Configuration

Create an NGINX configuration file for your explorer:

sudo nano /etc/nginx/sites-enabled/explorer.apollo-sync.com

Create this sample configuration:

server {
    listen       80;
    listen  [::]:80;
    server_name explorer.apollo-sync.com;

    location / {
        root /usr/share/nginx/html;
        index  index.html index.htm;
        try_files $uri $uri/ /index.html;
    }

    error_page   500 502 503 504  /50x.html;
    location = /50x.html {
        root   /usr/share/nginx/html;
    }

    gzip on;
    gzip_proxied any;
    gzip_static on;
  
 }

SSL Configuration

Install Certificate SSL

Run Certbot to install SSL for NGINX:

After completion, you can restart NGINX:

Explorer Configuration

Clone the Repository

Create or Edit Your Configuration File

If you cannot find the airchains file, you can search for the file by:

change your domain :

Build the Explorer

Navigate to the explorer directory, install dependencies, and build:

Copy the Web Files to the Nginx HTML Folder

edit your information web:

Last updated