fix proxy uri_for when running frontend under https