HomeDocsFeaturesPanel Settings
Features

Panel Settings

Configure panel branding, features, rate limits, and more.

bthavanishBy bthavanish

Admin Settings

All panel settings are stored in a single settings database row. Admins can modify them through the admin panel or API.

Settings Categories

General Settings

SettingDefaultDescription
title“Airlink”Panel title
description“Airlink is…”Panel description
logo”../assets/logo.png”Logo path
favicon”../assets/favicon.ico”Favicon path
theme“default”UI theme
lightTheme“default”Light theme
darkTheme“default”Dark theme
language“en”Default language
allowRegistrationfalseAllow public registration
uploadLimit100File upload limit (MB)
onboardingEnabledtrueShow onboarding to new users
PATCH /api/v2/admin/settings/general
{ "title": "My Panel", "allowRegistration": true }

Security Settings

SettingDefaultDescription
loginMaxAttempts5Max failed login attempts
loginLockoutMinutes15Lockout duration
rateLimitEnabledtrueEnable rate limiting
rateLimitRpm100Requests per minute
enforceDaemonHttpsfalseForce HTTPS to daemons
require2faForAdminsfalseRequire 2FA for admin accounts
behindReverseProxyfalseTrust X-Forwarded-For headers
hashApiKeysfalseHash API keys in database
PATCH /api/v2/admin/settings/security
{ "rateLimitEnabled": true, "rateLimitRpm": 200 }

Server Policy Settings

SettingDefaultDescription
allowUserCreateServerfalseUsers can create servers
allowUserDeleteServerfalseUsers can delete servers
defaultServerLimit0Default max servers per user
defaultMaxMemory512Default memory limit (MB)
defaultMaxCpu100Default CPU limit
defaultMaxStorage5120Default storage limit (MB)
defaultMaxDatabases0Default database limit
defaultOverallocateMemory0Default memory overallocation
defaultOverallocateDisk0Default disk overallocation
defaultOverallocateCpu0Default CPU overallocation
allowPrivilegedServerLimit5Admin max servers
allowPrivilegedMaxMemory2048Admin max memory
allowPrivilegedMaxCpu200Admin max CPU
allowPrivilegedMaxStorage61440Admin max storage
allowPrivilegedMaxDatabases10Admin max databases
defaultMemory512Server creation default memory
defaultCpu100Server creation default CPU
defaultDisk5120Server creation default disk
maxServersPerUser10Hard cap on servers per user
onboardingSteps”[]”Onboarding step configuration
PATCH /api/v2/admin/settings/server-policy
{ "allowUserCreateServer": true, "defaultMaxMemory": 1024 }

Feature Toggles

SettingDefaultDescription
twoFactorRequiredfalseRequire 2FA for all users
sftpEnabledtrueEnable SFTP access
backupsEnabledtrueEnable backup system
schedulesEnabledtrueEnable scheduled tasks
databasesEnabledtrueEnable database management
fileManagerEnabledtrueEnable file manager
consoleEnabledtrueEnable server console
playerTrackingEnabledfalseEnable player stats collection
scannerEnabledtrueEnable file scanner
airlinkCloudEnabledfalseEnable Airlink Cloud features
PATCH /api/v2/admin/settings/features
{ "backupsEnabled": true, "consoleEnabled": true }

SMTP Settings

SettingDefaultDescription
smtpHostnullSMTP server hostname
smtpPort587SMTP port
smtpUsernullSMTP username
smtpPasswordnullSMTP password
smtpFromnullFrom address
smtpSecurefalseUse TLS
emailCooldown30Seconds between emails
PATCH /api/v2/admin/settings/smtp
{ "smtpHost": "smtp.gmail.com", "smtpPort": 587 }

Test SMTP:

POST /api/v2/admin/settings/smtp/test

S3 Settings

SettingDefaultDescription
s3EnabledfalseEnable S3 storage
s3EndpointnullS3 endpoint URL
s3RegionnullAWS region
s3BucketnullBucket name
s3AccessKeynullAccess key
s3SecretKeynullSecret key
s3PathStylefalseUse path-style URLs
PATCH /api/v2/admin/settings/s3
{ "s3Enabled": true, "s3Endpoint": "https://s3.amazonaws.com" }

Test S3:

POST /api/v2/admin/settings/s3/test

IP Management

Ban IP addresses:

POST /api/v2/admin/settings/ban-ip
{ "ip": "192.168.1.100", "reason": "Abuse" }

Unban:

POST /api/v2/admin/settings/unban-ip
{ "ip": "192.168.1.100" }

Banned IPs are stored as a JSON array in the bannedIps setting field. The middleware checks this list before any route handler runs.

Wallpaper Settings

Custom wallpapers for different pages:

SettingDescription
loginWallpaperLogin page background
registerWallpaperRegister page background
panelWallpaperMain panel background

Cloud Settings

SettingDescription
airlinkCloudApiKeyAirlink Cloud API key
airlinkCloudBackupEnabledEnable cloud backups