Nextcloud VM behind npm

,

Personally, I would probably not spend too much time trying to adapt that prebuilt VM to this use case.

If it were me, I would rather deploy a clean Ubuntu VM and install Nextcloud AIO from scratch. In the long run, that is usually simpler, cleaner, and easier to troubleshoot.

The main issue with prebuilt appliances is that you inherit a lot of decisions you did not make yourself. In your case, you are already fighting the way that VM handles HTTPS internally, instead of just building the setup exactly the way you want it from the beginning.

A few reasons why I would prefer a clean VM:

  • that image is still based on Ubuntu 22.04, while for a new deployment I would rather start with 24.04

  • you do not really know what filesystem and storage layout were chosen there

  • for example, I personally prefer XFS, especially for working with larger files

  • you can also define your own swap during setup; in my case, an 8 GB swap file was definitely a good choice

  • same with Docker: with a prebuilt VM, you do not fully control what exactly is installed and how it is configured, and that can later create unnecessary complications

So from my perspective, it is often easier and also more time-efficient to do a fresh install where you know exactly what you have, instead of trying to reverse-engineer a preconfigured appliance and then chasing side effects.

If your goal is to run Nextcloud behind Nginx Proxy Manager, I would strongly lean toward a clean VM + Nextcloud AIO deployment. You can take inspiration from my guide here, where I documented a working Proxmox + NPM + Nextcloud AIO setup:

So in short:
for a fresh deployment, I think a clean install is the more transparent and future-proof route than trying to make the appliance behave differently from how it was originally built.