From 47c52be50bb21ca524a9d936b856f8683b7fdf31 Mon Sep 17 00:00:00 2001 From: Cracker Date: Mon, 11 Feb 2019 13:16:21 +0100 Subject: [PATCH] Update README.md --- README.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 9adf526..f8e5576 100644 --- a/README.md +++ b/README.md @@ -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. Without docker: `node server.js --accesstoken="mySecToken"` With docker: `docker run -d -e accesstoken="mySecToken" -p 8080:8080 rofl256/whiteboard` +Then set the same token on the client side as well. + Client (With and without docker): `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 ___ \ No newline at end of file +___ MIT License ___