Cara menggunakan nextcloud snap config php

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

Akses nama domain atau IP server yang dipakai pada konfigurasi virtual host Apache. Masukkan user admin nextcloud dan konfigurasi database.

Cara menggunakan nextcloud snap config php

Setelah instalasi selesai hasilnya seperti di bawah ini.

Cara menggunakan nextcloud snap config php

6. SSL (Opsional)

Selanjutnya kita bisa menambahkan SSL agar lebih aman.

Install yum-utils

1

2

yum -y install yum-utils

yum-config-manager --enable rhui-REGION-rhel-server-extras rhui-REGION-rhel-server-optional

Install certbot apache

1

yum -y install python2-certbot-apache

Lalu jalan certbot untuk generate SSL dengan membaca konfigurasi virtual host Apache

1

certbot --apache

Isian pertanyaan certbot

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

27

28

29

30

31

Enter email address (used for urgent renewal and security notices) (Enter 'c' to

cancel): alamat@email.com

Please read the Terms of Service at

https://letsencrypt.org/documents/LE-SA-v1.2-November-15-2017.pdf. You must

agree in order to register with the ACME server at

https://acme-v02.api.letsencrypt.org/directory

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

(A)gree/(C)ancel: A

 

Would you be willing to share your email address with the Electronic Frontier

Foundation, a founding partner of the Let's Encrypt project and the non-profit

organization that develops Certbot? We'd like to send you email about our work

encrypting the web, EFF news, campaigns, and ways to support digital freedom.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

(Y)es/(N)o: Y

 

Which names would you like to activate HTTPS for?

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

1: namadomain.com

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Select the appropriate numbers separated by commas and/or spaces, or leave input

blank to select all options shown (Enter 'c' to cancel): 1

 

Please choose whether or not to redirect HTTP traffic to HTTPS, removing HTTP access.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

1: No redirect - Make no further changes to the webserver configuration.

2: Redirect - Make all requests redirect to secure HTTPS access. Choose this for

new sites, or if you're confident your site works on HTTPS. You can undo this

change by editing your web server's configuration.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Select the appropriate number [1-2] then [enter] (press 'c' to cancel): 2

Akses kembali namadomain untuk menguji apakah sertifikat SSL sudah terpasang (HTTPS).

7. External Storage

Jika memiliki storage seperti Amazon S3, FTP/FTPS, SFTP, atau OpenStack Object Storage, kita dapat memasukkannya (attach/mount) ke Nextcloud. Caranya dengan mengaktifkan Apps Nextcloud dengan nama External Storages, kemudian pada menu Settings->Administration->External Storages konfigurasikan storage yang ingin dimount.