Skip to content

Pterodactyl Installation

Next.js Docs Template Installation Guide

Prerequisites

Before you begin, make sure you have the following:

  1. A working Pterodactyl panelLearn more
  2. Our official Next.js eggDownload here

Step 1: Add the Egg to Pterodactyl

  1. Log into your Pterodactyl Admin Panel.
  2. Go to Nests > Import Egg.
  3. Import the downloaded .json file from the Next.js egg.
  4. Create a new server using this egg under any nest and category.

Step 2: Upload the Application

  1. Download the Next.js Docs Template product zip from this page.
  2. Access your server using:
    • The file manager in the Pterodactyl panel, or
    • An SFTP client like WinSCP using your server’s connection details.
  3. Upload the zip file to the server root directory and extract it.

Step 3: Configure Startup Settings

  1. In the Pterodactyl panel, go to the server’s Startup tab.
  2. Modify any required environment variables for your Next.js app (such as PORT, NODE_ENV, etc.).

Step 4: Start the Server

  1. Press Start to run the server.
  2. The egg will automatically handle building and starting the application.

Optional: Set Up a Reverse Proxy

Option 1: Using Nginx Manually (Same VPS)

Since Pterodactyl also uses Nginx, you can run a reverse proxy alongside it without conflict.

Option 2: Using Nginx Proxy Manager

Host Nginx Proxy Manager via Docker (on the same or separate VPS) for easier management of multiple proxy configurations.

Point your domain to your app’s port (default 3000, or the port you set in the panel).

All Done!

Your Next.js Docs Template instance is now running on your Pterodactyl server. If you need help, check out the community or reach out via ricardoneud.com.