The settings are in config.yml next to index.js. The defaults are the values in the file that comes with the script. Restart the script after a change.
Panel and node#
| Key | Default | What it does |
|---|---|---|
node |
auto |
Which servers to watch. See Which node. |
pterodactyl.url |
https://panel.example.com |
The URL of your panel. Required. |
pterodactyl.apiKey |
ptla_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx |
The Application API key, which lists the servers and nodes. Give it read access to Servers and Nodes. Required. |
pterodactyl.clientApiKey |
ptlc_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx |
The Client API key, which reads the live state of a server. Required. |
pterodactyl.serverStatusEndpoint |
/api/application/servers |
The API path that lists servers. Leave it as is. |
pterodactyl.clientEndpoint |
/api/client/servers/%s/resources |
The API path for the state of one server. %s is the server identifier. Leave it as is. |
Which node#
| Value | Servers that are watched |
|---|---|
auto |
Only the servers of the Wings node the script runs on. The script reads the node UUID from /etc/pterodactyl/config.yml and looks it up in the panel. On a machine without Wings, such as a proxy, every node. |
all |
The servers of every node |
A node ID, such as 3 |
Only the servers of that node |
When the node list cannot be read, for example because the key has no read access to Nodes, or the UUID is not in the panel, the script warns in the log and watches every node.
Ports and eggs#
| Key | Default | What it does |
|---|---|---|
portRange.start |
25500 |
The first port to handle. Required. |
portRange.end |
25600 |
The last port to handle. Required. |
excludeEggs |
[] |
A list of egg IDs to skip, for example [5, 12, 15]. |
Every allocation of a server counts, so a server with several ports in the range gets a rule for each port.
Excluded eggs#
Use the numeric ID of the egg. You find it in the admin area of the panel, on the page of the egg.
MOTD#
| Key | Default | What it does |
|---|---|---|
motd.port |
4001 |
The first of four ports the script listens on. Required. |
motd.server-icon |
./server-icon.png |
The icon in the server list. A relative path is relative to the folder of index.js. |
motd.states.offline, suspended, installing, starting |
See the file | The texts per state. See How it works. |
Panel requests#
| Key | Default | What it does |
|---|---|---|
pterodactylApi.cacheTimeout |
30000 |
Milliseconds to keep the server list. The suspended and installing flags change at this pace. |
pterodactylApi.requestTimeout |
5000 |
Milliseconds to wait for the panel. |
pterodactylApi.maxConcurrentRequests |
10 |
The most state requests at the same time. |
monitoring.checkInterval |
10000 |
Milliseconds between state checks. |
logging.level |
info |
error, warn, info or debug. |
A value of 0 falls back to the default for the keys with a default in the script. The script reads every page of the server list.