Show More
@@ -1,262 +1,267 b'' | |||||
1 | ################################################################################ |
|
1 | ################################################################################ | |
2 | ################################################################################ |
|
2 | ################################################################################ | |
3 | # RhodeCode - Pylons environment configuration # |
|
3 | # RhodeCode - Pylons environment configuration # | |
4 | # # |
|
4 | # # | |
5 | # The %(here)s variable will be replaced with the parent directory of this file# |
|
5 | # The %(here)s variable will be replaced with the parent directory of this file# | |
6 | ################################################################################ |
|
6 | ################################################################################ | |
7 |
|
7 | |||
8 | [DEFAULT] |
|
8 | [DEFAULT] | |
9 | debug = true |
|
9 | debug = true | |
10 | pdebug = false |
|
10 | pdebug = false | |
11 | ################################################################################ |
|
11 | ################################################################################ | |
12 | ## Uncomment and replace with the address which should receive ## |
|
12 | ## Uncomment and replace with the address which should receive ## | |
13 | ## any error reports after application crash ## |
|
13 | ## any error reports after application crash ## | |
14 | ## Additionally those settings will be used by RhodeCode mailing system ## |
|
14 | ## Additionally those settings will be used by RhodeCode mailing system ## | |
15 | ################################################################################ |
|
15 | ################################################################################ | |
16 | #email_to = admin@localhost |
|
16 | #email_to = admin@localhost | |
17 | #error_email_from = paste_error@localhost |
|
17 | #error_email_from = paste_error@localhost | |
18 | #app_email_from = rhodecode-noreply@localhost |
|
18 | #app_email_from = rhodecode-noreply@localhost | |
19 | #error_message = |
|
19 | #error_message = | |
20 | #email_prefix = [RhodeCode] |
|
20 | #email_prefix = [RhodeCode] | |
21 |
|
21 | |||
22 | #smtp_server = mail.server.com |
|
22 | #smtp_server = mail.server.com | |
23 | #smtp_username = |
|
23 | #smtp_username = | |
24 | #smtp_password = |
|
24 | #smtp_password = | |
25 | #smtp_port = |
|
25 | #smtp_port = | |
26 | #smtp_use_tls = false |
|
26 | #smtp_use_tls = false | |
27 | #smtp_use_ssl = true |
|
27 | #smtp_use_ssl = true | |
28 | # Specify available auth parameters here (e.g. LOGIN PLAIN CRAM-MD5, etc.) |
|
28 | # Specify available auth parameters here (e.g. LOGIN PLAIN CRAM-MD5, etc.) | |
29 | #smtp_auth = |
|
29 | #smtp_auth = | |
30 |
|
30 | |||
31 | [server:main] |
|
31 | [server:main] | |
32 | ##nr of threads to spawn |
|
32 | ##nr of threads to spawn | |
33 | threadpool_workers = 5 |
|
33 | threadpool_workers = 5 | |
34 |
|
34 | |||
35 | ##max request before thread respawn |
|
35 | ##max request before thread respawn | |
36 |
threadpool_max_requests = |
|
36 | threadpool_max_requests = 10 | |
37 |
|
37 | |||
38 | ##option to use threads of process |
|
38 | ##option to use threads of process | |
39 | use_threadpool = true |
|
39 | use_threadpool = true | |
40 |
|
40 | |||
41 | use = egg:Paste#http |
|
41 | use = egg:Paste#http | |
42 | host = 0.0.0.0 |
|
42 | host = 0.0.0.0 | |
43 | port = 5000 |
|
43 | port = 5000 | |
44 |
|
44 | |||
45 | [app:main] |
|
45 | [app:main] | |
46 | use = egg:rhodecode |
|
46 | use = egg:rhodecode | |
47 | full_stack = true |
|
47 | full_stack = true | |
48 | static_files = true |
|
48 | static_files = true | |
49 | lang=en |
|
49 | lang=en | |
50 | cache_dir = %(here)s/data |
|
50 | cache_dir = %(here)s/data | |
51 | index_dir = %(here)s/data/index |
|
51 | index_dir = %(here)s/data/index | |
52 | app_instance_uuid = develop |
|
52 | app_instance_uuid = develop | |
53 | cut_off_limit = 256000 |
|
53 | cut_off_limit = 256000 | |
54 | force_https = false |
|
54 | force_https = false | |
55 | commit_parse_limit = 25 |
|
55 | commit_parse_limit = 25 | |
56 | use_gravatar = true |
|
56 | use_gravatar = true | |
57 | container_auth_enabled = false |
|
57 | container_auth_enabled = false | |
58 | proxypass_auth_enabled = false |
|
58 | proxypass_auth_enabled = false | |
59 |
|
59 | |||
60 | ## overwrite schema of clone url |
|
60 | ## overwrite schema of clone url | |
61 | # available vars: |
|
61 | # available vars: | |
62 | # scheme - http/https |
|
62 | # scheme - http/https | |
63 | # user - current user |
|
63 | # user - current user | |
64 | # pass - password |
|
64 | # pass - password | |
65 | # netloc - network location |
|
65 | # netloc - network location | |
66 | # path - usually repo_name |
|
66 | # path - usually repo_name | |
67 | # clone_uri = {scheme}://{user}{pass}{netloc}{path} |
|
67 | # clone_uri = {scheme}://{user}{pass}{netloc}{path} | |
68 |
|
68 | |||
69 | #################################### |
|
69 | #################################### | |
70 | ### CELERY CONFIG #### |
|
70 | ### CELERY CONFIG #### | |
71 | #################################### |
|
71 | #################################### | |
72 | use_celery = false |
|
72 | use_celery = false | |
73 | broker.host = localhost |
|
73 | broker.host = localhost | |
74 | broker.vhost = rabbitmqhost |
|
74 | broker.vhost = rabbitmqhost | |
75 | broker.port = 5672 |
|
75 | broker.port = 5672 | |
76 | broker.user = rabbitmq |
|
76 | broker.user = rabbitmq | |
77 | broker.password = qweqwe |
|
77 | broker.password = qweqwe | |
78 |
|
78 | |||
79 | celery.imports = rhodecode.lib.celerylib.tasks |
|
79 | celery.imports = rhodecode.lib.celerylib.tasks | |
80 |
|
80 | |||
81 | celery.result.backend = amqp |
|
81 | celery.result.backend = amqp | |
82 | celery.result.dburi = amqp:// |
|
82 | celery.result.dburi = amqp:// | |
83 | celery.result.serialier = json |
|
83 | celery.result.serialier = json | |
84 |
|
84 | |||
85 | #celery.send.task.error.emails = true |
|
85 | #celery.send.task.error.emails = true | |
86 | #celery.amqp.task.result.expires = 18000 |
|
86 | #celery.amqp.task.result.expires = 18000 | |
87 |
|
87 | |||
88 | celeryd.concurrency = 2 |
|
88 | celeryd.concurrency = 2 | |
89 | #celeryd.log.file = celeryd.log |
|
89 | #celeryd.log.file = celeryd.log | |
90 | celeryd.log.level = debug |
|
90 | celeryd.log.level = debug | |
91 | celeryd.max.tasks.per.child = 1 |
|
91 | celeryd.max.tasks.per.child = 1 | |
92 |
|
92 | |||
93 | #tasks will never be sent to the queue, but executed locally instead. |
|
93 | #tasks will never be sent to the queue, but executed locally instead. | |
94 | celery.always.eager = false |
|
94 | celery.always.eager = false | |
95 |
|
95 | |||
96 | #################################### |
|
96 | #################################### | |
97 | ### BEAKER CACHE #### |
|
97 | ### BEAKER CACHE #### | |
98 | #################################### |
|
98 | #################################### | |
99 | beaker.cache.data_dir=%(here)s/data/cache/data |
|
99 | beaker.cache.data_dir=%(here)s/data/cache/data | |
100 | beaker.cache.lock_dir=%(here)s/data/cache/lock |
|
100 | beaker.cache.lock_dir=%(here)s/data/cache/lock | |
101 |
|
101 | |||
102 | beaker.cache.regions=super_short_term,short_term,long_term,sql_cache_short,sql_cache_med,sql_cache_long |
|
102 | beaker.cache.regions=super_short_term,short_term,long_term,sql_cache_short,sql_cache_med,sql_cache_long | |
103 |
|
103 | |||
104 | beaker.cache.super_short_term.type=memory |
|
104 | beaker.cache.super_short_term.type=memory | |
105 | beaker.cache.super_short_term.expire=10 |
|
105 | beaker.cache.super_short_term.expire=10 | |
106 | beaker.cache.super_short_term.key_length = 256 |
|
106 | beaker.cache.super_short_term.key_length = 256 | |
107 |
|
107 | |||
108 | beaker.cache.short_term.type=memory |
|
108 | beaker.cache.short_term.type=memory | |
109 | beaker.cache.short_term.expire=60 |
|
109 | beaker.cache.short_term.expire=60 | |
110 | beaker.cache.short_term.key_length = 256 |
|
110 | beaker.cache.short_term.key_length = 256 | |
111 |
|
111 | |||
112 | beaker.cache.long_term.type=memory |
|
112 | beaker.cache.long_term.type=memory | |
113 | beaker.cache.long_term.expire=36000 |
|
113 | beaker.cache.long_term.expire=36000 | |
114 | beaker.cache.long_term.key_length = 256 |
|
114 | beaker.cache.long_term.key_length = 256 | |
115 |
|
115 | |||
116 | beaker.cache.sql_cache_short.type=memory |
|
116 | beaker.cache.sql_cache_short.type=memory | |
117 | beaker.cache.sql_cache_short.expire=10 |
|
117 | beaker.cache.sql_cache_short.expire=10 | |
118 | beaker.cache.sql_cache_short.key_length = 256 |
|
118 | beaker.cache.sql_cache_short.key_length = 256 | |
119 |
|
119 | |||
120 | beaker.cache.sql_cache_med.type=memory |
|
120 | beaker.cache.sql_cache_med.type=memory | |
121 | beaker.cache.sql_cache_med.expire=360 |
|
121 | beaker.cache.sql_cache_med.expire=360 | |
122 | beaker.cache.sql_cache_med.key_length = 256 |
|
122 | beaker.cache.sql_cache_med.key_length = 256 | |
123 |
|
123 | |||
124 | beaker.cache.sql_cache_long.type=file |
|
124 | beaker.cache.sql_cache_long.type=file | |
125 | beaker.cache.sql_cache_long.expire=3600 |
|
125 | beaker.cache.sql_cache_long.expire=3600 | |
126 | beaker.cache.sql_cache_long.key_length = 256 |
|
126 | beaker.cache.sql_cache_long.key_length = 256 | |
127 |
|
127 | |||
128 | #################################### |
|
128 | #################################### | |
129 | ### BEAKER SESSION #### |
|
129 | ### BEAKER SESSION #### | |
130 | #################################### |
|
130 | #################################### | |
131 | ## Type of storage used for the session, current types are |
|
131 | ## Type of storage used for the session, current types are | |
132 | ## dbm, file, memcached, database, and memory. |
|
132 | ## dbm, file, memcached, database, and memory. | |
133 | ## The storage uses the Container API |
|
133 | ## The storage uses the Container API | |
134 | ##that is also used by the cache system. |
|
134 | ## that is also used by the cache system. | |
135 |
|
135 | |||
136 | #db session example |
|
136 | ## db session example | |
|
137 | ||||
137 | #beaker.session.type = ext:database |
|
138 | #beaker.session.type = ext:database | |
138 | #beaker.session.sa.url = postgresql://postgres:qwe@localhost/rhodecode |
|
139 | #beaker.session.sa.url = postgresql://postgres:qwe@localhost/rhodecode | |
139 | #beaker.session.table_name = db_session |
|
140 | #beaker.session.table_name = db_session | |
140 |
|
141 | |||
141 | beaker.session.type = cookie |
|
142 | ## encrypted cookie session, good for many instances | |
|
143 | #beaker.session.type = cookie | |||
|
144 | ||||
|
145 | beaker.session.type = file | |||
142 | beaker.session.key = rhodecode |
|
146 | beaker.session.key = rhodecode | |
143 | beaker.session.encrypt_key = g654dcno0-9873jhgfreyu |
|
147 | beaker.session.encrypt_key = g654dcno0-9873jhgfreyu | |
144 | beaker.session.validate_key = 9712sds2212c--zxc123 |
|
148 | beaker.session.validate_key = 9712sds2212c--zxc123 | |
145 | beaker.session.timeout = 36000 |
|
149 | beaker.session.timeout = 36000 | |
146 | beaker.session.httponly = true |
|
150 | beaker.session.httponly = true | |
147 | # uncomment for https secure cookie |
|
151 | ||
|
152 | ## uncomment for https secure cookie | |||
148 | beaker.session.secure = false |
|
153 | beaker.session.secure = false | |
149 |
|
154 | |||
150 | ##auto save the session to not to use .save() |
|
155 | ##auto save the session to not to use .save() | |
151 | beaker.session.auto = False |
|
156 | beaker.session.auto = False | |
152 |
|
157 | |||
153 | ##true exire at browser close |
|
158 | ##true exire at browser close | |
154 | #beaker.session.cookie_expires = 3600 |
|
159 | #beaker.session.cookie_expires = 3600 | |
155 |
|
160 | |||
156 |
|
161 | |||
157 | ################################################################################ |
|
162 | ################################################################################ | |
158 | ## WARNING: *THE LINE BELOW MUST BE UNCOMMENTED ON A PRODUCTION ENVIRONMENT* ## |
|
163 | ## WARNING: *THE LINE BELOW MUST BE UNCOMMENTED ON A PRODUCTION ENVIRONMENT* ## | |
159 | ## Debug mode will enable the interactive debugging tool, allowing ANYONE to ## |
|
164 | ## Debug mode will enable the interactive debugging tool, allowing ANYONE to ## | |
160 | ## execute malicious code after an exception is raised. ## |
|
165 | ## execute malicious code after an exception is raised. ## | |
161 | ################################################################################ |
|
166 | ################################################################################ | |
162 | #set debug = false |
|
167 | #set debug = false | |
163 |
|
168 | |||
164 | ################################## |
|
169 | ################################## | |
165 | ### LOGVIEW CONFIG ### |
|
170 | ### LOGVIEW CONFIG ### | |
166 | ################################## |
|
171 | ################################## | |
167 | logview.sqlalchemy = #faa |
|
172 | logview.sqlalchemy = #faa | |
168 | logview.pylons.templating = #bfb |
|
173 | logview.pylons.templating = #bfb | |
169 | logview.pylons.util = #eee |
|
174 | logview.pylons.util = #eee | |
170 |
|
175 | |||
171 | ######################################################### |
|
176 | ######################################################### | |
172 | ### DB CONFIGS - EACH DB WILL HAVE IT'S OWN CONFIG ### |
|
177 | ### DB CONFIGS - EACH DB WILL HAVE IT'S OWN CONFIG ### | |
173 | ######################################################### |
|
178 | ######################################################### | |
174 | #sqlalchemy.db1.url = sqlite:///%(here)s/rhodecode.db |
|
179 | #sqlalchemy.db1.url = sqlite:///%(here)s/rhodecode.db | |
175 | sqlalchemy.db1.url = postgresql://postgres:qwe@localhost/rhodecode |
|
180 | sqlalchemy.db1.url = postgresql://postgres:qwe@localhost/rhodecode | |
176 | sqlalchemy.db1.echo = false |
|
181 | sqlalchemy.db1.echo = false | |
177 | sqlalchemy.db1.pool_recycle = 3600 |
|
182 | sqlalchemy.db1.pool_recycle = 3600 | |
178 | sqlalchemy.convert_unicode = true |
|
183 | sqlalchemy.convert_unicode = true | |
179 |
|
184 | |||
180 | ################################ |
|
185 | ################################ | |
181 | ### LOGGING CONFIGURATION #### |
|
186 | ### LOGGING CONFIGURATION #### | |
182 | ################################ |
|
187 | ################################ | |
183 | [loggers] |
|
188 | [loggers] | |
184 | keys = root, routes, rhodecode, sqlalchemy, beaker, templates |
|
189 | keys = root, routes, rhodecode, sqlalchemy, beaker, templates | |
185 |
|
190 | |||
186 | [handlers] |
|
191 | [handlers] | |
187 | keys = console, console_sql |
|
192 | keys = console, console_sql | |
188 |
|
193 | |||
189 | [formatters] |
|
194 | [formatters] | |
190 | keys = generic, color_formatter, color_formatter_sql |
|
195 | keys = generic, color_formatter, color_formatter_sql | |
191 |
|
196 | |||
192 | ############# |
|
197 | ############# | |
193 | ## LOGGERS ## |
|
198 | ## LOGGERS ## | |
194 | ############# |
|
199 | ############# | |
195 | [logger_root] |
|
200 | [logger_root] | |
196 | level = NOTSET |
|
201 | level = NOTSET | |
197 | handlers = console |
|
202 | handlers = console | |
198 |
|
203 | |||
199 | [logger_routes] |
|
204 | [logger_routes] | |
200 | level = DEBUG |
|
205 | level = DEBUG | |
201 | handlers = |
|
206 | handlers = | |
202 | qualname = routes.middleware |
|
207 | qualname = routes.middleware | |
203 | # "level = DEBUG" logs the route matched and routing variables. |
|
208 | # "level = DEBUG" logs the route matched and routing variables. | |
204 | propagate = 1 |
|
209 | propagate = 1 | |
205 |
|
210 | |||
206 | [logger_beaker] |
|
211 | [logger_beaker] | |
207 | level = DEBUG |
|
212 | level = DEBUG | |
208 | handlers = |
|
213 | handlers = | |
209 | qualname = beaker.container |
|
214 | qualname = beaker.container | |
210 | propagate = 1 |
|
215 | propagate = 1 | |
211 |
|
216 | |||
212 | [logger_templates] |
|
217 | [logger_templates] | |
213 | level = INFO |
|
218 | level = INFO | |
214 | handlers = |
|
219 | handlers = | |
215 | qualname = pylons.templating |
|
220 | qualname = pylons.templating | |
216 | propagate = 1 |
|
221 | propagate = 1 | |
217 |
|
222 | |||
218 | [logger_rhodecode] |
|
223 | [logger_rhodecode] | |
219 | level = DEBUG |
|
224 | level = DEBUG | |
220 | handlers = |
|
225 | handlers = | |
221 | qualname = rhodecode |
|
226 | qualname = rhodecode | |
222 | propagate = 1 |
|
227 | propagate = 1 | |
223 |
|
228 | |||
224 | [logger_sqlalchemy] |
|
229 | [logger_sqlalchemy] | |
225 | level = INFO |
|
230 | level = INFO | |
226 | handlers = console_sql |
|
231 | handlers = console_sql | |
227 | qualname = sqlalchemy.engine |
|
232 | qualname = sqlalchemy.engine | |
228 | propagate = 0 |
|
233 | propagate = 0 | |
229 |
|
234 | |||
230 | ############## |
|
235 | ############## | |
231 | ## HANDLERS ## |
|
236 | ## HANDLERS ## | |
232 | ############## |
|
237 | ############## | |
233 |
|
238 | |||
234 | [handler_console] |
|
239 | [handler_console] | |
235 | class = StreamHandler |
|
240 | class = StreamHandler | |
236 | args = (sys.stderr,) |
|
241 | args = (sys.stderr,) | |
237 | level = DEBUG |
|
242 | level = DEBUG | |
238 | formatter = color_formatter |
|
243 | formatter = color_formatter | |
239 |
|
244 | |||
240 | [handler_console_sql] |
|
245 | [handler_console_sql] | |
241 | class = StreamHandler |
|
246 | class = StreamHandler | |
242 | args = (sys.stderr,) |
|
247 | args = (sys.stderr,) | |
243 | level = DEBUG |
|
248 | level = DEBUG | |
244 | formatter = color_formatter_sql |
|
249 | formatter = color_formatter_sql | |
245 |
|
250 | |||
246 | ################ |
|
251 | ################ | |
247 | ## FORMATTERS ## |
|
252 | ## FORMATTERS ## | |
248 | ################ |
|
253 | ################ | |
249 |
|
254 | |||
250 | [formatter_generic] |
|
255 | [formatter_generic] | |
251 | format = %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s |
|
256 | format = %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s | |
252 | datefmt = %Y-%m-%d %H:%M:%S |
|
257 | datefmt = %Y-%m-%d %H:%M:%S | |
253 |
|
258 | |||
254 | [formatter_color_formatter] |
|
259 | [formatter_color_formatter] | |
255 | class=rhodecode.lib.colored_formatter.ColorFormatter |
|
260 | class=rhodecode.lib.colored_formatter.ColorFormatter | |
256 | format= %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s |
|
261 | format= %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s | |
257 | datefmt = %Y-%m-%d %H:%M:%S |
|
262 | datefmt = %Y-%m-%d %H:%M:%S | |
258 |
|
263 | |||
259 | [formatter_color_formatter_sql] |
|
264 | [formatter_color_formatter_sql] | |
260 | class=rhodecode.lib.colored_formatter.ColorFormatterSql |
|
265 | class=rhodecode.lib.colored_formatter.ColorFormatterSql | |
261 | format= %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s |
|
266 | format= %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s | |
262 | datefmt = %Y-%m-%d %H:%M:%S |
|
267 | datefmt = %Y-%m-%d %H:%M:%S |
@@ -1,262 +1,267 b'' | |||||
1 | ################################################################################ |
|
1 | ################################################################################ | |
2 | ################################################################################ |
|
2 | ################################################################################ | |
3 | # RhodeCode - Pylons environment configuration # |
|
3 | # RhodeCode - Pylons environment configuration # | |
4 | # # |
|
4 | # # | |
5 | # The %(here)s variable will be replaced with the parent directory of this file# |
|
5 | # The %(here)s variable will be replaced with the parent directory of this file# | |
6 | ################################################################################ |
|
6 | ################################################################################ | |
7 |
|
7 | |||
8 | [DEFAULT] |
|
8 | [DEFAULT] | |
9 | debug = true |
|
9 | debug = true | |
10 | pdebug = false |
|
10 | pdebug = false | |
11 | ################################################################################ |
|
11 | ################################################################################ | |
12 | ## Uncomment and replace with the address which should receive ## |
|
12 | ## Uncomment and replace with the address which should receive ## | |
13 | ## any error reports after application crash ## |
|
13 | ## any error reports after application crash ## | |
14 | ## Additionally those settings will be used by RhodeCode mailing system ## |
|
14 | ## Additionally those settings will be used by RhodeCode mailing system ## | |
15 | ################################################################################ |
|
15 | ################################################################################ | |
16 | #email_to = admin@localhost |
|
16 | #email_to = admin@localhost | |
17 | #error_email_from = paste_error@localhost |
|
17 | #error_email_from = paste_error@localhost | |
18 | #app_email_from = rhodecode-noreply@localhost |
|
18 | #app_email_from = rhodecode-noreply@localhost | |
19 | #error_message = |
|
19 | #error_message = | |
20 | #email_prefix = [RhodeCode] |
|
20 | #email_prefix = [RhodeCode] | |
21 |
|
21 | |||
22 | #smtp_server = mail.server.com |
|
22 | #smtp_server = mail.server.com | |
23 | #smtp_username = |
|
23 | #smtp_username = | |
24 | #smtp_password = |
|
24 | #smtp_password = | |
25 | #smtp_port = |
|
25 | #smtp_port = | |
26 | #smtp_use_tls = false |
|
26 | #smtp_use_tls = false | |
27 | #smtp_use_ssl = true |
|
27 | #smtp_use_ssl = true | |
28 | # Specify available auth parameters here (e.g. LOGIN PLAIN CRAM-MD5, etc.) |
|
28 | # Specify available auth parameters here (e.g. LOGIN PLAIN CRAM-MD5, etc.) | |
29 | #smtp_auth = |
|
29 | #smtp_auth = | |
30 |
|
30 | |||
31 | [server:main] |
|
31 | [server:main] | |
32 | ##nr of threads to spawn |
|
32 | ##nr of threads to spawn | |
33 | threadpool_workers = 5 |
|
33 | threadpool_workers = 5 | |
34 |
|
34 | |||
35 | ##max request before thread respawn |
|
35 | ##max request before thread respawn | |
36 | threadpool_max_requests = 10 |
|
36 | threadpool_max_requests = 10 | |
37 |
|
37 | |||
38 | ##option to use threads of process |
|
38 | ##option to use threads of process | |
39 | use_threadpool = true |
|
39 | use_threadpool = true | |
40 |
|
40 | |||
41 | use = egg:Paste#http |
|
41 | use = egg:Paste#http | |
42 | host = 127.0.0.1 |
|
42 | host = 127.0.0.1 | |
43 | port = 8001 |
|
43 | port = 8001 | |
44 |
|
44 | |||
45 | [app:main] |
|
45 | [app:main] | |
46 | use = egg:rhodecode |
|
46 | use = egg:rhodecode | |
47 | full_stack = true |
|
47 | full_stack = true | |
48 | static_files = true |
|
48 | static_files = true | |
49 | lang=en |
|
49 | lang=en | |
50 | cache_dir = %(here)s/data |
|
50 | cache_dir = %(here)s/data | |
51 | index_dir = %(here)s/data/index |
|
51 | index_dir = %(here)s/data/index | |
52 | app_instance_uuid = prod1234 |
|
52 | app_instance_uuid = prod1234 | |
53 | cut_off_limit = 256000 |
|
53 | cut_off_limit = 256000 | |
54 | force_https = false |
|
54 | force_https = false | |
55 | commit_parse_limit = 50 |
|
55 | commit_parse_limit = 50 | |
56 | use_gravatar = true |
|
56 | use_gravatar = true | |
57 | container_auth_enabled = false |
|
57 | container_auth_enabled = false | |
58 | proxypass_auth_enabled = false |
|
58 | proxypass_auth_enabled = false | |
59 |
|
59 | |||
60 | ## overwrite schema of clone url |
|
60 | ## overwrite schema of clone url | |
61 | # available vars: |
|
61 | # available vars: | |
62 | # scheme - http/https |
|
62 | # scheme - http/https | |
63 | # user - current user |
|
63 | # user - current user | |
64 | # pass - password |
|
64 | # pass - password | |
65 | # netloc - network location |
|
65 | # netloc - network location | |
66 | # path - usually repo_name |
|
66 | # path - usually repo_name | |
67 | # clone_uri = {scheme}://{user}{pass}{netloc}{path} |
|
67 | # clone_uri = {scheme}://{user}{pass}{netloc}{path} | |
68 |
|
68 | |||
69 | #################################### |
|
69 | #################################### | |
70 | ### CELERY CONFIG #### |
|
70 | ### CELERY CONFIG #### | |
71 | #################################### |
|
71 | #################################### | |
72 | use_celery = false |
|
72 | use_celery = false | |
73 | broker.host = localhost |
|
73 | broker.host = localhost | |
74 | broker.vhost = rabbitmqhost |
|
74 | broker.vhost = rabbitmqhost | |
75 | broker.port = 5672 |
|
75 | broker.port = 5672 | |
76 | broker.user = rabbitmq |
|
76 | broker.user = rabbitmq | |
77 | broker.password = qweqwe |
|
77 | broker.password = qweqwe | |
78 |
|
78 | |||
79 | celery.imports = rhodecode.lib.celerylib.tasks |
|
79 | celery.imports = rhodecode.lib.celerylib.tasks | |
80 |
|
80 | |||
81 | celery.result.backend = amqp |
|
81 | celery.result.backend = amqp | |
82 | celery.result.dburi = amqp:// |
|
82 | celery.result.dburi = amqp:// | |
83 | celery.result.serialier = json |
|
83 | celery.result.serialier = json | |
84 |
|
84 | |||
85 | #celery.send.task.error.emails = true |
|
85 | #celery.send.task.error.emails = true | |
86 | #celery.amqp.task.result.expires = 18000 |
|
86 | #celery.amqp.task.result.expires = 18000 | |
87 |
|
87 | |||
88 | celeryd.concurrency = 2 |
|
88 | celeryd.concurrency = 2 | |
89 | #celeryd.log.file = celeryd.log |
|
89 | #celeryd.log.file = celeryd.log | |
90 | celeryd.log.level = debug |
|
90 | celeryd.log.level = debug | |
91 | celeryd.max.tasks.per.child = 1 |
|
91 | celeryd.max.tasks.per.child = 1 | |
92 |
|
92 | |||
93 | #tasks will never be sent to the queue, but executed locally instead. |
|
93 | #tasks will never be sent to the queue, but executed locally instead. | |
94 | celery.always.eager = false |
|
94 | celery.always.eager = false | |
95 |
|
95 | |||
96 | #################################### |
|
96 | #################################### | |
97 | ### BEAKER CACHE #### |
|
97 | ### BEAKER CACHE #### | |
98 | #################################### |
|
98 | #################################### | |
99 | beaker.cache.data_dir=%(here)s/data/cache/data |
|
99 | beaker.cache.data_dir=%(here)s/data/cache/data | |
100 | beaker.cache.lock_dir=%(here)s/data/cache/lock |
|
100 | beaker.cache.lock_dir=%(here)s/data/cache/lock | |
101 |
|
101 | |||
102 | beaker.cache.regions=super_short_term,short_term,long_term,sql_cache_short,sql_cache_med,sql_cache_long |
|
102 | beaker.cache.regions=super_short_term,short_term,long_term,sql_cache_short,sql_cache_med,sql_cache_long | |
103 |
|
103 | |||
104 | beaker.cache.super_short_term.type=memory |
|
104 | beaker.cache.super_short_term.type=memory | |
105 | beaker.cache.super_short_term.expire=10 |
|
105 | beaker.cache.super_short_term.expire=10 | |
106 | beaker.cache.super_short_term.key_length = 256 |
|
106 | beaker.cache.super_short_term.key_length = 256 | |
107 |
|
107 | |||
108 | beaker.cache.short_term.type=memory |
|
108 | beaker.cache.short_term.type=memory | |
109 | beaker.cache.short_term.expire=60 |
|
109 | beaker.cache.short_term.expire=60 | |
110 | beaker.cache.short_term.key_length = 256 |
|
110 | beaker.cache.short_term.key_length = 256 | |
111 |
|
111 | |||
112 | beaker.cache.long_term.type=memory |
|
112 | beaker.cache.long_term.type=memory | |
113 | beaker.cache.long_term.expire=36000 |
|
113 | beaker.cache.long_term.expire=36000 | |
114 | beaker.cache.long_term.key_length = 256 |
|
114 | beaker.cache.long_term.key_length = 256 | |
115 |
|
115 | |||
116 | beaker.cache.sql_cache_short.type=memory |
|
116 | beaker.cache.sql_cache_short.type=memory | |
117 | beaker.cache.sql_cache_short.expire=10 |
|
117 | beaker.cache.sql_cache_short.expire=10 | |
118 | beaker.cache.sql_cache_short.key_length = 256 |
|
118 | beaker.cache.sql_cache_short.key_length = 256 | |
119 |
|
119 | |||
120 | beaker.cache.sql_cache_med.type=memory |
|
120 | beaker.cache.sql_cache_med.type=memory | |
121 | beaker.cache.sql_cache_med.expire=360 |
|
121 | beaker.cache.sql_cache_med.expire=360 | |
122 | beaker.cache.sql_cache_med.key_length = 256 |
|
122 | beaker.cache.sql_cache_med.key_length = 256 | |
123 |
|
123 | |||
124 | beaker.cache.sql_cache_long.type=file |
|
124 | beaker.cache.sql_cache_long.type=file | |
125 | beaker.cache.sql_cache_long.expire=3600 |
|
125 | beaker.cache.sql_cache_long.expire=3600 | |
126 | beaker.cache.sql_cache_long.key_length = 256 |
|
126 | beaker.cache.sql_cache_long.key_length = 256 | |
127 |
|
127 | |||
128 | #################################### |
|
128 | #################################### | |
129 | ### BEAKER SESSION #### |
|
129 | ### BEAKER SESSION #### | |
130 | #################################### |
|
130 | #################################### | |
131 | ## Type of storage used for the session, current types are |
|
131 | ## Type of storage used for the session, current types are | |
132 | ## dbm, file, memcached, database, and memory. |
|
132 | ## dbm, file, memcached, database, and memory. | |
133 | ## The storage uses the Container API |
|
133 | ## The storage uses the Container API | |
134 | ##that is also used by the cache system. |
|
134 | ## that is also used by the cache system. | |
135 |
|
135 | |||
136 | #db session example |
|
136 | ## db session example | |
|
137 | ||||
137 | #beaker.session.type = ext:database |
|
138 | #beaker.session.type = ext:database | |
138 | #beaker.session.sa.url = postgresql://postgres:qwe@localhost/rhodecode |
|
139 | #beaker.session.sa.url = postgresql://postgres:qwe@localhost/rhodecode | |
139 | #beaker.session.table_name = db_session |
|
140 | #beaker.session.table_name = db_session | |
140 |
|
141 | |||
141 | beaker.session.type = cookie |
|
142 | ## encrypted cookie session, good for many instances | |
|
143 | #beaker.session.type = cookie | |||
|
144 | ||||
|
145 | beaker.session.type = file | |||
142 | beaker.session.key = rhodecode |
|
146 | beaker.session.key = rhodecode | |
143 | beaker.session.encrypt_key = g654dcno0-9873jhgfreyu |
|
147 | beaker.session.encrypt_key = g654dcno0-9873jhgfreyu | |
144 | beaker.session.validate_key = 9712sds2212c--zxc123 |
|
148 | beaker.session.validate_key = 9712sds2212c--zxc123 | |
145 | beaker.session.timeout = 36000 |
|
149 | beaker.session.timeout = 36000 | |
146 | beaker.session.httponly = true |
|
150 | beaker.session.httponly = true | |
147 | # uncomment for https secure cookie |
|
151 | ||
|
152 | ## uncomment for https secure cookie | |||
148 | beaker.session.secure = false |
|
153 | beaker.session.secure = false | |
149 |
|
154 | |||
150 | ##auto save the session to not to use .save() |
|
155 | ##auto save the session to not to use .save() | |
151 | beaker.session.auto = False |
|
156 | beaker.session.auto = False | |
152 |
|
157 | |||
153 | ##true exire at browser close |
|
158 | ##true exire at browser close | |
154 | #beaker.session.cookie_expires = 3600 |
|
159 | #beaker.session.cookie_expires = 3600 | |
155 |
|
160 | |||
156 |
|
161 | |||
157 | ################################################################################ |
|
162 | ################################################################################ | |
158 | ## WARNING: *THE LINE BELOW MUST BE UNCOMMENTED ON A PRODUCTION ENVIRONMENT* ## |
|
163 | ## WARNING: *THE LINE BELOW MUST BE UNCOMMENTED ON A PRODUCTION ENVIRONMENT* ## | |
159 | ## Debug mode will enable the interactive debugging tool, allowing ANYONE to ## |
|
164 | ## Debug mode will enable the interactive debugging tool, allowing ANYONE to ## | |
160 | ## execute malicious code after an exception is raised. ## |
|
165 | ## execute malicious code after an exception is raised. ## | |
161 | ################################################################################ |
|
166 | ################################################################################ | |
162 | set debug = false |
|
167 | set debug = false | |
163 |
|
168 | |||
164 | ################################## |
|
169 | ################################## | |
165 | ### LOGVIEW CONFIG ### |
|
170 | ### LOGVIEW CONFIG ### | |
166 | ################################## |
|
171 | ################################## | |
167 | logview.sqlalchemy = #faa |
|
172 | logview.sqlalchemy = #faa | |
168 | logview.pylons.templating = #bfb |
|
173 | logview.pylons.templating = #bfb | |
169 | logview.pylons.util = #eee |
|
174 | logview.pylons.util = #eee | |
170 |
|
175 | |||
171 | ######################################################### |
|
176 | ######################################################### | |
172 | ### DB CONFIGS - EACH DB WILL HAVE IT'S OWN CONFIG ### |
|
177 | ### DB CONFIGS - EACH DB WILL HAVE IT'S OWN CONFIG ### | |
173 | ######################################################### |
|
178 | ######################################################### | |
174 | #sqlalchemy.db1.url = sqlite:///%(here)s/rhodecode.db |
|
179 | #sqlalchemy.db1.url = sqlite:///%(here)s/rhodecode.db | |
175 | sqlalchemy.db1.url = postgresql://postgres:qwe@localhost/rhodecode |
|
180 | sqlalchemy.db1.url = postgresql://postgres:qwe@localhost/rhodecode | |
176 | sqlalchemy.db1.echo = false |
|
181 | sqlalchemy.db1.echo = false | |
177 | sqlalchemy.db1.pool_recycle = 3600 |
|
182 | sqlalchemy.db1.pool_recycle = 3600 | |
178 | sqlalchemy.convert_unicode = true |
|
183 | sqlalchemy.convert_unicode = true | |
179 |
|
184 | |||
180 | ################################ |
|
185 | ################################ | |
181 | ### LOGGING CONFIGURATION #### |
|
186 | ### LOGGING CONFIGURATION #### | |
182 | ################################ |
|
187 | ################################ | |
183 | [loggers] |
|
188 | [loggers] | |
184 | keys = root, routes, rhodecode, sqlalchemy, beaker, templates |
|
189 | keys = root, routes, rhodecode, sqlalchemy, beaker, templates | |
185 |
|
190 | |||
186 | [handlers] |
|
191 | [handlers] | |
187 | keys = console, console_sql |
|
192 | keys = console, console_sql | |
188 |
|
193 | |||
189 | [formatters] |
|
194 | [formatters] | |
190 | keys = generic, color_formatter, color_formatter_sql |
|
195 | keys = generic, color_formatter, color_formatter_sql | |
191 |
|
196 | |||
192 | ############# |
|
197 | ############# | |
193 | ## LOGGERS ## |
|
198 | ## LOGGERS ## | |
194 | ############# |
|
199 | ############# | |
195 | [logger_root] |
|
200 | [logger_root] | |
196 | level = NOTSET |
|
201 | level = NOTSET | |
197 | handlers = console |
|
202 | handlers = console | |
198 |
|
203 | |||
199 | [logger_routes] |
|
204 | [logger_routes] | |
200 | level = DEBUG |
|
205 | level = DEBUG | |
201 | handlers = |
|
206 | handlers = | |
202 | qualname = routes.middleware |
|
207 | qualname = routes.middleware | |
203 | # "level = DEBUG" logs the route matched and routing variables. |
|
208 | # "level = DEBUG" logs the route matched and routing variables. | |
204 | propagate = 1 |
|
209 | propagate = 1 | |
205 |
|
210 | |||
206 | [logger_beaker] |
|
211 | [logger_beaker] | |
207 | level = DEBUG |
|
212 | level = DEBUG | |
208 | handlers = |
|
213 | handlers = | |
209 | qualname = beaker.container |
|
214 | qualname = beaker.container | |
210 | propagate = 1 |
|
215 | propagate = 1 | |
211 |
|
216 | |||
212 | [logger_templates] |
|
217 | [logger_templates] | |
213 | level = INFO |
|
218 | level = INFO | |
214 | handlers = |
|
219 | handlers = | |
215 | qualname = pylons.templating |
|
220 | qualname = pylons.templating | |
216 | propagate = 1 |
|
221 | propagate = 1 | |
217 |
|
222 | |||
218 | [logger_rhodecode] |
|
223 | [logger_rhodecode] | |
219 | level = DEBUG |
|
224 | level = DEBUG | |
220 | handlers = |
|
225 | handlers = | |
221 | qualname = rhodecode |
|
226 | qualname = rhodecode | |
222 | propagate = 1 |
|
227 | propagate = 1 | |
223 |
|
228 | |||
224 | [logger_sqlalchemy] |
|
229 | [logger_sqlalchemy] | |
225 | level = INFO |
|
230 | level = INFO | |
226 | handlers = console_sql |
|
231 | handlers = console_sql | |
227 | qualname = sqlalchemy.engine |
|
232 | qualname = sqlalchemy.engine | |
228 | propagate = 0 |
|
233 | propagate = 0 | |
229 |
|
234 | |||
230 | ############## |
|
235 | ############## | |
231 | ## HANDLERS ## |
|
236 | ## HANDLERS ## | |
232 | ############## |
|
237 | ############## | |
233 |
|
238 | |||
234 | [handler_console] |
|
239 | [handler_console] | |
235 | class = StreamHandler |
|
240 | class = StreamHandler | |
236 | args = (sys.stderr,) |
|
241 | args = (sys.stderr,) | |
237 | level = INFO |
|
242 | level = INFO | |
238 | formatter = generic |
|
243 | formatter = generic | |
239 |
|
244 | |||
240 | [handler_console_sql] |
|
245 | [handler_console_sql] | |
241 | class = StreamHandler |
|
246 | class = StreamHandler | |
242 | args = (sys.stderr,) |
|
247 | args = (sys.stderr,) | |
243 | level = WARN |
|
248 | level = WARN | |
244 | formatter = generic |
|
249 | formatter = generic | |
245 |
|
250 | |||
246 | ################ |
|
251 | ################ | |
247 | ## FORMATTERS ## |
|
252 | ## FORMATTERS ## | |
248 | ################ |
|
253 | ################ | |
249 |
|
254 | |||
250 | [formatter_generic] |
|
255 | [formatter_generic] | |
251 | format = %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s |
|
256 | format = %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s | |
252 | datefmt = %Y-%m-%d %H:%M:%S |
|
257 | datefmt = %Y-%m-%d %H:%M:%S | |
253 |
|
258 | |||
254 | [formatter_color_formatter] |
|
259 | [formatter_color_formatter] | |
255 | class=rhodecode.lib.colored_formatter.ColorFormatter |
|
260 | class=rhodecode.lib.colored_formatter.ColorFormatter | |
256 | format= %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s |
|
261 | format= %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s | |
257 | datefmt = %Y-%m-%d %H:%M:%S |
|
262 | datefmt = %Y-%m-%d %H:%M:%S | |
258 |
|
263 | |||
259 | [formatter_color_formatter_sql] |
|
264 | [formatter_color_formatter_sql] | |
260 | class=rhodecode.lib.colored_formatter.ColorFormatterSql |
|
265 | class=rhodecode.lib.colored_formatter.ColorFormatterSql | |
261 | format= %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s |
|
266 | format= %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s | |
262 | datefmt = %Y-%m-%d %H:%M:%S |
|
267 | datefmt = %Y-%m-%d %H:%M:%S |
@@ -1,272 +1,277 b'' | |||||
1 | ################################################################################ |
|
1 | ################################################################################ | |
2 | ################################################################################ |
|
2 | ################################################################################ | |
3 | # RhodeCode - Pylons environment configuration # |
|
3 | # RhodeCode - Pylons environment configuration # | |
4 | # # |
|
4 | # # | |
5 | # The %(here)s variable will be replaced with the parent directory of this file# |
|
5 | # The %(here)s variable will be replaced with the parent directory of this file# | |
6 | ################################################################################ |
|
6 | ################################################################################ | |
7 |
|
7 | |||
8 | [DEFAULT] |
|
8 | [DEFAULT] | |
9 | debug = true |
|
9 | debug = true | |
10 | pdebug = false |
|
10 | pdebug = false | |
11 | ################################################################################ |
|
11 | ################################################################################ | |
12 | ## Uncomment and replace with the address which should receive ## |
|
12 | ## Uncomment and replace with the address which should receive ## | |
13 | ## any error reports after application crash ## |
|
13 | ## any error reports after application crash ## | |
14 | ## Additionally those settings will be used by RhodeCode mailing system ## |
|
14 | ## Additionally those settings will be used by RhodeCode mailing system ## | |
15 | ################################################################################ |
|
15 | ################################################################################ | |
16 | #email_to = admin@localhost |
|
16 | #email_to = admin@localhost | |
17 | #error_email_from = paste_error@localhost |
|
17 | #error_email_from = paste_error@localhost | |
18 | #app_email_from = rhodecode-noreply@localhost |
|
18 | #app_email_from = rhodecode-noreply@localhost | |
19 | #error_message = |
|
19 | #error_message = | |
20 | #email_prefix = [RhodeCode] |
|
20 | #email_prefix = [RhodeCode] | |
21 |
|
21 | |||
22 | #smtp_server = mail.server.com |
|
22 | #smtp_server = mail.server.com | |
23 | #smtp_username = |
|
23 | #smtp_username = | |
24 | #smtp_password = |
|
24 | #smtp_password = | |
25 | #smtp_port = |
|
25 | #smtp_port = | |
26 | #smtp_use_tls = false |
|
26 | #smtp_use_tls = false | |
27 | #smtp_use_ssl = true |
|
27 | #smtp_use_ssl = true | |
28 | # Specify available auth parameters here (e.g. LOGIN PLAIN CRAM-MD5, etc.) |
|
28 | # Specify available auth parameters here (e.g. LOGIN PLAIN CRAM-MD5, etc.) | |
29 | #smtp_auth = |
|
29 | #smtp_auth = | |
30 |
|
30 | |||
31 | [server:main] |
|
31 | [server:main] | |
32 | ##nr of threads to spawn |
|
32 | ##nr of threads to spawn | |
33 | threadpool_workers = 5 |
|
33 | threadpool_workers = 5 | |
34 |
|
34 | |||
35 | ##max request before thread respawn |
|
35 | ##max request before thread respawn | |
36 | threadpool_max_requests = 10 |
|
36 | threadpool_max_requests = 10 | |
37 |
|
37 | |||
38 | ##option to use threads of process |
|
38 | ##option to use threads of process | |
39 | use_threadpool = true |
|
39 | use_threadpool = true | |
40 |
|
40 | |||
41 | use = egg:Paste#http |
|
41 | use = egg:Paste#http | |
42 | host = 127.0.0.1 |
|
42 | host = 127.0.0.1 | |
43 | port = 5000 |
|
43 | port = 5000 | |
44 |
|
44 | |||
45 | [app:main] |
|
45 | [app:main] | |
46 | use = egg:rhodecode |
|
46 | use = egg:rhodecode | |
47 | full_stack = true |
|
47 | full_stack = true | |
48 | static_files = true |
|
48 | static_files = true | |
49 | lang=en |
|
49 | lang=en | |
50 | cache_dir = %(here)s/data |
|
50 | cache_dir = %(here)s/data | |
51 | index_dir = %(here)s/data/index |
|
51 | index_dir = %(here)s/data/index | |
52 | app_instance_uuid = ${app_instance_uuid} |
|
52 | app_instance_uuid = ${app_instance_uuid} | |
53 | cut_off_limit = 256000 |
|
53 | cut_off_limit = 256000 | |
54 | force_https = false |
|
54 | force_https = false | |
55 | commit_parse_limit = 50 |
|
55 | commit_parse_limit = 50 | |
56 | use_gravatar = true |
|
56 | use_gravatar = true | |
57 | container_auth_enabled = false |
|
57 | container_auth_enabled = false | |
58 | proxypass_auth_enabled = false |
|
58 | proxypass_auth_enabled = false | |
59 |
|
59 | |||
60 | ## overwrite schema of clone url |
|
60 | ## overwrite schema of clone url | |
61 | # available vars: |
|
61 | # available vars: | |
62 | # scheme - http/https |
|
62 | # scheme - http/https | |
63 | # user - current user |
|
63 | # user - current user | |
64 | # pass - password |
|
64 | # pass - password | |
65 | # netloc - network location |
|
65 | # netloc - network location | |
66 | # path - usually repo_name |
|
66 | # path - usually repo_name | |
67 | # clone_uri = {scheme}://{user}{pass}{netloc}{path} |
|
67 | # clone_uri = {scheme}://{user}{pass}{netloc}{path} | |
68 |
|
68 | |||
69 | #################################### |
|
69 | #################################### | |
70 | ### CELERY CONFIG #### |
|
70 | ### CELERY CONFIG #### | |
71 | #################################### |
|
71 | #################################### | |
72 | use_celery = false |
|
72 | use_celery = false | |
73 | broker.host = localhost |
|
73 | broker.host = localhost | |
74 | broker.vhost = rabbitmqhost |
|
74 | broker.vhost = rabbitmqhost | |
75 | broker.port = 5672 |
|
75 | broker.port = 5672 | |
76 | broker.user = rabbitmq |
|
76 | broker.user = rabbitmq | |
77 | broker.password = qweqwe |
|
77 | broker.password = qweqwe | |
78 |
|
78 | |||
79 | celery.imports = rhodecode.lib.celerylib.tasks |
|
79 | celery.imports = rhodecode.lib.celerylib.tasks | |
80 |
|
80 | |||
81 | celery.result.backend = amqp |
|
81 | celery.result.backend = amqp | |
82 | celery.result.dburi = amqp:// |
|
82 | celery.result.dburi = amqp:// | |
83 | celery.result.serialier = json |
|
83 | celery.result.serialier = json | |
84 |
|
84 | |||
85 | #celery.send.task.error.emails = true |
|
85 | #celery.send.task.error.emails = true | |
86 | #celery.amqp.task.result.expires = 18000 |
|
86 | #celery.amqp.task.result.expires = 18000 | |
87 |
|
87 | |||
88 | celeryd.concurrency = 2 |
|
88 | celeryd.concurrency = 2 | |
89 | #celeryd.log.file = celeryd.log |
|
89 | #celeryd.log.file = celeryd.log | |
90 | celeryd.log.level = debug |
|
90 | celeryd.log.level = debug | |
91 | celeryd.max.tasks.per.child = 1 |
|
91 | celeryd.max.tasks.per.child = 1 | |
92 |
|
92 | |||
93 | #tasks will never be sent to the queue, but executed locally instead. |
|
93 | #tasks will never be sent to the queue, but executed locally instead. | |
94 | celery.always.eager = false |
|
94 | celery.always.eager = false | |
95 |
|
95 | |||
96 | #################################### |
|
96 | #################################### | |
97 | ### BEAKER CACHE #### |
|
97 | ### BEAKER CACHE #### | |
98 | #################################### |
|
98 | #################################### | |
99 | beaker.cache.data_dir=%(here)s/data/cache/data |
|
99 | beaker.cache.data_dir=%(here)s/data/cache/data | |
100 | beaker.cache.lock_dir=%(here)s/data/cache/lock |
|
100 | beaker.cache.lock_dir=%(here)s/data/cache/lock | |
101 |
|
101 | |||
102 | beaker.cache.regions=super_short_term,short_term,long_term,sql_cache_short,sql_cache_med,sql_cache_long |
|
102 | beaker.cache.regions=super_short_term,short_term,long_term,sql_cache_short,sql_cache_med,sql_cache_long | |
103 |
|
103 | |||
104 | beaker.cache.super_short_term.type=memory |
|
104 | beaker.cache.super_short_term.type=memory | |
105 | beaker.cache.super_short_term.expire=10 |
|
105 | beaker.cache.super_short_term.expire=10 | |
106 | beaker.cache.super_short_term.key_length = 256 |
|
106 | beaker.cache.super_short_term.key_length = 256 | |
107 |
|
107 | |||
108 | beaker.cache.short_term.type=memory |
|
108 | beaker.cache.short_term.type=memory | |
109 | beaker.cache.short_term.expire=60 |
|
109 | beaker.cache.short_term.expire=60 | |
110 | beaker.cache.short_term.key_length = 256 |
|
110 | beaker.cache.short_term.key_length = 256 | |
111 |
|
111 | |||
112 | beaker.cache.long_term.type=memory |
|
112 | beaker.cache.long_term.type=memory | |
113 | beaker.cache.long_term.expire=36000 |
|
113 | beaker.cache.long_term.expire=36000 | |
114 | beaker.cache.long_term.key_length = 256 |
|
114 | beaker.cache.long_term.key_length = 256 | |
115 |
|
115 | |||
116 | beaker.cache.sql_cache_short.type=memory |
|
116 | beaker.cache.sql_cache_short.type=memory | |
117 | beaker.cache.sql_cache_short.expire=10 |
|
117 | beaker.cache.sql_cache_short.expire=10 | |
118 | beaker.cache.sql_cache_short.key_length = 256 |
|
118 | beaker.cache.sql_cache_short.key_length = 256 | |
119 |
|
119 | |||
120 | beaker.cache.sql_cache_med.type=memory |
|
120 | beaker.cache.sql_cache_med.type=memory | |
121 | beaker.cache.sql_cache_med.expire=360 |
|
121 | beaker.cache.sql_cache_med.expire=360 | |
122 | beaker.cache.sql_cache_med.key_length = 256 |
|
122 | beaker.cache.sql_cache_med.key_length = 256 | |
123 |
|
123 | |||
124 | beaker.cache.sql_cache_long.type=file |
|
124 | beaker.cache.sql_cache_long.type=file | |
125 | beaker.cache.sql_cache_long.expire=3600 |
|
125 | beaker.cache.sql_cache_long.expire=3600 | |
126 | beaker.cache.sql_cache_long.key_length = 256 |
|
126 | beaker.cache.sql_cache_long.key_length = 256 | |
127 |
|
127 | |||
128 | #################################### |
|
128 | #################################### | |
129 | ### BEAKER SESSION #### |
|
129 | ### BEAKER SESSION #### | |
130 | #################################### |
|
130 | #################################### | |
131 | ## Type of storage used for the session, current types are |
|
131 | ## Type of storage used for the session, current types are | |
132 | ## dbm, file, memcached, database, and memory. |
|
132 | ## dbm, file, memcached, database, and memory. | |
133 | ## The storage uses the Container API |
|
133 | ## The storage uses the Container API | |
134 | ##that is also used by the cache system. |
|
134 | ## that is also used by the cache system. | |
135 |
|
135 | |||
136 | #db session example |
|
136 | ## db session example | |
|
137 | ||||
137 | #beaker.session.type = ext:database |
|
138 | #beaker.session.type = ext:database | |
138 | #beaker.session.sa.url = postgresql://postgres:qwe@localhost/rhodecode |
|
139 | #beaker.session.sa.url = postgresql://postgres:qwe@localhost/rhodecode | |
139 | #beaker.session.table_name = db_session |
|
140 | #beaker.session.table_name = db_session | |
140 |
|
141 | |||
141 | beaker.session.type = cookie |
|
142 | ## encrypted cookie session, good for many instances | |
|
143 | #beaker.session.type = cookie | |||
|
144 | ||||
|
145 | beaker.session.type = file | |||
142 | beaker.session.key = rhodecode |
|
146 | beaker.session.key = rhodecode | |
143 | beaker.session.encrypt_key = ${app_instance_secret} |
|
147 | beaker.session.encrypt_key = ${app_instance_secret} | |
144 | beaker.session.validate_key = ${app_instance_secret} |
|
148 | beaker.session.validate_key = ${app_instance_secret} | |
145 | beaker.session.timeout = 36000 |
|
149 | beaker.session.timeout = 36000 | |
146 | beaker.session.httponly = true |
|
150 | beaker.session.httponly = true | |
147 | # uncomment for https secure cookie |
|
151 | ||
|
152 | ## uncomment for https secure cookie | |||
148 | beaker.session.secure = false |
|
153 | beaker.session.secure = false | |
149 |
|
154 | |||
150 | ##auto save the session to not to use .save() |
|
155 | ##auto save the session to not to use .save() | |
151 | beaker.session.auto = False |
|
156 | beaker.session.auto = False | |
152 |
|
157 | |||
153 | ##true exire at browser close |
|
158 | ##true exire at browser close | |
154 | #beaker.session.cookie_expires = 3600 |
|
159 | #beaker.session.cookie_expires = 3600 | |
155 |
|
160 | |||
156 |
|
161 | |||
157 | ################################################################################ |
|
162 | ################################################################################ | |
158 | ## WARNING: *THE LINE BELOW MUST BE UNCOMMENTED ON A PRODUCTION ENVIRONMENT* ## |
|
163 | ## WARNING: *THE LINE BELOW MUST BE UNCOMMENTED ON A PRODUCTION ENVIRONMENT* ## | |
159 | ## Debug mode will enable the interactive debugging tool, allowing ANYONE to ## |
|
164 | ## Debug mode will enable the interactive debugging tool, allowing ANYONE to ## | |
160 | ## execute malicious code after an exception is raised. ## |
|
165 | ## execute malicious code after an exception is raised. ## | |
161 | ################################################################################ |
|
166 | ################################################################################ | |
162 | set debug = false |
|
167 | set debug = false | |
163 |
|
168 | |||
164 | ################################## |
|
169 | ################################## | |
165 | ### LOGVIEW CONFIG ### |
|
170 | ### LOGVIEW CONFIG ### | |
166 | ################################## |
|
171 | ################################## | |
167 | logview.sqlalchemy = #faa |
|
172 | logview.sqlalchemy = #faa | |
168 | logview.pylons.templating = #bfb |
|
173 | logview.pylons.templating = #bfb | |
169 | logview.pylons.util = #eee |
|
174 | logview.pylons.util = #eee | |
170 |
|
175 | |||
171 | ######################################################### |
|
176 | ######################################################### | |
172 | ### DB CONFIGS - EACH DB WILL HAVE IT'S OWN CONFIG ### |
|
177 | ### DB CONFIGS - EACH DB WILL HAVE IT'S OWN CONFIG ### | |
173 | ######################################################### |
|
178 | ######################################################### | |
174 |
|
179 | |||
175 | # SQLITE [default] |
|
180 | # SQLITE [default] | |
176 | sqlalchemy.db1.url = sqlite:///%(here)s/rhodecode.db |
|
181 | sqlalchemy.db1.url = sqlite:///%(here)s/rhodecode.db | |
177 |
|
182 | |||
178 | # POSTGRESQL |
|
183 | # POSTGRESQL | |
179 | # sqlalchemy.db1.url = postgresql://user:pass@localhost/rhodecode |
|
184 | # sqlalchemy.db1.url = postgresql://user:pass@localhost/rhodecode | |
180 |
|
185 | |||
181 | # MySQL |
|
186 | # MySQL | |
182 | # sqlalchemy.db1.url = mysql://user:pass@localhost/rhodecode |
|
187 | # sqlalchemy.db1.url = mysql://user:pass@localhost/rhodecode | |
183 |
|
188 | |||
184 | # see sqlalchemy docs for others |
|
189 | # see sqlalchemy docs for others | |
185 |
|
190 | |||
186 | sqlalchemy.db1.echo = false |
|
191 | sqlalchemy.db1.echo = false | |
187 | sqlalchemy.db1.pool_recycle = 3600 |
|
192 | sqlalchemy.db1.pool_recycle = 3600 | |
188 | sqlalchemy.convert_unicode = true |
|
193 | sqlalchemy.convert_unicode = true | |
189 |
|
194 | |||
190 | ################################ |
|
195 | ################################ | |
191 | ### LOGGING CONFIGURATION #### |
|
196 | ### LOGGING CONFIGURATION #### | |
192 | ################################ |
|
197 | ################################ | |
193 | [loggers] |
|
198 | [loggers] | |
194 | keys = root, routes, rhodecode, sqlalchemy, beaker, templates |
|
199 | keys = root, routes, rhodecode, sqlalchemy, beaker, templates | |
195 |
|
200 | |||
196 | [handlers] |
|
201 | [handlers] | |
197 | keys = console, console_sql |
|
202 | keys = console, console_sql | |
198 |
|
203 | |||
199 | [formatters] |
|
204 | [formatters] | |
200 | keys = generic, color_formatter, color_formatter_sql |
|
205 | keys = generic, color_formatter, color_formatter_sql | |
201 |
|
206 | |||
202 | ############# |
|
207 | ############# | |
203 | ## LOGGERS ## |
|
208 | ## LOGGERS ## | |
204 | ############# |
|
209 | ############# | |
205 | [logger_root] |
|
210 | [logger_root] | |
206 | level = NOTSET |
|
211 | level = NOTSET | |
207 | handlers = console |
|
212 | handlers = console | |
208 |
|
213 | |||
209 | [logger_routes] |
|
214 | [logger_routes] | |
210 | level = DEBUG |
|
215 | level = DEBUG | |
211 | handlers = |
|
216 | handlers = | |
212 | qualname = routes.middleware |
|
217 | qualname = routes.middleware | |
213 | # "level = DEBUG" logs the route matched and routing variables. |
|
218 | # "level = DEBUG" logs the route matched and routing variables. | |
214 | propagate = 1 |
|
219 | propagate = 1 | |
215 |
|
220 | |||
216 | [logger_beaker] |
|
221 | [logger_beaker] | |
217 | level = DEBUG |
|
222 | level = DEBUG | |
218 | handlers = |
|
223 | handlers = | |
219 | qualname = beaker.container |
|
224 | qualname = beaker.container | |
220 | propagate = 1 |
|
225 | propagate = 1 | |
221 |
|
226 | |||
222 | [logger_templates] |
|
227 | [logger_templates] | |
223 | level = INFO |
|
228 | level = INFO | |
224 | handlers = |
|
229 | handlers = | |
225 | qualname = pylons.templating |
|
230 | qualname = pylons.templating | |
226 | propagate = 1 |
|
231 | propagate = 1 | |
227 |
|
232 | |||
228 | [logger_rhodecode] |
|
233 | [logger_rhodecode] | |
229 | level = DEBUG |
|
234 | level = DEBUG | |
230 | handlers = |
|
235 | handlers = | |
231 | qualname = rhodecode |
|
236 | qualname = rhodecode | |
232 | propagate = 1 |
|
237 | propagate = 1 | |
233 |
|
238 | |||
234 | [logger_sqlalchemy] |
|
239 | [logger_sqlalchemy] | |
235 | level = INFO |
|
240 | level = INFO | |
236 | handlers = console_sql |
|
241 | handlers = console_sql | |
237 | qualname = sqlalchemy.engine |
|
242 | qualname = sqlalchemy.engine | |
238 | propagate = 0 |
|
243 | propagate = 0 | |
239 |
|
244 | |||
240 | ############## |
|
245 | ############## | |
241 | ## HANDLERS ## |
|
246 | ## HANDLERS ## | |
242 | ############## |
|
247 | ############## | |
243 |
|
248 | |||
244 | [handler_console] |
|
249 | [handler_console] | |
245 | class = StreamHandler |
|
250 | class = StreamHandler | |
246 | args = (sys.stderr,) |
|
251 | args = (sys.stderr,) | |
247 | level = INFO |
|
252 | level = INFO | |
248 | formatter = color_formatter |
|
253 | formatter = color_formatter | |
249 |
|
254 | |||
250 | [handler_console_sql] |
|
255 | [handler_console_sql] | |
251 | class = StreamHandler |
|
256 | class = StreamHandler | |
252 | args = (sys.stderr,) |
|
257 | args = (sys.stderr,) | |
253 | level = WARN |
|
258 | level = WARN | |
254 | formatter = color_formatter_sql |
|
259 | formatter = color_formatter_sql | |
255 |
|
260 | |||
256 | ################ |
|
261 | ################ | |
257 | ## FORMATTERS ## |
|
262 | ## FORMATTERS ## | |
258 | ################ |
|
263 | ################ | |
259 |
|
264 | |||
260 | [formatter_generic] |
|
265 | [formatter_generic] | |
261 | format = %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s |
|
266 | format = %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s | |
262 | datefmt = %Y-%m-%d %H:%M:%S |
|
267 | datefmt = %Y-%m-%d %H:%M:%S | |
263 |
|
268 | |||
264 | [formatter_color_formatter] |
|
269 | [formatter_color_formatter] | |
265 | class=rhodecode.lib.colored_formatter.ColorFormatter |
|
270 | class=rhodecode.lib.colored_formatter.ColorFormatter | |
266 | format= %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s |
|
271 | format= %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s | |
267 | datefmt = %Y-%m-%d %H:%M:%S |
|
272 | datefmt = %Y-%m-%d %H:%M:%S | |
268 |
|
273 | |||
269 | [formatter_color_formatter_sql] |
|
274 | [formatter_color_formatter_sql] | |
270 | class=rhodecode.lib.colored_formatter.ColorFormatterSql |
|
275 | class=rhodecode.lib.colored_formatter.ColorFormatterSql | |
271 | format= %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s |
|
276 | format= %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s | |
272 | datefmt = %Y-%m-%d %H:%M:%S No newline at end of file |
|
277 | datefmt = %Y-%m-%d %H:%M:%S |
General Comments 0
You need to be logged in to leave comments.
Login now