Enforce https easily

I am still looking for a simple solution to enforce HTTPS for NC. I have a solution that works, but I wonder if there is not anything easier, like being asked while installing Nextcloud or just setting it in the configs.

Nothing wizardly, but the correct method for enabling is as follows: