Skip to content

Commit

Permalink
Add tip on secret generation to docs. Fixes #93.
Browse files Browse the repository at this point in the history
  • Loading branch information
dougthor42 committed May 1, 2019
1 parent f839bc2 commit 38e24e0
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Expand Up @@ -28,6 +28,8 @@
but it ensures that PKs cannot be resued. (#143)
+ The REST API for `DataPoint` has been implemented. (#122)
+ Example `docker-compose.yml` file now includes `depends_on`. (#99)
+ A tip on generating a secure secret has been added to the installation
docs. (#93)


## 0.5.0 (2019-02-28)
Expand Down
14 changes: 14 additions & 0 deletions docs/installation.rst
Expand Up @@ -63,6 +63,20 @@ following is needed:
SECRET_KEY = b"don't use the value written in this README file!"
DATABASE = "/data/internal.db"
.. tip::

You can generate a secure secret key from the shell like so:

.. code-block:: python
>>> import os
>>> import binascii
>>> binascii.hexlify(os.urandom(32))
b'<some string of hex [0-9a-f]>'
Which you can then copy into ``trendlines.cfg``'s ``SECRET_KEY`` field.
Don't forget the leading ``b``!

You should be all set to bring Docker Compose up:

.. code-block:: bash
Expand Down

0 comments on commit 38e24e0

Please sign in to comment.