Some time ago I installed Nextcloud as a snap on an Ubuntu server. I am currently running version 19.0.1 as a snap on an Ubuntu Server 20.04 LTS and can access the instance from the Internet via port 55055.
However, I also want to create a Let’s Encrypt certificate and that gives me a headache. Unfortunately, I cannot run the instance on the standard HTTPS port because another web application is already running that absolutely needs the port.
I already had two ideas:
- Let’s Encrypt with DNS validation
- Reverse proxy
With the variant with the reverse proxy, I have to edit the config.php which is not possible in the snap variant after everything I have read.
Unfortunately I couldn’t get either of the two options to work with the snap installation. Does anyone of you know another option or a tutorial with which I can do that. After a long research, I got no further.