From 88eb884a3ea721651bc46c8b8acba82b7416c834 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20Sch=C3=A4fer?= Date: Sat, 29 Feb 2020 12:39:41 +0100 Subject: [PATCH] Add example configuration --- web_config.example.py | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 web_config.example.py diff --git a/web_config.example.py b/web_config.example.py new file mode 100644 index 0000000..756c284 --- /dev/null +++ b/web_config.example.py @@ -0,0 +1,11 @@ +import secrets + +# NOTE: change this to a constant, but secret value. +# if not constant: +# - sessions will be lost on each server restart +# if not secret: +# - users may be able to forge sessions +SECRET_KEY = secrets.token_urlsafe(nbytes=32) + +# URL (without trailing /) of the prosody HTTP server. +PROSODY_ENDPOINT = "http://localhost:5280"