add nginx and rails config files.