Make nginx configuration generic