-
Notifications
You must be signed in to change notification settings - Fork 3
/
settings.example
141 lines (117 loc) · 3.58 KB
/
settings.example
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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
# encoding: utf-8
import os
SQLALCHEMY_DATABASE_URI = 'postgresql://demo:demo@db/meetings'
SQLALCHEMY_TRACK_MODIFICATIONS = False
SECRET_KEY = 'secret'
# Total upload size limit - if total size of all files used in registration
# exceeds this value the server returns a 413 Request Entity Too Large response
MAX_UPLOAD_SIZE = 10 * 1024 * 1024
# Single file size limit - used only in Javascript validation
MAX_FILE_SIZE = 1 * 1024 * 1024
# Name and title of the product
PRODUCT_TITLE = 'Meetings'
# Administator's email
ADMINISTRATOR_EMAIL = ''
# Supress sendding mails on localhost
MAIL_SUPPRESS_SEND = True
# Mail settings
MAIL_SERVER = 'localhost'
MAIL_PORT = 25
MAIL_USE_TLS = False
MAIL_USE_SSL = False
MAIL_USERNAME = None
MAIL_PASSWORD = None
# Mail used for sending reset tokens
MAIL_DEFAULT_SENDER = '[email protected]'
# Disable assets compilation
ASSETS_DEBUG = True
DEBUG = True
# Enable GOOGLE ANALYTICS
GOOGLE_ANALYTICS_KEY = ''
# Logos filenames; files should be located at project_dir/instance/files/logos/
PRODUCT_LOGO = 'badge_left_logo.png'
PRODUCT_SIDE_LOGO = 'badge_right_logo.png'
BADGE_BACK_LOGO = 'badge_back_logo.png'
# Domain name for correctly displaying registration URLs
DOMAIN_NAME = os.environ.get('DOMAIN_NAME', 'localhost')
# Choose a subset of the available languages: ['english', 'french', 'spanish']
# TRANSLATIONS = []
# Choose a subset of the available title choices if you don't need all of them:
# ['Mr', 'Ms', 'Dr', 'Prof']
# TITLE_CHOICES = []
# URL used by importer for participants photos
# PHOTOS_BASE_URL = ''
REDIS_URL = "redis://redis:6379/1"
# Custom names for countries not yet updated by Unicode Common Locale Repository
CUSTOMIZED_COUNTRIES = {
'KP': {
'en': u'Democratic People\u2019s Republic of Korea',
'es': u'Rep\u00FAblica Popular Democr\u00E1tica de Corea',
'fr': u' R\u00E9publique populaire d\u00E9mocratique de Cor\u00E9e'
},
'MK': {
'en': u'North Macedonia',
'es': u'Macedonia del Norte',
'fr': u'Macédoine du Nord'
},
'SZ': {
'en': u'Eswatini',
'es': u'Eswatini',
'fr': u'Eswatini'
},
'CV': {
'en': u'Cabo Verde',
'es': u'Cabo Verde',
'fr': u'Cabo Verde'
},
'MD': {
'en': u'Republic of Moldova',
'es': u'Rep\u00fablica de Moldova',
'fr': u'R\u00e9publique de Moldova'
},
'TZ': {
'en': u'United Republic of Tanzania',
'es': u'Rep\u00fablica Unida de Tanzan\u00eda',
'fr': u'R\u00e9publique-Unie de Tanzanie'
},
'SY': {
'en': u'Syrian Arab Republic',
'es': u'Rep\u00fablica \u00c1rabe Siria',
'fr': u'R\u00e9publique Arabe Syrienne'
}
}
SENTRY_DSN = ''
APP_VERSION = os.environ.get('APP_VERSION')
LOGGING = {
'version': 1,
'disable_existing_loggers': True,
'formatters': {
'console': {
'format': '[%(asctime)s][%(levelname)s] %(name)s '
'%(filename)s:%(funcName)s:%(lineno)d | %(message)s',
'datefmt': '%H:%M:%S',
},
},
'handlers': {
'console': {
'level': 'DEBUG',
'class': 'logging.StreamHandler',
'formatter': 'console'
},
},
'loggers': {
'mrt': {
'handlers': ['console'],
'level': 'DEBUG',
'propagate': False,
},
'sqlalchemy.engine': {
'handlers': ['console'],
'level': 'CRITICAL', # Set to INFO to debug queries.
},
'debug': {
'level': 'DEBUG',
'propagate': True,
},
}
}