-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.py
23 lines (23 loc) · 1.02 KB
/
config.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
use_ssl=False # use to encrypt webserver and websocket
ssl_key=None # key file path
ssl_cert=None # cert file path
port=80 # websocket port
smtp_port = 25 # email port
smtp_host = "localhost" # email host
smtp_user = "no-reply@localhost" # email user that user sees that emails them
domain="localhost" # used to point to webserver in emails
webserver_port=4441 # webserver port
path_to_key=".db.k" # database encryption key
passwordsalt = "!@#$%^&*()_++_)(*&^%$#@!1234567890-=yguujop;l;k;kllkjftrtwercgvbnm,m.,lklkhhg#$%^&&*&*^^$$%##@$!$#^&O(P)_++_" # for encrypting passwords
dbname="db.encrypted" # file for the encrypted json
setup_db=True # set this to False after first run
allowed_tags = ["a", "li", "ul", "img", "em", "code", "b", "u", "i", "p"] # allowed html tags
allowed_attrs = {
"*": ["style", "src", "align", "height", "width", "href", "target", "alt"] # allowed attributes
}
if use_ssl:
protocol = "https"
websocket_protocol = "wss"
else:
protocol = "http"
websocket_protocol = "ws"