NextCloud: Instalasi di Ubuntu 18.04

From OnnoWiki
Jump to navigation Jump to search

Install

Edit /etc/apt/sources.list

deb http://archive.ubuntu.com/ubuntu bionic main universe multiverse
deb http://archive.ubuntu.com/ubuntu bionic-security main universe multiverse
deb http://archive.ubuntu.com/ubuntu bionic-updates main universe multiverse
apt update

Instalasi

sudo snap install nextcloud

Optional

snap changes nextcloud
snap info nextcloud
snap interfaces nextcloud
cat /snap/nextcloud/current/meta/snap.yaml

Finish Instalasi

sudo nextcloud.manual-install admin 123456
nextcloud user    admin
nextcloud passwrd 123456


Setup Trusted Domain

Beberapa perintah

sudo nextcloud.occ config:system:get trusted_domains

Jika perlu di tambahkan

sudo nextcloud.occ config:system:set trusted_domains 1 --value=example.com
sudo nextcloud.occ config:system:set trusted_domains 1 --value=192.168.0.*

Aktifkan SSL

Menggunakan LetsCrypt

sudo ufw allow 80,443/tcp
sudo nextcloud.enable-https lets-encrypt

Menggunakan Self-Signed

sudo nextcloud.enable-https self-signed
sudo ufw allow 80,443/tcp

Referensi