Skip to content

Commit

Permalink
Merge pull request #121 from aserto-dev/fix/node-js-cert-env-var
Browse files Browse the repository at this point in the history
updated node.js sample docs
  • Loading branch information
ronenh authored Jul 8, 2024
2 parents 8c74346 + 79f7ab1 commit d7f4040
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions docs/getting-started/samples/node.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ yarn
```

## Set up an `.env` file
Copy the `.env.example` file to `.env` and update the `ASERTO_AUTHORIZER_CERT_PATH` to correspond to the path in which Topaz generated your certificates (by default this path will be `$HOME/.local/share/topaz/certs/grpc-ca.crt`, or `$HOME\AppData\Local\topaz\certs` on Windows).
Copy the `.env.example` file to `.env` and update the `ASERTO_GRPC_CA_CERT_PATH` to correspond to the path in which Topaz generated your certificates (by default this path will be `$HOME/.local/share/topaz/certs/grpc-ca.crt`, or `$HOME\AppData\Local\topaz\certs` on Windows).
`ASERTO_DIRECTORY_REJECT_UNAUTHORIZED=false` will let you connect to a local directory without passing the certificate.

```bash
Expand All @@ -32,9 +32,11 @@ AUDIENCE=citadel-app
ASERTO_POLICY_ROOT=todoApp
ASERTO_AUTHORIZER_SERVICE_URL=localhost:8282
ASERTO_AUTHORIZER_CERT_PATH=$HOME/.local/share/topaz/certs/grpc-ca.crt
ASERTO_DIRECTORY_SERVICE_URL=localhost:9292
ASERTO_DIRECTORY_REJECT_UNAUTHORIZED=false
# On Windows, change this to $HOMEPATH\AppData\Local\topaz\certs\grpc-ca.crt
ASERTO_GRPC_CA_CERT_PATH=${HOME}/.local/share/topaz/certs/grpc-ca.crt
```

## Start the server
Expand Down

0 comments on commit d7f4040

Please sign in to comment.