Automatic script what detects the creation & deletion of a server, and detect if the server is a Valve Game (Source/SRCDS) AppID | Game | Supported |
---|---|---|
~ | If you test a game and see it's working contact me to add to the list | ⚠️ |
~ | All HL1/HL2 games and mods | ✅ |
440 | Team Fortress 2 | ✅ |
500 | Left 4 Dead | ✅ |
550 | Left 4 Dead 2 | ✅ |
730 | Counter-Strike: Global Offensive | ✅ |
4000 | Garry's Mod | ✅ |
225840 | Sven Coop | ✅ |
sudo apt-get install -y inotify-tools curl
gpasswd -a www-data pterodactyl
chmod 755 /var/lib/pterodactyl/ && chmod 755 /var/lib/pterodactyl/volumes/
chmod -R 750 /mnt/server/
chmod -R 750 /var/lib/pterodactyl/volumes/UUID/
chmod -R 750 /var/lib/pterodactyl/volumes/5267701d-8aa0-4071-a3f7-953a5a8e0a79/
HOME_URL="https://node.pterodactyl.io"
API_KEY="YOUR_GENERATED_API_KEY"
FASTDL="/var/www/fastdl"
systemctl enable fastdl
server {
listen 80;
listen [::]:80;
root /var/lib/pterodactyl/volumes;
index index.html;
server_name <domain>;
location / {
# First attempt to serve request as file, then
# as directory, then fall back to displaying a 404.
try_files $uri $uri/ =404;
# Comment this line if dont want to list files (only after checking that your fastdl works)
autoindex on;
}
}
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
ssl on;
ssl_certificate /etc/ssl/certs/serverscstrike.com-cert.pem;
ssl_certificate_key /etc/ssl/private/serverscstrike.com-key.pem;
root /var/lib/pterodactyl/volumes;
index index.html;
server_name <domain>;
location / {
# First attempt to serve request as file, then
# as directory, then fall back to displaying a 404.
try_files $uri $uri/ =404;
# Comment this line if dont want to list files (only after checking that your fastdl works)
autoindex on;
}
location ~\.(sma|amxx|sp|smx|cfg|ini|log|bak|dat|sql|sq3|so|dll|php|zip|rar|jar|sh)$ {
return 403;
}
}
location ^~ /fastdl {
alias /var/www/pterodactyl-fastdl;
# First attempt to serve request as file, then
# as directory, then fall back to displaying a 404.
try_files $uri $uri/ =404;
# Comment this line if dont want to list files (only after checking that your fastdl works)
autoindex on;
location ~\.(sma|amxx|sp|smx|cfg|ini|log|bak|dat|sql|sq3|so|dll|php|zip|rar|jar|sh)$ {
return 403;
}
}
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change. Please make sure to update tests as appropriate.