Setup
Nexus comes with a query-parameter based authentication middleware. It is disabled by default. To enable it, you need to set therpcAuthKey config in the Nexus configuration. Alternatively, you can set the NEXUS_RPC_AUTH_KEY environment variable.
Usage
Once you set therpcAuthKey config, you can start the server and access it with the ?key query parameter.