-
Notifications
You must be signed in to change notification settings - Fork 38
/
config.py
50 lines (38 loc) · 1.44 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
48
49
50
#!/usr/bin/python
#################################################
#
# Do not modify the contents of this file
# Any settings that can be modified by the user
# can be found in ./instance/settings.py
#
#################################################
import os
basedir = os.path.abspath(os.path.dirname(__file__))
SQLALCHEMY_DATABASE_URI = 'sqlite:///' + os.path.join(basedir, 'app.db')
SQLALCHEMY_MIGRATE_REPO = os.path.join(basedir, 'db_repository')
SQLALCHEMY_TRACK_MODIFICATIONS = False
WTF_CSRF_ENABLED = True
# Redis setup
# Redis is used for temporarily storing hashed user credentials
# locally on the server. These do not need to be changed
# unless you want to access a remote Redis server
# -Using a remote Redis server is not tested nor currently supported
DB_HOST = 'localhost'
DB_PORT = 6379
DB_NO = 0
# Logging settings
# LOGFILE is currently not used
# SYSLOGFILE is the location where syslog type logs are stored,
# for tracking and troubleshooting purposes
LOGFILE = os.path.join(basedir, 'app/log/access.log')
SYSLOGFILE = os.path.join(basedir, 'app/log/syslog.log')
# Settings file location
SETTINGSFILE = os.path.join(basedir, 'instance/settings.py')
# Bootstrap configuration
BOOTSTRAP_SERVE_LOCAL = True
# Global SSH new connection timeout
SSH_TIMEOUT = 10
# GitHub Master branch config file location
GH_MASTER_BRANCH_URL = 'https://raw.githubusercontent.com/v1tal3/netconfig/master/config.py'
# Current version
VERSION = '1.3.6 (beta)'