aaPanel (Baota) Documentation

repository·main·Indexed 26 days ago

https://github.com/aapanel/baota

A web hosting control panel designed to simplify server management, software installation, and configuration. Documentation includes installation guides for various Linux distributions (CentOS, Debian, Ubuntu, Deepin), Nginx integration via the pynginx module for detecting and parsing configurations, and setup instructions for CKEditor 4 including the SCAYT and WSC Dialog plugins and the Moono-lisa skin.

Tokens
46.6K
Snippets
73
Records
253
Agent score
89%

What's inside aaPanel (Baota)

  1. Overview of BT Mail (宝塔邮局) Features

    main

    BT Mail is an enterprise-level email system management tool for the Baota panel. It provides tools for building mail servers, configuring domains, managing email accounts, and setting up DNS records.

    Core Modules:

    • Mail System Initialization: One-click installation and configuration of Postfix, Dovecot, and Rspamd.
    • Domain Management: Add, delete, and query mail domains.
    • Email Accounts: Create, delete, and batch manage email accounts.
    • DNS Resolution: Automatic configuration of MX, SPF, DKIM, and DMARC records.
    • Service Monitoring: Check the running status of mail services.
    • Certificate Management: SSL certificate configuration and auto-renewal.
  2. Overview of btWAF (Nginx Firewall)

    main
    btWAF (宝塔Nginx防火墙) is a deeply integrated Web Application Firewall (WAF) built on Nginx. It provides protection against SQL injection, XSS, CC attacks, and Webshell uploads without requiring changes to the existing network architecture. It offers a visual management interface for configuring defense strategies and monitoring attack status.
  3. Overview of btWAF (Baota Nginx Firewall)

    main
    btWAF is a professional Nginx-based firewall deeply integrated into the Baota Panel. It is designed to defend against web threats including SQL injection, XSS, CC attacks, and Webshell uploads. It provides capabilities for querying, configuring, and managing website security, including black/white lists, region restrictions, Trojan detection, and traffic limiting.
  4. Use the Website Traffic Analysis Agent

    main

    The Website Traffic Analysis Agent is a performance optimization tool designed to analyze website traffic trends, sources, and bandwidth usage. It can be used to identify bandwidth bottlenecks, detect abnormal traffic patterns (such as DDoS or malicious crawlers), and analyze popular pages and user behavior.

    Key Capabilities:

    • Traffic Trends: Analyze changes in website visits and bandwidth usage.
    • Source Analysis: Identify visitor origins, popular pages, and user behavior.
    • Bandwidth Monitoring: Check bandwidth utilization and identify bottlenecks.
    • Anomaly Detection: Detect DDoS attacks, crawlers, and malicious requests.

    Preset Questions for Interaction:

    • Analyze website access traffic trends.
    • Check bandwidth usage and peaks.
    • Analyze website access sources and popular pages.
    • Troubleshoot abnormal traffic and potential attacks.
  5. Manage MySQL/MariaDB databases in aaPanel

    main

    Use the btpanel_database skill set to manage MySQL and MariaDB databases on your server. This includes creating, deleting, managing user permissions, and configuring database access.

    To perform operations, follow this workflow:

    1. Identify the database type (e.g., MySQL).
    2. Consult the reference documentation for parameter rules and constraints.
    3. Execute operations using the provided scripts or command-line interfaces.
    4. If errors occur, refer to the error code documentation for troubleshooting.
  6. Manage website types in btpanel_site

    main

    The btpanel_site skill manages three types of websites. Use the appropriate reference documentation and scripts based on the site type:

    • PHP Sites: For PHP projects (WordPress, Laravel, etc.). Supports PHP version configuration, databases, and FTP.
    • HTML Static Sites: For pure static projects (HTML, CSS, JS). No PHP environment required.
    • Reverse Proxy Sites: For proxying requests to backend services (Node.js, Python Flask, Go, etc.). Requires Nginx.

    Important: If the project is an AI project or website, do not use this skill; use btpanel_ai_site instead.

  7. Manage aaPanel Firewall via btpanel_firewall skill

    main

    The btpanel_firewall skill provides comprehensive management of the server firewall. It supports the following core operations:

    • Firewall Control: Starting and stopping the firewall service.
    • Ping Protocol Management: Enabling or disabling Ping responses (ICMP).
    • Port Rule Management: Adding, deleting, and viewing specific port rules.
    • Status Inquiry: Checking the current status of the firewall.

    To perform these tasks, use the scripts/firewall_ops.py script which encapsulates the necessary command-line and Python interfaces.

  8. Understand CKEditor Licensing Options

    main

    CKEditor is licensed under one of the following three licenses at your choice:

    1. GNU General Public License (GPL): Version 2 or later.
    2. GNU Lesser General Public License (LGPL): Version 2.1 or later.
    3. Mozilla Public License (MPL): Version 1.1 or later.

    If you wish to explicitly declare which license you have chosen when reproducing, modifying, or distributing the software, you can include a text file named legal.txt in your version of the software indicating your choice. Your choice does not restrict recipients from using the software under any of the other available licenses.

  9. Use the Trojan Isolation Box (木马隔离箱)

    main

    The Trojan Isolation Box performs real-time scanning and isolates discovered malicious files.

    Modules:

    • Trojan File List: Displays isolated files.
    • Scan (查杀): Scans for Trojans in site directories or custom directories.
    • Rule List: Manages scanning rules.
    • Scan Logs: View scanning history.

    Usage Notes:

    • Files appear in the list if they were accessed via a URL (e.g., accessing /admin.php triggers a scan of that file).
    • If files appear in the list, the site may be compromised; clean them immediately.
    • Do not delete the scheduled task; if you wish to disable scanning, do so in the Global Settings.