Nextcloud
December 24, 2019
10:57 AM
trusted domains
[file]:    1 => 'ltd.dlinkddns.com'
[link])
Generating self-signed signature for Nextcloud
2. Enable HTTPS
To install a Let's Encrypt SSL certificate, type:
$ sudo nextcloud.enable-https lets-encrypt
If you'd rather use a self-signed certificate, you can type:
$ sudo nextcloud.enable-https self-signed
/var/snap/nextcloud/common/nextcloud/data/luc/uploads
HTTP/HTTPS port configuration
By default, the snap will listen on port 80. If you enable HTTPS, it will listen on both 80 and 443, and HTTP traffic will be redirected to HTTPS. But perhaps you're putting the snap behind a proxy of some kind, in which case you probably want to change those ports.
If you'd like to change the HTTP port (say, to port 81), run:
$ sudo snap set nextcloud ports.http=81
To change the HTTPS port (say, to port 444), run:
$ sudo snap set nextcloud ports.https=444