-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.py
62 lines (46 loc) · 1.92 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
51
52
53
54
55
56
57
58
59
60
61
62
# Statement for enabling the development environment
ENV = "dev"
DEBUG = True
# Define the application directory
# import os
# BASE_DIR = os.path.abspath(os.path.dirname(__file__))
# 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
# Enable protection agains *Cross-site Request Forgery (CSRF)*
CSRF_ENABLED = True
# Use a secure, unique and absolutely secret key for
# signing the data.
# CSRF_SESSION_KEY = "YMNx&VZ<:85#=61_dUr\x0b*)vL"
WTF_CSRF_CHECK_DEFAULT = False
# Secret key for signing cookies
SECRET_KEY = "YMNx&VZ<:85#=61_dUr\x0b*)vL"
# SQLALCHEMY_DATABASE_URI = "sqlite:///./var/data.db"
SQLALCHEMY_DATABASE_URI = "postgresql://aurel:shift@localhost/clientapp"
SQLALCHEMY_TRACK_MODIFICATIONS = True
WEBPACKEXT_MANIFEST_PATH = "manifest.json"
SERVER_NAME = "localhost:5000"
SECURITY_LOGIN_USER_TEMPLATE = "security/login.jinja"
SECURITY_TRACKABLE = True
SECURITY_PASSWORD_HASH = "bcrypt"
SECURITY_PASSWORD_SALT = "YMNx&VZ<:85#=61_dUr\x0b*)vL"
SECURITY_POST_LOGIN_VIEW = "/dashboard"
SECURITY_REGISTERABLE = False
SECURITY_UNAUTHORIZED_VIEW = "/login"
DEBUG_TB_INTERCEPT_REDIRECTS = False
FTP_BASE_DIR = "/media/aurel/main/projects/self/clientapp/tmp"
FTP_PORT = 2121
FTP_HOST = "ftp://localhost"
# FLASK_ADMIN_SWATCH= 'flaty'
SUPERVISOR_CONFIG_DIR = "./supervisor"
SUPERVISOR_USER_HOME = "{supervisor_path}/programs/{username}"
SUPERVISOR_PROGRAM_TEMPLATE_PATH = "./supervisor/subprogram_template.ini"
UWSGI_TEMPLATE_PATH = "./supervisor/uwsgi_template.ini"
FIREJAIL_PROFILE = "./supervisor/default.profile"
NGINX_CONF_TEMPLATE_PATH = "./supervisor/virtual_host_nginx.site.conf"
ABS_PATH_HOME_UWSGI = "/home/aurel" # should change on production
NGINX_SITE_CONF = "/var/www/nginx/sites-enabled"
NGINX_PID_FILE = "/run/nginx.pid"
NGINX_HUP_CHECK_FILE = "/tmp/.send_hup_to_nginx"