How do I set CBAUTH_REVRPC_URL?

No it’s not invalid. The recommended way to create an index is using GSI. You will need to have started both cbq-engine (Query) and GSI (Secondary index) in order to create indexes and run N1QL queries.