You don’t need to change the openHAB2 ports that are used by default (8080 for http, 8443 for https) when using a reverse proxy like nginx or apache.
The proxy is running on port 80.
The clients connect to the proxy on 80 and the proxy connects to OH2 on 8080.
Check the link on Benjy’s post on how to set up a reverse proxy:
If you want to use the upcoming Google’s stuff, you need to switch openHAB2 to listen to port 80 natively (no use of proxy).
This is more difficult since: