forked from SciQLop/speasy_proxy
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathproduction.ini
More file actions
80 lines (63 loc) · 1.56 KB
/
production.ini
File metadata and controls
80 lines (63 loc) · 1.56 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
###
# app configuration
# https://docs.pylonsproject.org/projects/pyramid/en/latest/narr/environment.html
###
[app:main]
use = egg:speasy_proxy
pyramid.reload_templates = false
pyramid.debug_authorization = false
pyramid.debug_notfound = false
pyramid.debug_routematch = false
pyramid.default_locale_name = en
pyramid.includes =
pyramid_openapi3
filter-with = proxy-prefix
jinja2.filters =
route_url = pyramid_jinja2.filters:route_url_filter
###
# wsgi server configuration
###
[filter:proxy-prefix]
use = egg:PasteDeploy#prefix
prefix = /cache
[server:main]
use = egg:waitress#main
listen = *:6543
threads = 64
connection_limit = 128
backlog = 65536
outbuf_overflow = 16777216
asyncore_use_poll = True
trusted_proxy = 127.0.0.1
trusted_proxy_count = 1
trusted_proxy_headers = x-forwarded-for x-forwarded-host x-forwarded-proto x-forwarded-port
clear_untrusted_proxy_headers = yes
###
# logging configuration
# https://docs.pylonsproject.org/projects/pyramid/en/latest/narr/logging.html
###
[loggers]
keys = root, speasy_proxy
[handlers]
keys = console, filelog
[formatters]
keys = generic
[logger_root]
level = WARN
handlers = console
[logger_speasy_proxy]
level = DEBUG
handlers = console, filelog
qualname = speasy_proxy
[handler_console]
class = StreamHandler
args = (sys.stderr,)
level = NOTSET
formatter = generic
[handler_filelog]
class = logging.handlers.TimedRotatingFileHandler
args = ('/log/speasy/speasy.log','W0',1,10)
level = DEBUG
formatter = generic
[formatter_generic]
format = %(asctime)s %(levelname)-5.5s [%(name)s:%(lineno)s][%(threadName)s] %(message)s