{
    admin off
    servers {
        # Trust the upstream reverse proxy (Traefik) so the Panel recognizes
        # TLS is terminated there. Replace 10.1.1.250 with your Traefik IP
        # or the Cloudflare IP ranges if you're using Cloudflare Flexible SSL.
        trusted_proxies static 10.1.1.250
    }
}

:8080 {
    root * /var/www/html/public
    encode gzip

    # FastCGI to the bundled php-fpm in the Panel image
    php_fastcgi 127.0.0.1:9000 {
        # Optional: raise upload limits if you need larger file uploads
        env PHP_VALUE "upload_max_filesize = 256M
                       post_max_size = 256M"
    }

    file_server
}

