Reach nextcloud on a non 443/80 port

Hey guys,

So I just build myself a freenas server and I want to start using nextcloud.
So I got it all installed i na jail and working proper locally for the most part, but I can’t really figure out how to use this on a specific port.
I’m in a shared officespace and 433 and 8080 are already taken, but i’m on a seperate vlan and I had the IT guy open some ports for me to a few of my machines and i’m running crushftp on port 4443 for example by using mydomain.com:4443 and that works great for my uses.
However I can’t really figure out how to do this with nextcloud.
When setting up the database put it to localhost:5443 and I have an open port on 5443, so I was hoping i could just acces the UI by using mydomain.com:5443, but no luck.

Is there any way I can make this work?..

Cheers

Anyone?..

a bit googling (freenas nextcloud install) brought me to something like
edit /usr/local/etc/nginx/conf.d/nextcloud.conf
inside a jail.

in this video someone explains how to enbale https. you see in the nextcloud.conf file a statment listen 80; inside a server block. there is as well one for port 443. thats the place to change the ports nginx is using.

you mean this?