Adopting HaRP is a significant upgrade for any Nextcloud administrator looking to leverage the full potential of External Apps. While the initial setup requires careful attention to your reverse proxy configuration and Docker networking, the long-term benefits of improved performance, simpler architecture, and the ability to run modern, real-time ExApps are well worth the investment. Start with a basic Docker deployment to get familiar, then graduate to a Docker Compose stack for a robust, production-ready environment.
Step 5 — Configure PHP
Are you deploying on , virtual machines , or inside a Docker environment ?
This public link is valid for 7 days and shares a thread, including any personal information you added. This link or copies made by others cannot be deleted. If you share with third parties, their policies apply. Can’t copy the link right now. Try again later.
To finalize your HARP configuration, open /var/www/nextcloud/config/config.php and manually append your Redis parameters and proxy trust configurations inside the main array: harp nextcloud install
Then re-deploy to apply these settings:
The Upgrade and Connection headers are essential for WebSocket support. Without them, real-time features like collaborative editing and live notifications will not work.
Choose the or HaRP Proxy (Docker) template. Fill in the details: Host : Use localhost:8780 if HaRP is on the same machine. FRP Server Address : Typically localhost:8782 . Shared Key : Must match the HP_SHARED_KEY set in Step 1. Click Check Connection and then Register . Step 3: Configure Your Main Reverse Proxy
Nextcloud has evolved from a simple file-sharing platform into a comprehensive, self-hosted productivity suite. As the platform grows, so does the complexity of running advanced applications (External Apps or "ExApps")—like AI-powered tools, complex office suites, or specialized multimedia tools—that require more than standard PHP. Enter . Adopting HaRP is a significant upgrade for any
HaRP eliminates the need for complex, manual DockerSocketProxy configurations.
Manages user sessions. It handles transactional file locking to prevent data corruption during simultaneous syncs.
To update to the latest Nextcloud version, just change the version tag in your harp.json (if pinned) or simply run:
[ Client / Web Browser ] │ (HTTPS / Port 443) ▼ [ HAProxy ] (SSL Termination & Load Balancing) │ (HTTP / Port 80) ▼ [ Apache ] (Processes Nextcloud PHP-FPM code) ├───► [ Redis ] (Local/External cache & File locking) └───► [ PostgreSQL ] (Database storage) Step 1: Initialize the Environment and Install PHP Step 5 — Configure PHP Are you deploying
This comprehensive guide will walk you through setting up a production-ready Nextcloud instance on a HARP stack. Prerequisites and Infrastructure Layout
services: appapi-harp: image: ghcr.io/nextcloud/nextcloud-appapi-harp:release container_name: appapi-harp restart: always environment: - HP_SHARED_KEY=your_very_secure_password # Minimum 12 characters - NC_INSTANCE_URL=https://your-nextcloud-domain.com volumes: - /var/run/docker.sock:/var/run/docker.sock:ro # Access to Docker engine - ./harp_certs:/certs # Persistent storage for FRP certificates networks: - nextcloud_network networks: nextcloud_network: external: true Use code with caution.
This comprehensive guide will walk you through everything you need to know about installing HaRP for Nextcloud — from understanding what HaRP is and why you need it, to step-by-step installation and configuration that actually works.