dtu-compute / dtu-enote-stackedit

In-browser markdown editor
https://stackedit.io/
Other
2 stars 0 forks source link

Secret key in config file #5

Closed dtu-compute closed 8 years ago

dtu-compute commented 8 years ago

https://github.com/dtu-compute/stackedit/blob/devel/app/index.js#L13

looks like something we should have in a config file. Perhaps in /vol/config/stackedit.yaml?

Or is it just for signing things, so it can be generated during Docker build?

iainbryson commented 8 years ago

Fixes.

dtu-compute commented 8 years ago

Ok, so it just is a session key. Then let's generate it either at Docker build or at run time.

If by build, the perhaps?:

r=$(od -vAn -N16 -tx < /dev/urandom | tr -d " ")