Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ bun test && bun run typecheck && bun run build
| `content/docs/**/meta.json` | Sidebar order and section names for that folder. |
| `content/pages/` | Stand-alone pages: `/support` and `/faq`. |
| `app/(home)/page.tsx` | The homepage. |
| `public/` | Files served as they are, including the `update-panel.sh` and `migrate-*.sh` scripts. |
| `public/` | Files served as they are, including the `install.sh`, `update-panel.sh` and `migrate-*.sh` scripts (`install.sh` is tested in `scripts/install-sh.test.mjs`). |
| `netlify.toml` | Build settings and redirects such as `/discord`. |
| `ui/` | Design tokens (`tokens.css`) and site nav (`nav.json`) shared with the Hub; published at `/docs/ui/v1/`. |
| `scripts/` | The build's checks, the egg data sync and the packing for the Hub. Listed in [scripts/README.md](scripts/README.md). |
Expand Down
96 changes: 96 additions & 0 deletions content/docs/getting-started.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
---
title: "Getting Started"
description: "What a Pelican server needs, the one-command install, and getting Docker ready: requirements, the virtualization check, installing Docker, starting it on boot and enabling swap."
---

Pelican runs on a dedicated Linux server, and the recommended way to install it is with **Docker**.
The quickest way there is the install script below; this page also covers getting Docker ready yourself, if you'd rather [install the Panel](./panel/install) step by step.

<Admonition type="danger">
**You should have some basic familiarity with Linux before you proceed!**
</Admonition>

<Admonition type="tip" title="Coming from Pterodactyl?">
You don't need a fresh install. Follow [Migrating from Pterodactyl](./guides/migrating-from-pterodactyl) to upgrade your existing Panel and keep all your data.
</Admonition>

## Requirements

