You need a propper network setup, but I don’t know, what you want to achieve
- open to the internet behind a reverse proxy
- nat configured at your router
- locale only
You may take a look starting here:
https://help.nextcloud.com/t/menu-configuration-reference-for-backups-config-networking-security-system-tools-updates/126011#p-339475-letsencrypt-45
