What adjustments are needed when discourse uses a non-443 port?

I haven’t tried adding these in env yet

DISCOURSE_PORT: 3443
DISCOURSE_FORCE_HTTPS: true

Don’t know if it will be useful after adding

After changing the port, many images fail to load properly, for example https://mydomain/uploads/default/optimized/1X/_129430568242d1b7f853bb13ebea28b3f6af4e7_2_32x32.png fails to load
But when I manually change it to https://mydomain:3443/uploads/default/optimized/1X/_129430568242d1b7f853bb13ebea28b3f6af4e7_2_32x32.png it can load
But there are too many places where 3443 needs to be added. Is there a quick way to modify it? 443 is not availableI haven’t tried adding these in env yet