Associate a subdomain with Nextcloud

Hello, I have been using Mailinabox for almost 15 months, but I am not jumping to the 40x version. But I ask myself questions: for the Nextcloud part, can one associate a subdomain? This is it easy to set up?
Thanks in advance

You need to update. Older versions are not supported.

Nextcloud can be on any domain with some fancy DNS and HTML tricks. but in the end you will always end up needing a redirect back to I don’t think it’s worth it tbh