enhanced nginx config, and bug fixes in federated node script