-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathproduction.ini
148 lines (120 loc) · 3.2 KB
/
production.ini
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
142
143
144
145
146
147
148
###
# app configuration
# http://docs.pylonsproject.org/projects/pyramid/en/latest/narr/environment.html
###
[app:wsgiapp]
use = egg:SGDBackend#main
pyramid.reload_templates = false
#pyramid.debug_authorization = false
#pyramid.debug_notfound = false
#pyramid.debug_routematch = false
pyramid.debug_all = true
pyramid.debug_routematch = true
pyramid.default_locale_name = en
pyramid.includes = pyramid_redis_sessions pyramid_jinja2 pyramid_webpack
jinja2.extensions = pyramid_webpack.jinja2ext:WebpackExtension
jinja2.directories = ../templates
webpack.debug = False
# Directory containing the webpack bundles. Relative to your package root.
webpack.bundle_dir = build/
# File containing the webpack stats. Relative to your package root.
webpack.stats_file = build/stats.json
# session settings
redis.sessions.secret = my_session_secret_for_development_only
redis.sessions.timeout = 28800
# session cookie settings
redis.sessions.cookie_name = session
redis.sessions.cookie_max_age = 28800
redis.sessions.cookie_path = /
redis.sessions.cookie_domain =
#redis.sessions.cookie_secure = True
redis.sessions.cookie_httponly = False
redis.sessions.cookie_on_exception = True
redis.sessions.host = redis-primary.yeastgenome.org
redis.sessions.port = 6379
redis.sessions.charset = utf-8
#jinja2.directories = ../templates
elasticsearch.doc_type = searchable_item
elasticsearch.variant_viewer_index = sequence_objects
###
# wsgi server configuration
###
[server:main]
use = egg:waitress#main
host = 0.0.0.0
port = 6543
backlog = 8192
connection_limit = 4096
threads = 64
asyncore_use_poll = True
###
# logging configuration
# http://docs.pylonsproject.org/projects/pyramid/en/latest/narr/logging.html
###
[loggers]
keys = root, wsgiapp, sqlalchemy.engine.base.Engine , curation, elasticsearchqueries
[handlers]
keys = console, filelog , curationfilelog, sqllog ,eslog, trafficlog
[formatters]
keys = generic
[logger_root]
level = DEBUG
handlers = console, filelog
[logger_wsgiapp]
level = INFO
handlers = trafficlog
qualname = wsgi
propagate = 0
[logger_sqlalchemy.engine.base.Engine]
level = WARNING
handlers = sqllog
qualname = sqlalchemy.engine.base.Engine
propagate = 0
[logger_curation]
level = INFO
handlers = curationfilelog
qualname = curation
propagate = 0
[logger_elasticsearchqueries]
level = INFO
handlers = eslog
qualname = elasticsearch
propagate = 0
[handler_console]
class = StreamHandler
args = (sys.stderr,)
level = INFO
formatter = generic
[handler_filelog]
class = FileHandler
args = ('/data/www/logs/backend.log','a')
level = INFO
formatter = generic
[handler_curationfilelog]
class = FileHandler
args = ('/data/www/logs/curation.log','a')
level = INFO
formatter = generic
[handler_sqllog]
class = FileHandler
args = ('/data/www/logs/sql.log','a')
level = INFO
formatter = generic
[handler_eslog]
class = FileHandler
args = ('/data/www/logs/es.log','a')
level = INFO
formatter = generic
[handler_trafficlog]
class = FileHandler
args = ('/data/www/logs/traffic.log','a')
level = INFO
formatter =
[formatter_generic]
format = %(asctime)s %(levelname)-5.5s [%(name)s][%(threadName)s] %(message)s
[filter:translogger]
use = egg:Paste#translogger
setup_console_handler = False
[pipeline:main]
pipeline = translogger
wsgiapp