##// END OF EJS Templates
ini: add comments
ergo -
Show More
@@ -1,182 +1,183 b''
1 1 [app:appenlight]
2 2 use = egg:appenlight
3 3 reload_templates = false
4 4 debug_authorization = false
5 5 debug_notfound = false
6 6 debug_routematch = false
7 7 debug_templates = false
8 8 default_locale_name = en
9 9 sqlalchemy.url = {{ appenlight_dbstring }}
10 10 sqlalchemy.pool_size = 10
11 11 sqlalchemy.max_overflow = 50
12 12 sqlalchemy.echo = false
13 13 jinja2.directories = appenlight:templates
14 14 jinja2.filters = nl2br = appenlight.lib.jinja2_filters.nl2br
15 15
16 16 appenlight.disable_registration = false
17 17
18 18 #includes
19 19 appenlight.includes =
20 20
21 21 #redis
22 22 redis.url = redis://localhost:6379/0
23 23 redis.redlock.url = redis://localhost:6379/3
24 24
25 25 #elasticsearch
26 26 elasticsearch.nodes = http://127.0.0.1:9200
27 27
28 28 #dirs
29 29 webassets.dir = %(here)s/webassets/
30 30
31 31 # encryption
32 32 encryption_secret = {{appenlight_encryption_secret}}
33 33
34 34 #authtkt
35 35 # uncomment if you use SSL
36 36 # authtkt.secure = true
37 37 authtkt.secret = {{appenlight_authtkt_secret}}
38 38 # session settings
39 39 redis.sessions.secret = {{appenlight_redis_session_secret}}
40 40 redis.sessions.timeout = 86400
41 41
42 42 # session cookie settings
43 43 redis.sessions.cookie_name = appenlight
44 44 redis.sessions.cookie_max_age = 2592000
45 45 redis.sessions.cookie_path = /
46 46 redis.sessions.cookie_domain =
47 47 # uncomment if you use SSL
48 48 redis.sessions.cookie_secure = True
49 49 redis.sessions.cookie_httponly = True
50 50 redis.sessions.cookie_on_exception = True
51 51 redis.sessions.prefix = appenlight:session:
52 52
53 53 #mailing
54 54 mailing.app_url = https://{{appenlight_domain}}
55 55 mailing.from_name = AppEnlight
56 56 mailing.from_email = no-reply@{{appenlight_domain}}
57 57
58 58 ###
59 59 # Authomatic configuration
60 60 ###
61 61
62 62 authomatic.secret =
63 63 authomatic.pr.facebook.app_id =
64 64 authomatic.pr.facebook.secret =
65 65 authomatic.pr.twitter.key =
66 66 authomatic.pr.twitter.secret =
67 67 authomatic.pr.google.key =
68 68 authomatic.pr.google.secret =
69 69 authomatic.pr.github.key =
70 70 authomatic.pr.github.secret =
71 71 authomatic.pr.github.scope =
72 72 authomatic.pr.bitbucket.key =
73 73 authomatic.pr.bitbucket.secret =
74 74
75 75 #ziggurat
76 76 ziggurat_foundations.model_locations.User = appenlight.models.user:User
77 77 ziggurat_foundations.sign_in.username_key = sign_in_user_name
78 78 ziggurat_foundations.sign_in.password_key = sign_in_user_password
79 79 ziggurat_foundations.sign_in.came_from_key = came_from
80 80
81 81 #cometd
82 82 cometd.server = http://127.0.0.1:8088
83 83 cometd.secret = secret
84 # change to # ws:// for development
84 85 cometd.ws_url = wss://{{appenlight_domain}}/channelstream
85 86
86 87 # for celery
87 88 appenlight.api_key =
88 89 appenlight.transport_config =
89 90 appenlight.public_api_key =
90 91
91 92 # celery
92 93 celery.broker_type = redis
93 94 celery.broker_url = redis://localhost:6379/3
94 95 celery.concurrency = 2
95 96 celery.timezone = UTC
96 97
97 98 # tasks
98 99
99 100 # how often run alerting tasks (60s default)
100 101 tasks.notifications_reports.interval = 60
101 102
102 103 [filter:paste_prefix]
103 104 use = egg:PasteDeploy#prefix
104 105
105 106
106 107 [filter:appenlight_client]
107 108 use = egg:appenlight_client
108 109 appenlight.api_key =
109 110
110 111 # appenlight.transport_config = http://127.0.0.1:6543?threaded=1&timeout=5&verify=0
111 112 # by default uses api.appenlight.com server
112 113 appenlight.transport_config =
113 114 appenlight.report_local_vars = true
114 115 appenlight.report_404 = true
115 116 appenlight.timing.dbapi2_psycopg2 = 0.3
116 117
117 118
118 119
119 120 [pipeline:main]
120 121 pipeline = paste_prefix
121 122 appenlight_client
122 123 appenlight
123 124
124 125
125 126
126 127 [server:main]
127 128 use = egg:gunicorn#main
128 129 host = 0.0.0.0:6543, unix:/tmp/appenlight.sock
129 130 workers = 2
130 131 timeout = 90
131 132 max_requests = 10000
132 133
133 134 [server:api]
134 135 use = egg:gunicorn#main
135 136 host = 0.0.0.0:6553, unix:/tmp/api.appenlight.sock
136 137 workers = 2
137 138 max_requests = 10000
138 139
139 140
140 141 # Begin logging configuration
141 142
142 143 [loggers]
143 144 keys = root, appenlight, sqlalchemy
144 145
145 146 [handlers]
146 147 keys = console
147 148
148 149 [formatters]
149 150 keys = generic, json
150 151
151 152 [logger_root]
152 153 level = WARN
153 154 handlers = console
154 155
155 156 [logger_appenlight]
156 157 level = WARN
157 158 handlers =
158 159 qualname = appenlight
159 160
160 161 [logger_sqlalchemy]
161 162 level = WARN
162 163 handlers =
163 164 qualname = sqlalchemy.engine
164 165 # "level = INFO" logs SQL queries.
165 166 # "level = DEBUG" logs SQL queries and results.
166 167 # "level = WARN" logs neither. (Recommended for production systems.)
167 168
168 169 [handler_console]
169 170 class = StreamHandler
170 171 args = (sys.stderr,)
171 172 level = NOTSET
172 173 formatter = json
173 174
174 175 [formatter_generic]
175 176 format = %(asctime)s %(levelname)-5.5s [%(name)s][%(threadName)s] %(message)s
176 177
177 178 # json string will land as "message" key of format string
178 179 [formatter_json]
179 180 class=appenlight.lib.logging.JSONFormatter
180 181 format = %(asctime)s %(levelname)-5.5s [%(name)s:%(lineno)s][%(threadName)s] %(message)s
181 182
182 183 # End logging configuration
General Comments 4
Under Review
author

Auto status change to "Under Review"

Under Review
author

Auto status change to "Under Review"

You need to be logged in to leave comments. Login now