Skip to content

Commit

Permalink
Tweak config to get better error message. (#509)
Browse files Browse the repository at this point in the history
* Tweak config to get better error message.

* Add note about secrets.
  • Loading branch information
danielballan authored Jul 11, 2023
1 parent 540a00a commit 5452453
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
16 changes: 16 additions & 0 deletions docs/source/how-to/docker.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,22 @@ It is best practice to use a specific tag instead of `latest`.
See the [list of tiled image versions on GitHub](https://github.com/bluesky/tiled/pkgs/container/tiled)
for tags.

```{note}
Some of the examples below set an environment variable
`TILED_SINGLE_USER_API_KEY` to `secret`, as a placeholder. For actual use, use
a difficult-to-guess secret. Two equally good ways to generate a secure
secret...
With ``openssl``:
openssl rand -hex 32
With ``python``:
python -c "import secrets; print(secrets.token_hex(32))"
```

## Example: A writable catalog

Expand Down
1 change: 0 additions & 1 deletion example_configs/single_catalog_single_user.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ authentication:
# The default is false. Set to true to enable any HTTP client that can
# connect to _read_. An API key is still required to write.
allow_anonymous_access: false
single_user_api_key: ${TILED_SINGLE_USER_API_KEY}
trees:
- path: /
tree: catalog
Expand Down

0 comments on commit 5452453

Please sign in to comment.