Setup nginx/apache web proxy in front of appium

How can I setup nginix/apache web proxy in front of appium to stop exposing my port?