Skip to content

Commit

Permalink
Document the CLI option.
Browse files Browse the repository at this point in the history
  • Loading branch information
danielballan committed Oct 31, 2023
1 parent e6341f5 commit 981af13
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions docs/source/explanations/security.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,13 @@ client, a cookie will be set in your client and you won’t need to use the toke
again. It is valid indefinitely.

For horizontally-scaled deployments where you need multiple instances of the
server to share the same secret, you can set it via an environment variable like
so.
server to share the same secret, you can set it with a CLI option

```
tiled serve ... --api-key=YOUR_SECRET
```

or via an environment variable

```
TILED_SINGLE_USER_API_KEY=YOUR_SECRET tiled serve ...
Expand Down

0 comments on commit 981af13

Please sign in to comment.