Panduan

  1. Pasang snap (Jika belum tersedia)

    • Debian Based
    sudo apt install -y snapd
    
    • RHEL Based
    sudo yum install -y epel-release
    sudo yum install -y snapd
    # atau
    sudo dnf install -y epel-release
    sudo dnf install -y snapd
    
    sudo systemctl enable --now snapd.socket
    sudo ln -s /var/lib/snapd/snap /snap
    
  2. Pasang Nextcloud melalui snapd

sudo snap install nextcloud
  1. Konfigurasi Akun administratif
sudo nextcloud.manual-install <username> <password>
  1. Konfigurasi nama domain
# sudo nextcloud.occ config:system:set trusted_domains 1 --value=<alamat_domain>
sudo nextcloud.occ config:system:set trusted_domains 1 --value=contoh.com
  1. Generate SSL menggunakan Let’s Encrypt
sudo nextcloud.enable-https lets-encrypt

# Verifikasi
sudo nextcloud.occ config:system:get trusted_domainsc
  1. Buka firewall

    • ufw
    sudo ufw allow 80,443/tcp
    
    • firewalld
    firewall-cmd --permanent --zone=public --add-service=http
    firewall-cmd --permanent --zone=public --add-service=https
    firewall-cmd --reload
    

Referensi