fixing proxy settings with nginx