forked from vsilent/Vision
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathconfig.py.dist
More file actions
87 lines (68 loc) · 2.22 KB
/
config.py.dist
File metadata and controls
87 lines (68 loc) · 2.22 KB
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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
""" Main configuration file """
from unipath import Path
import os
APP_NAME = 'Vision Diagnostic'
HOST = 'visiondiagnostic.org'
DEBUG = True
LOG_EMAIL = True
CACHE_TIMEOUT = 300
ROOT_DIR = Path(__file__).ancestor(1)
HOME_DIR = ROOT_DIR.parent
TMP_DIR = '/tmp'
UPLOAD_FOLDER = ROOT_DIR + '/var/uploads/'
#max upload 6 Mb
MAX_CONTENT_LENGTH = 6 * 1024 * 1024
TESTING = False
ADMINS = frozenset(['vasili.pascal@gmail.com'])
SECURITY_PASSWORD_SALT = 'SomethingSaltyYouCanNotGuesss'
SECRET_KEY = '&)\xfe\x8a\xee;\x0c\xb1\xbe\xe5\x94Z\xc3Ejs*\xe8\xfe\x13LS\x97\xd0\x81\x13\x18\xc0m\xcd;,\xc8\xb2r\xcfIY\xce\xb4\xfbx\x81t\xd5\x9f\x1dk\r\x9b'
SECURITY_RECOVERABLE = True
SECURITY_RESET_URL = '/users/forgot-password'
SECURITY_PASSWORD_HASH = 'pbkdf2_sha256'
SECURITY_DB_ENCRYPT = 'v4uPPqe7wuerWofETwQcmI7AYEGGoJ4K'
SQLALCHEMY_DATABASE_URI = "postgresql://vision:pass@localhost/vision"
DATABASE_CONNECT_OPTIONS = {}
CSRF_ENABLED = True
CSRF_SESSION_KEY = "somethingimpossibletoguesshere"
NOREPLY_EMAIL = 'noreply@visiondiagnostic.org'
SUPPORT_EMAIL = 'support@visiondiagnostic.org'
SECURITY_EMAIL_SENDER = 'noreply@visiondiagnostic.org'
SEND_EMAILS = False
SEND_EMAILS = os.environ.get('SEND_EMAILS', False)
MAIL_SERVER = 'smtp.gmail.com'
MAIL_PORT = 465
MAIL_USERNAME = ''
MAIL_PASSWORD = ''
MAIL_USE_TLS = False
MAIL_USE_SSL = True
RECAPTCHA_PUBLIC_KEY = ''
LANGUAGES = {
'en': 'English',
'fr': 'French',
'es': 'Español'
}
BABEL_DEFAULT_LOCALE = 'en'
BLOGGING_URL_PREFIX = "/content"
BLOGGING_DISQUS_SITENAME = 'visiondiagnostic'
BLOGGING_SITEURL = HOST
BLOGGING_SITENAME = APP_NAME
BLOGGING_PERMISSIONS = True
SENTRY_DSN = ''
REDIS = {
'CACHE_TYPE': 'redis',
'CACHE_KEY_PREFIX': 'flcache',
'CACHE_REDIS_HOST': 'cache',
'CACHE_REDIS_PORT': '6379',
'CACHE_REDIS_PASSWORD': 'redis',
'CACHE_REDIS_URL': 'redis://:redis$@localhost:6379'
}
CELERY_BACKEND = REDIS['CACHE_REDIS_URL']
CELERY_BROKER_URL = REDIS['CACHE_REDIS_URL']
# docker local use
EQUIPMENT_REPORT_DIR = "/app/output/"
EQUIPMENT_REPORT_URL = 'http://vision_nginx_1/admin/#/equipment_report/'
# production
#EQUIPMENT_REPORT_URL = 'http://visiondiagnostic.org/admin/#/equipment_report/'
#EQUIPMENT_REPORT_DIR = "./output/"