Add example configuration

This commit is contained in:
Jonas Schäfer
2020-02-29 12:39:41 +01:00
parent aade4c67fd
commit 88eb884a3e

11
web_config.example.py Normal file
View File

@@ -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"