Pterodactyl Settings
Configure integration with Pterodactyl panel including API, SSO, and server management.
Breadcrumb: System Configuration > Pterodactyl Settings
Overview
Pterodactyl Settings control how PteroCA integrates with your Pterodactyl panel for server provisioning and management. PteroCA uses the Pterodactyl API to:
Create servers automatically
Manage server lifecycle
Sync server information
Handle server suspensions
Optional Single Sign-On (SSO) integration
Proper configuration is critical for PteroCA to function correctly.
Settings Overview
Pterodactyl Panel URL
URL
✓
✓
URL of Pterodactyl installation
Pterodactyl API Key
Secret
✓
✓
Application API key with full permissions
Use as Client Panel
Boolean
✓
Use Pterodactyl for server management UI
SSO Enabled
Boolean
✓
Enable Single Sign-On with Pterodactyl
SSO Secret
Secret
✓
Shared secret for SSO authentication
Show Logs in Activity
Boolean
✓
Display Pterodactyl logs in server activity
Configuration via CLI Wizard
The CLI configuration wizard covers the 2 essential Pterodactyl settings during initial setup.
Run the Wizard
Pterodactyl Configuration Prompts
Prerequisites
Before configuring:
Pterodactyl Panel Running:
Installed and accessible
Properly configured
Application API Key Created:
Navigate to Pterodactyl Admin Panel
Go to Application API
Create new key with all permissions
Copy key (shown only once)
See Pterodactyl API Configuration for detailed setup.
Configuration via Admin Panel
All 6 Pterodactyl settings can be managed through the Admin Panel.
Access Pterodactyl Settings
Log in to the Admin Panel
Navigate to Settings in the main menu
Click Pterodactyl
Update values
Click Save
Setting Details
Pterodactyl Panel URL
Setting Code: pterodactyl_url Field Type: URL Required: Yes Default: None
The base URL where your Pterodactyl panel is accessible.
Format:
Requirements:
Must include protocol (
http://orhttps://)No trailing slash
Must be accessible from PteroCA server
Should be HTTPS in production
Examples:
Production:
Development:
Testing Connection:
Common Issues:
Firewall blocking access
Invalid SSL certificate
DNS not resolving
Panel not running
Pterodactyl API Key
Setting Code: pterodactyl_api_key Field Type: Secret (Password) Required: Yes Default: None
Application API key from Pterodactyl with full read & write permissions.
Format:
Creating API Key:
Log in to Pterodactyl Admin Panel
Navigate to Application API (not Account API)
Click Create New
Description:
PteroCA IntegrationSelect ALL permissions:
✓ User Management
✓ Server Management
✓ Node Management
✓ Allocation Management
✓ Nest Management
✓ Egg Management
✓ Database Management
✓ Location Management
Click Create
Copy key immediately (shown only once)
Required Permissions:
PteroCA requires all Application API permissions to:
Create servers
Assign allocations
Manage users
Install eggs
Configure databases
Handle suspensions
Security:
Store securely
Never expose in logs
Rotate periodically
Use separate key per environment
Testing API Key:
Expected response: JSON with user data
For detailed setup, see Pterodactyl API Configuration.
Use Pterodactyl Panel as Client Panel
Setting Code: pterodactyl_use_as_client_panel Field Type: Boolean (Toggle) Required: No Default: false
Redirect server management to Pterodactyl's client panel instead of PteroCA.
When Enabled:
Server management links redirect to Pterodactyl
Users manage servers in Pterodactyl UI
PteroCA only handles billing and provisioning
When Disabled (Default):
Servers managed within PteroCA
Embedded Pterodactyl console
Unified user experience
Use Cases for Enabling:
Advanced Users:
Users familiar with Pterodactyl
Need full Pterodactyl features
Feature Parity:
Pterodactyl has features not in PteroCA
Full file manager access needed
Separate Branding:
Game hosting on Pterodactyl
Billing on PteroCA
Considerations:
Users must have accounts on both systems
Consider enabling SSO for seamless experience
May confuse less technical users
Pterodactyl SSO Enabled
Setting Code: pterodactyl_sso_enabled Field Type: Boolean (Toggle) Required: No Default: false
Enable Single Sign-On between PteroCA and Pterodactyl.
IMPORTANT: SSO requires the PteroCA Pterodactyl Addon to be installed and configured in your Pterodactyl panel. This setting alone is not sufficient - you must also configure the addon side. See SSO Setup Guide for complete instructions.
Prerequisites:
PteroCA Pterodactyl Addon installed in Pterodactyl (Required!)
SSO secret configured on both panels
Allowed origins configured
Both panels accessible via HTTPS
When Enabled:
Users can click "Login to Pterodactyl" button in PteroCA
Automatic authentication without separate login
Seamless experience between panels
Benefits:
Single login for both panels
Better user experience
Reduced support requests
Increased security (fewer passwords)
Setup Steps:
Install PteroCA Pterodactyl Addon (Addon Installation)
Generate shared SSO secret
Configure SSO secret in PteroCA (this setting)
Configure SSO secret in Pterodactyl addon
Test SSO flow
Related Documentation:
SSO Setup Guide - Complete configuration guide
Allowed Origins - CORS configuration
Pterodactyl SSO Secret
Setting Code: pterodactyl_sso_secret Field Type: Secret (Password) Required: Only if SSO enabled Default: None
Shared secret key used to sign SSO tokens between PteroCA and Pterodactyl.
Format:
Generating SSO Secret:
Example:
Security:
Must be same on both panels
Keep absolutely confidential
Use cryptographically random value
Rotate periodically
Configuration:
Generate secret
Save in PteroCA: Settings → Pterodactyl → SSO Secret
Save in Pterodactyl addon configuration
Test SSO login
Never:
Share publicly
Commit to version control
Reuse across environments
Use predictable values
Show Pterodactyl Logs in Server Activity
Setting Code: show_pterodactyl_logs_in_server_activity Field Type: Boolean (Toggle) Required: No Default: false
Display Pterodactyl panel logs in PteroCA server activity feed.
When Enabled:
Pterodactyl events appear in server timeline
Admin actions from Pterodactyl visible
Complete audit trail
Logged Events:
Server power state changes
File modifications (if tracked)
Configuration changes
Reinstallations
Database creations
Use Cases:
Comprehensive activity monitoring
Audit compliance
Troubleshooting
User accountability
Considerations:
May create verbose logs
Requires Pterodactyl webhook configuration
Slight performance impact
Best Practices
API Security
Use HTTPS:
Never connect to Pterodactyl over HTTP in production
Ensures API key transmitted securely
Rotate Keys:
Change API key periodically (quarterly recommended)
Rotate immediately if compromised
Minimum Permissions:
While all permissions are required, audit usage
Monitor API logs for anomalies
Server Lifecycle Management
Monitor Server Status:
Track server creation success/failure rates
Monitor suspension events
Review server activity logs regularly
Sync Regularly:
Keep PteroCA and Pterodactyl in sync
Verify server states match
Check for orphaned servers
Backup API Configuration:
Document API key location
Keep backup of configuration
Test failover procedures
SSO Implementation
Test Thoroughly:
Test SSO flow before enabling for users
Verify token generation and validation
Secure Secrets:
Use strong SSO secret
Store securely
Never expose in client-side code
Monitor Authentication:
Log SSO attempts
Alert on failures
Track unusual patterns
Integration Monitoring
API Health:
Monitor API response times
Track error rates
Set up alerts for failures
Sync Status:
Verify server data syncs correctly
Check for orphaned resources
Regular reconciliation
Log Review:
Review Pterodactyl logs regularly
Investigate anomalies
Track integration issues
Troubleshooting
API Connection Failures
Problem: Cannot connect to Pterodactyl API
Possible Causes:
Incorrect URL
Firewall blocking connection
SSL certificate issues
Pterodactyl panel down
Solutions:
Verify URL:
Test API Endpoint:
Check Firewall:
Verify SSL:
Check Pterodactyl Status:
Access Pterodactyl admin panel
Check server logs
Verify panel is running
Authentication Errors
Problem: API authentication failed
Causes:
Invalid API key
Expired key
Insufficient permissions
Wrong key type (Account vs Application)
Solutions:
Verify Key Format:
Should start with
ptlc_Application API key, not Account API
Check Permissions:
Log in to Pterodactyl admin
Verify key has ALL permissions
Regenerate if needed
Test Manually:
Create New Key:
Delete old key
Create fresh key with all permissions
Update in PteroCA
Server Creation Fails
Problem: Servers fail to provision
Causes:
Insufficient allocations
Egg configuration errors
Resource limits exceeded
Node offline
Solutions:
Check Allocations:
Verify node has available IP:Port combinations
Create allocations in Pterodactyl
Verify Egg:
Ensure egg exists and is configured
Check egg startup command
Review Node Status:
Check node is online
Verify Wings daemon running
Check Logs:
SSO Not Working
Problem: SSO login fails or redirects incorrectly
Causes:
Addon not installed
Secret mismatch
Allowed origins not configured
Token signing issues
Solutions:
Verify Addon Installed:
Check Pterodactyl admin → Addons
Reinstall if needed
Match SSO Secret:
Must be identical on both panels
Check for extra spaces/characters
Configure Allowed Origins:
Add PteroCA URL to Pterodactyl allowed origins
See Allowed Origins
Check Browser Console:
F12 → Console tab
Look for CORS errors or JWT issues
Test Token Generation:
Verify tokens are being created
Check token expiration
Validate signature
See SSO Setup Guide for detailed troubleshooting.
Suspended Server Deletion Issues
Problem: Suspended servers not deleting automatically
Causes:
Cron scheduler not running
Deletion disabled
Date calculation errors
Solutions:
Verify Cron:
Check Settings:
Navigate to Settings → General
Verify "Delete Suspended Servers Enabled" is ON
Verify "Days After Suspension" is set correctly
See General Settings for details
Manual Trigger:
Review Logs:
Related Settings
General Settings - Site URL, server deletion settings
Email Settings - SMTP configuration for Pterodactyl notifications
Payment Settings - Server provisioning on payment
Additional Resources
Pterodactyl Integration Overview - Complete integration guide
API Configuration - Detailed API setup
SSO Setup - Single Sign-On configuration
Addon Installation - PteroCA addon for Pterodactyl
Allowed Origins - CORS configuration
Pterodactyl Documentation - Official Pterodactyl docs
Last updated