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

Moreover, I found that after users log in, they are automatically redirected to https://domain/latest, and the default port 3443 is not added, causing it to fail to load. At this point, you must manually add https://domain:3443/latest.