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