-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathconfig.py
31 lines (26 loc) · 1.11 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
24
25
26
27
28
29
30
31
import os
# Custom IP and Port Config, needed for example in QR Code generation
IPADDR = '10.201.1.143' # QRCode IP
IFACE = '10.201.1.143' # Server Interface IP
PORT = 5000
SSL = False # https or not. You need to match the settings of your webserver
RECOGNITION = False # Use Recognition or not. If not you will have buttons to insert Score in gameController
SOUND = True # Sound output if you want
# Babel default settings
BABEL_DEFAULT_LOCALE = "en"
BABEL_DEFAULT_TIMEZONE = "UTC"
# Statement for enabling the development environment
DEBUG = True
TESTING = True
# Define the application directory
BASE_DIR = os.path.abspath(os.path.dirname(__file__))
# Define the database - we are working with
SQLALCHEMY_DATABASE_URI = 'sqlite:///' + os.path.join(BASE_DIR, 'app/mod_game/database.db')
SQLALCHEMY_TRACK_MODIFICATIONS = False
# Application threads. A common general assumption is
# using 2 per available processor cores - to handle
# incoming requests using one and performing background
# operations using the other.
THREADS_PER_PAGE = 2
# Secret Keys
SECRET_KEY = b'J\xd1\xd0:Y\xb3\xce\x04\xc7\xc0\x1f\xa2p\x88\xd9\x04'