Difference between revisions of "NextCloud: Instalasi di Ubuntu 18.04"
Jump to navigation
Jump to search
Onnowpurbo (talk | contribs) |
Onnowpurbo (talk | contribs) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 28: | Line 28: | ||
− | == | + | ==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== | ==Referensi== | ||
* https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-nextcloud-on-ubuntu-18-04 | * https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-nextcloud-on-ubuntu-18-04 |
Latest revision as of 13:24, 6 May 2019
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