Skip to content

two-stupid-idiots/pterodactyl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pterodactyl

Our configuration of Pterodactyl.

Content

1 Nginx

1.1 Installation

Install Nginx on host.

sudo apt install nginx

1.2 Configuration

Copy the nginx/ configs to your sites-available and CHANGE the domain.

Enable this config:

sudo ln -s /etc/nginx/sites-available/panel.{YOUR_DOMAIN} /etc/nginx/sites-enabled/panel.{YOUR_DOMAIN}
sudo ln -s /etc/nginx/sites-available/wings.{YOUR_DOMAIN} /etc/nginx/sites-enabled/wings.{YOUR_DOMAIN}

1.3 Start

sudo systemctl enable nginx
sudo systemctl restart nginx

1.4 Status

sudo systemctl status nginx

2 Dehydrated

2.1 Installation

Install Dehydrated on host.

sudo apt install dehydrated

2.2 Configuration

Edit /etc/dehydrated/domains.txt

panel.{YOUR_DOMAIN}
wings.{YOUR_DOMAIN}

2.3 Create certificates

sudo dehydrated -c

2.4 Auto renew

sudo crontab -e

Add this line:

0 3 * * * /usr/local/bin/dehydrated -c >/dev/null 2>&1

3 Pterodactyl

3.1 Copy config

Copy this Docker Compose config to your directory.

3.2 Set variables

Copy .env.example to .env and edit it. Check Variables List for more information.

3.3 Start

sudo docker compose up -d

3.4 Add UI user

The following command starts a dialog.

sudo docker compose run --rm panel php artisan p:user:make

3.5 Add node

First create a location within the UI. Then create a node with the following settings:

Setting Description
Name Name your node
Location Choose your created location
Visibility public
FQDN Set to full domain of node
SSL Use SSL
Proxy Behind Proxy
Memory Choose according to your server
Storage Choose according to your server
Daemon Port 443
Daemon SFTP Port 2022

Information

Ports

Default: deny (incoming), allow (outgoing), deny (routed),

Port Protocol Status Usage
22/tcp SSH LIMIT IN SSH
80/tcp HTTP ALLOW IN NGINX
443/tcp HTTPS ALLOW IN NGINX
2022/tcp SFTP ALLOW IN WINGS
8080/tcp HTTP local Panel
8443/tcp HTTPS local Wings
24454/udp ALLOW IN Simple Voice Chat
25565:25575/tcp ALLOW IN Minecraft

Variables

Option Value
TIMEZONE Set to your timezone
PANEL_URL Set to the panel url
PANEL_SERVICE_AUTHOR Set to your mail
PANEL_TRUSTED_PROXIES Set to IP address of your proxy
MYSQL_ROOT_PASSWORD Set mysql root pwd
MYSQL_DATABASE Set db name
MYSQL_USER Set db username
MYSQL_PASSWORD Set user pwd

About

Our configuration of pterodactyl.

Topics

Resources

License

Stars

Watchers

Forks

Contributors