I installed the Nextcloud snap package on Ubuntu 20.04 LTS.
I did by running:
sudo snap install nextcloud
Then adding a user and password:
sudo nextcloud.manual-install user password
I added my own custom subdomain by running:
sudo nextcloud.occ config:system:set trusted_domains 1 --value=sub.example.com
Then I obtain an ssl certificate using Letsencrypt:
sudo ufw allow 80,443/tcp
sudo nextcloud.enable-https lets-encrypt
I can now access it via subdomain, but I would like to access it via local network, via the server’s local IP address and port.
I tried making it listen to 5050 port by running:
sudo snap set nextcloud ports.http=5050
However, if I try accessing 192.168.1.50:5050 the browser shows NET::ERR_CERT_COMMON_NAME_INVALID
I also tried adding 192.168.1.50:5050 to the trusted domains.
How can I make the Nextcloud server accessible from 192.168.1.50:5050?