Pelican runs on a wide range of operating systems, so pick whichever you are most comfortable using,
as long as it supports [Docker Engine](https://docs.docker.com/engine/install/).

Docker may not work under `OpenVZ`, `Virtuozzo` or `LXC` virtualization unless your provider has configured it for nested containers.
`kvm` and bare metal (`none`) work without issues. To check what your server uses, run:

```sh
systemd-detect-virt
```

If that command isn't available, `sudo dmidecode -s system-manufacturer` usually tells you as well.

A domain (or subdomain) for the Panel, such as `panel.example.com` with an `A` record pointing at your server, gives it HTTPS. It's optional to start with: without one the Panel is served on your server's IP address, and you can add the domain later.

## The quick way: one command

On a fresh server, this installs Docker and starts the Panel on your server's IP address. Give it a domain and it sets up HTTPS with Let's Encrypt too:

```sh
# On your server's IP
curl -fsSL https://pelican.dev/install.sh | sudo bash

# On your domain, with HTTPS
curl -fsSL https://pelican.dev/install.sh | sudo bash -s -- --domain panel.example.com --email [email protected]
```

It asks nothing; add `--interactive` to be asked about each choice (a domain, the simple or the production setup, Wings).

When it's done, open the address it shows (`http://<your server's IP>/installer`, or `https://<your domain>/installer`) to finish. [Installing the Panel](./panel/install#the-install-script) explains every option, what the script sets up and how to change it later. Want an AI assistant to walk you through it? See [Installing with an AI Assistant](./guides/ai-assistant).

The rest of this page sets up Docker by hand, for the [Docker Compose install](./panel/install#docker-compose) or for [Wings](./wings/install). The script does all of it for you.

## Installing Docker

For a quick install of Docker CE, you can use the command below:

```sh
curl -sSL https://get.docker.com/ | CHANNEL=stable sudo sh
```

<Admonition type="info" title="Installing Docker CE">
If the above command does not work, please refer to the [official Docker documentation](https://docs.docker.com/engine/install/) on how to install Docker CE on your server.
</Admonition>

## Start Docker on Boot

If you are on an operating system with systemd (Ubuntu 16+, Debian 8+, CentOS 7+) run the command below to have Docker start when you boot your machine.

```sh
sudo systemctl enable --now docker
```

## Enabling Swap

On most systems, Docker will be unable to setup swap space by default. You can confirm this by running `docker info` and looking for the output of `WARNING: No swap limit support` near the bottom.

Enabling swap is entirely optional, but we recommended doing it if you will be hosting for others and to prevent OOM errors.

To enable swap, open `/etc/default/grub` as a root user and find the line starting with `GRUB_CMDLINE_LINUX_DEFAULT`. Make
sure the line includes `swapaccount=1` somewhere inside the double-quotes.

After that, run `sudo update-grub` followed by `sudo reboot` to restart the server and have swap enabled.
Below is an example of what the line should look like, _do not copy this line verbatim. It often has additional OS-specific parameters._

```text
GRUB_CMDLINE_LINUX_DEFAULT="swapaccount=1"
```

<Admonition type="info" title="GRUB Configurations">
Some Linux distros may ignore `GRUB_CMDLINE_LINUX_DEFAULT`.
Therefore you might have to use `GRUB_CMDLINE_LINUX` instead should the above variable not work for you.
</Admonition>

## Next Steps

Docker is ready. Continue to [Installing the Panel](./panel/install).

Prefer to run the Panel directly on your server without Docker? Follow the [standalone install](./panel/standalone/getting-started) instead.
110 changes: 78 additions & 32 deletions content/docs/guides/ai-assistant.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -26,55 +26,98 @@ Assistants that can read the web can fetch these themselves:
|:-----|:-----------|
| `https://pelican.dev/llms.txt` | An index of every docs page, with links to their Markdown versions |
| `https://pelican.dev/llms-full.txt` | Every docs page in one Markdown file |
| `https://pelican.dev/docs/<page>.md` | One page as Markdown, e.g. `https://pelican.dev/docs/panel/getting-started.md` |
| `https://pelican.dev/docs/<page>.md` | One page as Markdown, e.g. `https://pelican.dev/docs/getting-started.md` |

## Recommended prompt: a production install

Copy this into a new conversation. It makes the assistant ask about your server first, go one step at a time and finish with the things a production panel needs.
Copy this into a new conversation. The assistant asks what your install needs, picks the options for the [install script](/docs/panel/install#the-install-script), shows you the plan with a dry run and then walks you through the real run and the checks a production panel needs.

```text title="Prompt: install the Pelican Panel for production" wrap
You are helping me install the Pelican Panel (https://pelican.dev) on a production server.
Pelican is a fork of Pterodactyl, but its paths, commands and requirements are different:
follow only the Pelican documentation, never Pterodactyl's.
```text title="Prompt: install the Pelican Panel with the install script" wrap
You are helping me install the Pelican Panel (https://pelican.dev) on a production server, with its
official install script (Docker Swarm, Traefik with Let's Encrypt, the Panel). Pelican is a fork of
Pterodactyl, but its paths, commands and requirements are different: follow only the Pelican
documentation, never Pterodactyl's.

Read these pages first and follow them exactly:
- https://pelican.dev/llms.txt (an index of every docs page as Markdown)
- https://pelican.dev/docs/panel/getting-started.md
- https://pelican.dev/docs/panel/webserver-config.md
- https://pelican.dev/docs/panel/panel-setup.md
- https://pelican.dev/docs/guides/ssl.md

Before any command, ask me:
1. The operating system and version (the output of `cat /etc/os-release`).
2. The panel's domain, and whether its DNS already points at this server.
3. Which web server I want: NGINX, Apache or Caddy.
4. Which database: SQLite (the default), MySQL/MariaDB or PostgreSQL.
5. Whether Wings will run on this server too, or on another one.

Then guide me one step at a time:
- Give me one short block of commands, say what each line does, and wait for me to paste the output before you continue.
- Use the versions and commands from the docs: PHP 8.5 or 8.4 with the listed extensions, the panel in /var/www/pelican.
- Never ask me for passwords, API keys, the APP_KEY or other secrets. Tell me where to enter them myself.
- If something fails, ask for the exact error and the relevant log instead of guessing.
- https://pelican.dev/docs/getting-started.md
- https://pelican.dev/docs/panel/install.md (the section "The install script" lists every option)

Before any command, ask me, one question at a time, and explain the choice in plain words:
1. The output of `cat /etc/os-release` and `systemd-detect-virt`, to check the server can run Docker.
2. Whether I have a domain for the panel with its DNS A record pointing at this server. Without one,
the panel is served over plain HTTP on the server's IP: fine to try it, but recommend adding a
domain (HTTPS) before real use. A domain can be added later by running the script again.
3. If I use a domain: the email for Let's Encrypt (a real address: example.com addresses are refused).
4. Which profile: "quick" (SQLite, the least to run: one server, a small community) or "production"
(MariaDB and Redis: more users, servers and nodes). Recommend one from my answers.
5. Whether Wings should run on this same server, and with a panel domain, Wings' own domain (e.g. node.example.com).

Then:
- Write the exact command with my answers as options (the script asks nothing itself; anything
left out takes its default), and explain each option.
- Have me run it with --dry-run first and paste the output, so we both see the plan. Only then the real run.
- Wait for me to paste the output of each step. If something fails, ask for the exact error and the
logs the docs name (docker service ls, docker service logs pelican_panel, pelican_traefik) instead of guessing.
- Never ask me for passwords, API keys, the APP_KEY or other secrets, and don't ask me to paste
/opt/pelican/pelican.env. Tell me where to look at them myself.

This is a production server. Before we finish, check with me that:
- The panel is served over HTTPS, and the certificate renews automatically.
- The firewall only opens what is needed: SSH, 80 and 443 for the panel, and if Wings runs here, its port (8080), SFTP (2022) and the game server ports I plan to allocate.
- The queue worker (systemctl status pelican-queue) is running and the schedule:run cron entry from the docs is installed for the web server user.
- File permissions match the Panel Setup page.
- I have stored the APP_KEY from /var/www/pelican/.env somewhere safe, off the server.
- I know how to back up the panel and its database, and how to update it (https://pelican.dev/docs/panel/update.md).
- The installer page the script printed opens (with a valid certificate if I used a domain), and I created the admin account there.
- I copied /opt/pelican/pelican.env (it holds the APP_KEY) somewhere safe, off the server.
- My provider's firewall allows 80 and 443 (and 2022 plus my game server ports if Wings runs here).
- If Wings runs here: the node is created in the Panel as the docs describe, /etc/pelican/config.yml
is in place, and `systemctl status wings` is active.
- I know how to change settings (edit pelican.env, run deploy.sh), update and back up, as the page says.

End with a short summary of what we installed and where each part lives.
```

## More prompts

<Tabs>
<TabItem value="standalone" label="Standalone install">
```text title="Prompt: install the Pelican Panel without Docker" wrap
You are helping me install the Pelican Panel (https://pelican.dev) on a production server,
directly on the server (the standalone install, without Docker).
Pelican is a fork of Pterodactyl, but its paths, commands and requirements are different:
follow only the Pelican documentation, never Pterodactyl's.

Read these pages first and follow them exactly:
- https://pelican.dev/llms.txt (an index of every docs page as Markdown)
- https://pelican.dev/docs/panel/standalone/getting-started.md
- https://pelican.dev/docs/panel/standalone/webserver-config.md
- https://pelican.dev/docs/panel/standalone/panel-setup.md
- https://pelican.dev/docs/guides/ssl.md

Before any command, ask me:
1. The operating system and version (the output of `cat /etc/os-release`).
2. The panel's domain, and whether its DNS already points at this server.
3. Which web server I want: NGINX, Apache or Caddy.
4. Which database: SQLite (the default), MySQL/MariaDB or PostgreSQL.
5. Whether Wings will run on this server too, or on another one.

Then guide me one step at a time:
- Give me one short block of commands, say what each line does, and wait for me to paste the output before you continue.
- Use the versions and commands from the docs: PHP 8.5 or 8.4 with the listed extensions, the panel in /var/www/pelican.
- Never ask me for passwords, API keys, the APP_KEY or other secrets. Tell me where to enter them myself.
- If something fails, ask for the exact error and the relevant log instead of guessing.

This is a production server. Before we finish, check with me that:
- The panel is served over HTTPS, and the certificate renews automatically.
- The firewall only opens what is needed: SSH, 80 and 443 for the panel, and if Wings runs here, its port (8080), SFTP (2022) and the game server ports I plan to allocate.
- The queue worker (systemctl status pelican-queue) is running and the schedule:run cron entry from the docs is installed for the web server user.
- File permissions match the Panel Setup page.
- I have stored the APP_KEY from /var/www/pelican/.env somewhere safe, off the server.
- I know how to back up the panel and its database, and how to update it (https://pelican.dev/docs/panel/update.md).

End with a short summary of what we installed and where each part lives.
```
</TabItem>
<TabItem value="wings" label="Add Wings">
```text title="Prompt: install Wings and connect it to the panel" wrap
Help me install Wings for the Pelican Panel, following only
https://pelican.dev/docs/wings/install.md and https://pelican.dev/docs/guides/docker.md.
https://pelican.dev/docs/wings/install.md and https://pelican.dev/docs/getting-started.md.

First check with me that this server can run Docker: ask for the output of
`systemd-detect-virt` and `uname -r` and compare them with the System Requirements section.
Expand All @@ -94,7 +137,9 @@ End with a short summary of what we installed and where each part lives.
What happens: <describe it, and what you changed last>

Ask me for the output you need, one command at a time, from this list first:
- tail -n 100 /var/www/pelican/storage/logs/laravel-$(date +%F).log
- installed with the install script: docker service ls, then docker service logs pelican_panel
(and pelican_traefik for certificate problems)
- installed directly on the server: tail -n 100 /var/www/pelican/storage/logs/laravel-$(date +%F).log
- systemctl status pelican-queue
- systemctl status wings, or sudo wings --debug on the node
- php -v
Expand All @@ -105,7 +150,8 @@ End with a short summary of what we installed and where each part lives.
<TabItem value="update" label="Update">
```text title="Prompt: update the panel safely" wrap
Help me update my Pelican Panel, following https://pelican.dev/docs/panel/update.md.
Ask me how it was installed (Docker, or directly on the server) and which version runs now.
Ask me how it was installed (the install script, Docker Compose, or directly on the server)
and which version runs now. An install-script install updates with: sudo /opt/pelican/deploy.sh
Before anything else, have me back up the panel folder, the database and the APP_KEY.
Check the Version Requirements on that page for the PHP and Wings versions the new release needs.
Prefer the update script the docs recommend, and go one step at a time, waiting for my output.
Expand Down
43 changes: 0 additions & 43 deletions content/docs/guides/docker.mdx

This file was deleted.

1 change: 0 additions & 1 deletion content/docs/guides/meta.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"title": "Guides",
"pages": [
"ai-assistant",
"docker",
"mounts",
"ssl",
"php-upgrade",
Expand Down
Loading
Loading