configure the rails proxy correctly