This commit is contained in:
raphael 2019-02-11 14:09:47 +01:00
commit df0a7dec80

View File

@ -36,14 +36,18 @@ Call your site with GET parameters to change the WhiteboardID or the Username
* username => The name witch is showing to others while drawing
## Security - AccessToken (Optional)
To prevent clients who might know or guess the base URL to use the Server for file uploads and stuff..., you can set an accesstoken at server start.
To prevent clients who might know or guess the base URL from abusing the server to upload files and stuff..., you can set an accesstoken at server start.
<b>Without docker:</b> `node server.js --accesstoken="mySecToken"`
<b>With docker:</b> `docker run -d -e accesstoken="mySecToken" -p 8080:8080 rofl256/whiteboard`
Then set the same token on the client side as well.
<b>Client (With and without docker):</b> `http://YOURIP:8080?accesstoken=mySecToken&whiteboardid=MYID&username=MYNAME`
Done!
## Things you may want to know
* Whiteboards are gone if you restart the Server, so keep that in mind (or save your whiteboard)
* You shoud be able to customize the layout without ever toutching the whiteboard.js (take a look at index.html & main.js)
@ -81,4 +85,4 @@ Upload both icons present at /doc/nextcloud_icons/ to your nextcloud at the "ext
___ MIT License ___
___ MIT License ___