-
Notifications
You must be signed in to change notification settings - Fork 5
/
Config.py
47 lines (42 loc) · 1.26 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
class Config:
"""
Base Configurations
"""
APP_HOST="" #Defaults to 127.0.0.1 For Dev instance
APP_PORT= "" #Numerical value Defaults to 5000 For Dev instance
BASE_URL_API="" #Inactive
DEBUG=False #Set False for production. Enables debug mode for python and vue
CORS_WHITELIST=['*'] #List of allowed cross-origin-request domains
"""
Static Files Configuration
"""
STATIC_FOLDER="./static" #Folder for static assets files sucha as images , css and storage files
TEMPLATE_FOLDER="./templates/jinjaTemplate" #Folder For index.html file
HOME_PAGE="pages/main.html" #Landing Page
"""
Database Configuration
"""
DB_HOST="localhost"
DB_NAME="test"
DB_USERNAME="root"
DB_PASSWORD=""
"""
Log Configuration
"""
LOG_FILE_PATH="logs/"
LOG_FILE_NAME="app.log"
#LOG_LEVEL = INFO/DEBUG/WARNING
LOGGING_LEVEL="" # Inactive
#LOGGING_TYPE = FILE/DB/ALL
LOGGING_TYPE="" # Inactive
"""
SVG Configuration
"""
RNG_SCHEMA_FILE = "svg_schema/svg_12_ps.rnc"
STORAGE_DIR = STATIC_FOLDER+"/storage/"
"""
FILE UPLOAD SETTINGS
"""
ALLOWED_EXTENSIONS = {'svg', 'pem'}
STORAGE_SVG_DIR = STORAGE_DIR+"svgs/"
STORAGE_CERT_DIR = STORAGE_DIR+"certificates/"