harp nextcloud install
harp nextcloud install

Since you are looking to install Nextcloud HaRP (HTTP Autoregister Reverse Proxy), this draft post outlines the steps to set up the new proxy system designed for Nextcloud 32+ External Apps (ExApps). Draft Post: Setting Up Nextcloud HaRP for External Apps

<?php
  'config_version' => 22,
  'instanceid' => 'oc123456',
  'passwordsalt' => 'strong_password',
  'secret' => 'strong_secret',
  'trusted_domains' => array (
    0 => 'example.com',
  ),
  'datadir' => '/var/www/nextcloud/data',
  'dbtype' => 'mysql',
  'dbhost' => 'localhost',
  'dbname' => 'nextcloud',
  'dbuser' => 'nextcloud',
  'dbpassword' => 'strong_password',
);
- hosts: all
  become: yes
  roles:
    - role: xanmanning.k3s
      vars:
        k3s_version: v1.27.4+k3s1
        k3s_server_manifests_templates:
          - longhorn.yaml
        k3s_install_hard_links: true
sudo apt install -y mariadb-server php7.4-fpm nginx