Here's a conceptual example, which you would need to adapt to your specific reverse proxy software.
haproxy -c -f /etc/haproxy/haproxy.cfg sudo systemctl restart haproxy Use code with caution. Step 6: Complete Installation and Tune Performance
Check your service status regularly to ensure nodes are working together correctly: harp nextcloud install
Are you planning to integrate or Collabora for real-time document editing? Share public link
: Run the daemon where your main reverse proxy can reach it. docker run -d \ --name appapi-harp \ -e HP_SHARED_KEY= "your_secure_key" \ -e NC_INSTANCE_URL= "https://yourcloud.com" \ -v /var/run/docker.sock:/var/run/docker.sock \ -p \ ghcr.io/nextcloud/nextcloud-appapi-harp:release Use code with caution. Copied to clipboard Register the Daemon Navigate to your Nextcloud Admin Settings Register Daemon and select the HaRP Proxy (Host) HP_SHARED_KEY used in your Docker command to establish the link. Configure Main Reverse Proxy : Update your primary proxy (e.g., Nginx) to redirect requests to the HaRP container on port Best Practices for Stability Version Compatibility : Ensure you are running Nextcloud 32 or higher for full support, as older methods are being deprecated. Network Security Here's a conceptual example, which you would need
Enable the configuration and disable the default landing page:
Mounting /certs is critical. If these certificates are lost, existing ExApp tunnels will fail due to TLS mismatches. 3. Registering the HaRP Daemon in Nextcloud Share public link : Run the daemon where
Execute the following queries to create the isolated environment. Replace 'your_secure_password' with a strong, generated credential:
Enable the necessary Apache modules for routing and performance:
sudo a2enmod ssl proxy proxy_http proxy_wstunnel rewrite headers
HaRP acts as a dedicated proxy for AppAPI, the framework used by many modern Nextcloud applications to run as separate Docker containers (ExApps).