-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsettings.py
101 lines (74 loc) · 2.32 KB
/
settings.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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
# ContWatch configuration settings file
# File lookup takes place in the following order:
# 1) ~/.config/contwatch/settings.py
# 2) project-root/settings.py
# ----| LOGGING |----
# Absolute or relative path to log file
# Relative path is relative to the project root.
# Default: "contwatch.log"
LOG_FILE = "contwatch.log"
# Maximum log file size in bytes
# Default: 51200
LOG_FILE_MAX_BYTES = 51200
# Number of maximum backup log files
# Default: 5
LOG_FILE_BACKUP_COUNT = 5
# Logging level
# For more information see: https://docs.python.org/3/library/logging.html#logging-levels
# Default: "DEBUG"
LOG_LEVEL = "DEBUG"
# ----| DATABASE |----
# Database type
# Currently available types: sqlite, mysql
# Default: "sqlite"
DB_TYPE = "sqlite"
# Absolute or relative path to database file
# Relative path is relative to the project root.
# Default: "database.sqlite"
DB_SQLITE_FILE = "database.sqlite"
# Database host address
# An empty string means localhost address.
# Default: ""
DB_HOST = ""
# Database user
# An empty string means the current user will be used.
# Default: ""
DB_USER = ""
# Database password
# Default: ""
DB_PASSWORD = ""
# Database name
# Default: "contwatch"
DB_DATABASE = "contwatch"
# Do not save incoming data to the database
# Default: False
DB_DATA_READONLY = False
# ----| WEB SERVER |----
# Enable or disable web server module.
# Default: True
WEB_SERVER = True
# Web server address
# Default: "0.0.0.0"
WEB_SERVER_ADDRESS = "0.0.0.0"
# Web server port
# Default: 80
WEB_SERVER_PORT = 80
# Enable debug mode for web server. Do not use it in a production deployment.
# Default: False
WEB_SERVER_DEBUG = False
# Specify which origins are allowed to connect to Flask-SocketIO server.
# This value is passed as it is to the `cors_allowed_origins` parameter of flask_socketio.SocketIO server.
# For more information search for `cors_allowed_origins` on https://flask-socketio.readthedocs.io/en/latest/api.html
# Default: "*"
WEB_SERVER_ORIGINS = "*"
# ----| CACHING | ----
# Caching interval in minutes
# Cache is stored in RAM.
# 0 means caching is disabled.
# Default: 10
CACHING_INTERVAL = 10
# Asynchronous caching
# Cache data will be refreshed asynchronously every CACHING_INTERVAL minutes.
# With async caching enabled you can get better response time on slower hardware.
# Default: False
CACHING_ASYNC = False