fix: do not overwrite `config.port` from URL, if it's already set
If URL was set to something like `http://example.com:8080`, and port was set to 4567, keep listening on port 4567 and keep linking through URL that was specified. This allows to listen on port 4567, while having NGINX (or any proxy) set to listen on port 8080 and route traffic to port 4567. So NodeBB can be "hidden" behind proxy while URL can still contain non-standard port, i.e., port different than 80 and 443.v1.18.x
parent
8686fbfa3f
commit
34096b73ef
Loading…
Reference in New Issue