HaRP acts as a dedicated proxy for AppAPI, the framework used by many modern Nextcloud applications to run as separate Docker containers (ExApps).
Now, exit the SSH session and return to your local machine. We will now deploy from local to remote.
before_script:
Add your HAProxy server to the trusted_proxies array, enable Redis configuration, and add your domain to trusted_domains . Your configuration file should look similar to this: harp nextcloud install
Save and exit. Finally, navigate to your Nextcloud , and change the "Background jobs" option from AJAX to Cron .
The installation involves two main parts: running the HaRP Docker container and registering it within Nextcloud. Part 1: Run the HaRP Docker Container
location ~ \.php$ try_files $uri =404; fastcgi_pass unix:/var/run/php/php7.4-fpm.sock; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include fastcgi_params; HaRP acts as a dedicated proxy for AppAPI,
How to Install Nextcloud on a HARP Stack (HTTPD, Apache, RuOS, PostgreSQL)
To update to the latest Nextcloud version, just change the version tag in your harp.json (if pinned) or simply run:
Log into the MariaDB prompt to create the dedicated database and user account for Nextcloud: sudo mysql -u root -p Use code with caution. The installation involves two main parts: running the
Install the PostgreSQL server package and its contrib utilities: sudo dnf install postgresql-server postgresql-contrib -y Use code with caution. Initialize the database cluster: sudo postgresql-setup --initdb Use code with caution.
Standard Nextcloud apps must run through the core web server and PHP engine. HaRP routes traffic directly to the ExApp container. This reduces CPU bottlenecks and ensures lightning-fast execution.
Once the container is running, you must tell Nextcloud how to find it. Navigate to > AppAPI . Click Register Daemon .
To enable direct routing (and WebSockets), your main reverse proxy (Nginx, Apache, or Caddy) needs a redirect for the /exapps/ path.