# Overview

{% hint style="info" %}
**Optional for Most Installations**

This section covers advanced and optional topics. Most installations do not require these settings. Only proceed here if you have specific requirements for scaling, security hardening, or infrastructure optimization.
{% endhint %}

## Overview

Advanced Topics covers optional configurations for:

* **Scaling Infrastructure**: Load balancing, caching, performance optimization
* **Security Hardening**: SSL, CSRF protection, trusted proxies

**When you might need this section:**

* Running PteroCA at enterprise scale (100+ concurrent users)
* High-security requirements
* Custom infrastructure setup
* Performance optimization needs

**When you DON'T need this section:**

* Standard PteroCA installation
* Small to medium hosting businesses
* First-time setup

## Topics Covered

### [Scaling Infrastructure](/advanced-topics/scaling-infrastructure.md)

Optimize PteroCA for high-traffic scenarios:

* Load balancing across multiple servers
* Redis caching for performance
* Database optimization
* CDN integration for static assets

**When to use**: 100+ concurrent users, multiple app servers

### Security Hardening

Additional security configurations beyond basic security settings:

#### [SSL Configuration](/advanced-topics/security-hardening/ssl-configuration.md)

* Configure HTTPS/SSL
* Force HTTPS redirects
* SSL certificate management

**When to use**: Production environments (strongly recommended)

#### [CSRF Protection](/advanced-topics/security-hardening/csrf-protection.md)

* Understanding CSRF tokens
* Configuring CSRF protection
* Troubleshooting CSRF errors

**When to use**: Already configured by default, this explains how it works

#### [Trusted Proxies](/advanced-topics/security-hardening/trusted-proxies.md)

* Configure trusted proxy IPs
* Fix client IP detection behind proxies
* CloudFlare integration

**When to use**: PteroCA behind reverse proxy, load balancer, or CloudFlare

## Prerequisites

Before diving into advanced topics:

* ✅ Complete basic installation: [Installation](/installation/installation.md)
* ✅ Core configuration finished: [Core Configuration](/core-configuration/core-configuration.md)
* ✅ System is working correctly
* ✅ You have identified a specific need for advanced configuration

## Do You Really Need This?

**You might need advanced configuration if:**

* You're experiencing performance issues with many concurrent users
* You have specific security compliance requirements
* You're running a complex infrastructure setup
* You're behind a reverse proxy or load balancer

**You DON'T need advanced configuration if:**

* Your installation is working fine
* You have < 100 concurrent users
* You're just getting started
* You haven't identified specific issues

## Getting Help

Advanced topics can be complex. If you're unsure:

* [Discord Community](https://discord.com/invite/Gz5phhuZym) - Ask for advice
* [GitHub Issues](https://github.com/PteroCA-Org/panel/issues) - Report issues
* [FAQ](/help-and-maintenance/faq.md) - Common questions

## Related Documentation

* [Core Configuration](/core-configuration/core-configuration.md) - Essential settings (start here first)
* [Security Settings](/core-configuration/core-configuration/security-settings.md) - Basic security configuration
* [Help & Maintenance](/help-and-maintenance/faq.md) - Troubleshooting and updates


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.pteroca.com/advanced-topics/advanced.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
