-
Notifications
You must be signed in to change notification settings - Fork 0
/
production.ini
102 lines (81 loc) · 2.51 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
###
# app configuration
# http://docs.pylonsproject.org/projects/pyramid/en/1.6-branch/narr/environment.html
###
[app:app]
use = egg:github-app-geo-project
filter-with = proxy-prefix
sqlalchemy.url = %(SQLALCHEMY_URL)s
sqlalchemy.pool_recycle = %(SQLALCHEMY_POOL_RECYCLE)s
sqlalchemy.pool_size = %(SQLALCHEMY_POOL_SIZE)s
sqlalchemy.max_overflow = %(SQLALCHEMY_MAX_OVERFLOW)s
sqlalchemy-slave.url = %(SQLALCHEMY_SLAVE_URL)s
sqlalchemy-slave.pool_recycle = %(SQLALCHEMY_SLAVE_POOL_RECYCLE)s
sqlalchemy-slave.pool_size = %(SQLALCHEMY_SLAVE_POOL_SIZE)s
sqlalchemy-slave.max_overflow = %(SQLALCHEMY_SLAVE_MAX_OVERFLOW)s
c2c.sql_request_id = True
c2c.requests_default_timeout = 30
c2c.base_path = /c2c
service-url = http://localhost:8080/
applications =
test
application.test.github_app_id = %(GHCI_TEST_GITHUB_APP_ID)s
application.test.github_app_private_key = %(GHCI_TEST_GITHUB_APP_PRIVATE_KEY)s
application.test.github_app_url = %(GHCI_TEST_GITHUB_APP_URL)s
application.test.title = Main application
application.test.description = This is the main application
application.test.modules =
test
[pipeline:main]
pipeline = egg:c2cwsgiutils#client_info egg:c2cwsgiutils#sentry app
[filter:proxy-prefix]
use = egg:PasteDeploy#prefix
prefix = %(VISIBLE_ENTRY_POINT)s
[server:main]
use = egg:waitress#main
listen = *:8080
###
# logging configuration
# http://docs.pylonsproject.org/projects/pyramid/en/1.6-branch/narr/logging.html
###
[loggers]
keys = root, gunicorn, sqlalchemy, c2cwsgiutils, github_app_geo_project
[handlers]
keys = console, json
[formatters]
keys = generic
[logger_root]
level = %(OTHER_LOG_LEVEL)s
handlers = %(LOG_TYPE)s
[logger_github_app_geo_project]
level = %(LOG_LEVEL)s
handlers =
qualname = github_app_geo_project
[logger_gunicorn]
level = %(GUNICORN_LOG_LEVEL)s
handlers =
qualname = gunicorn.error
[logger_c2cwsgiutils]
level = %(C2CWSGIUTILS_LOG_LEVEL)s
handlers =
qualname = c2cwsgiutils
[logger_sqlalchemy]
level = %(SQL_LOG_LEVEL)s
handlers =
qualname = sqlalchemy.engine
# "level = INFO" logs SQL queries.
# "level = DEBUG" logs SQL queries and results.
# "level = WARN" logs neither. (Recommended for production systems.)
[handler_console]
class = StreamHandler
kwargs = {'stream': 'ext://sys.stdout'}
level = NOTSET
formatter = generic
[handler_json]
class = c2cwsgiutils.pyramid_logging.JsonLogHandler
kwargs = {'stream': 'ext://sys.stdout'}
level = NOTSET
[formatter_generic]
format = %(levelname)-5.5s %(pathname)s:%(lineno)d %(funcName)s() %(message)s
datefmt = [%Y-%m-%d %H:%M:%S %z]
class = logging.Formatter