-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy pathconfig.py
31 lines (23 loc) · 980 Bytes
/
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
24
25
26
27
28
29
30
31
import os
# App's host and port
APP_IP_ADDRESS = "192.168.1.134" # Put your websocket endpoint here
APP_PORT = os.environ.get('PORT', 5000)
# Port in which websocket client should listen
# Usually same as APP_PORT unless some other
# port forwarding is set up (for ex. if you're using heroku)
PUBLIC_LISTEN_PORT = APP_PORT
PUBSUB_CLIENT_TYPE = 'redis' # only redis supported now
DB_CLIENT_TYPE = 'redis' # only redis supported now
REDIS_URL = os.environ.get('REDISCLOUD_URL', 'redis://localhost:6379')
# Full path of "collabdraw" directory
ROOT_DIR = "/".join(os.path.realpath(__file__).split('/')[:-1])
RESOURCE_DIR = os.path.join(ROOT_DIR, 'resource')
HTML_ROOT = os.path.join(RESOURCE_DIR, 'html')
# Hash salt for storing password in database
HASH_SALT = "bollacboard"
# Enable SSL/TLS
ENABLE_SSL = False
SERVER_CERT = os.path.join(os.getcwd(), "server.crt")
SERVER_KEY = os.path.join(os.getcwd(), "server.key")
# Demo mode disables login requirement
DEMO_MODE = True