Panduan
-
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
-
Pasang
Nextcloud
melalui snapd
sudo snap install nextcloud
- Konfigurasi Akun administratif
sudo nextcloud.manual-install <username> <password>
- 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
- Generate SSL menggunakan Let’s Encrypt
sudo nextcloud.enable-https lets-encrypt
# Verifikasi
sudo nextcloud.occ config:system:get trusted_domainsc
-
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