Show More
@@ -1,292 +1,297 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 = 2 |
|
36 | threadpool_max_requests = 2 | |
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 = /tmp/data |
|
50 | cache_dir = /tmp/data | |
51 | index_dir = /tmp/index |
|
51 | index_dir = /tmp/index | |
52 | app_instance_uuid = develop-test |
|
52 | app_instance_uuid = develop-test | |
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 |
|
60 | |||
61 | ## overwrite schema of clone url |
|
61 | ## overwrite schema of clone url | |
62 | ## available vars: |
|
62 | ## available vars: | |
63 | ## scheme - http/https |
|
63 | ## scheme - http/https | |
64 | ## user - current user |
|
64 | ## user - current user | |
65 | ## pass - password |
|
65 | ## pass - password | |
66 | ## netloc - network location |
|
66 | ## netloc - network location | |
67 | ## path - usually repo_name |
|
67 | ## path - usually repo_name | |
68 |
|
68 | |||
69 | #clone_uri = {scheme}://{user}{pass}{netloc}{path} |
|
69 | #clone_uri = {scheme}://{user}{pass}{netloc}{path} | |
70 |
|
70 | |||
71 | ## issue tracking mapping for commits messages |
|
71 | ## issue tracking mapping for commits messages | |
72 | ## comment out issue_pat, issue_server, issue_prefix to enable |
|
72 | ## comment out issue_pat, issue_server, issue_prefix to enable | |
73 |
|
73 | |||
74 | ## pattern to get the issues from commit messages |
|
74 | ## pattern to get the issues from commit messages | |
75 | ## default one used here is #<numbers> with a regex passive group for `#` |
|
75 | ## default one used here is #<numbers> with a regex passive group for `#` | |
76 | ## {id} will be all groups matched from this pattern |
|
76 | ## {id} will be all groups matched from this pattern | |
77 |
|
77 | |||
78 | issue_pat = (?:\s*#)(\d+) |
|
78 | issue_pat = (?:\s*#)(\d+) | |
79 |
|
79 | |||
80 | ## server url to the issue, each {id} will be replaced with match |
|
80 | ## server url to the issue, each {id} will be replaced with match | |
81 | ## fetched from the regex and {repo} is replaced with repository name |
|
81 | ## fetched from the regex and {repo} is replaced with repository name | |
82 |
|
82 | |||
83 | issue_server_link = https://myissueserver.com/{repo}/issue/{id} |
|
83 | issue_server_link = https://myissueserver.com/{repo}/issue/{id} | |
84 |
|
84 | |||
85 | ## prefix to add to link to indicate it's an url |
|
85 | ## prefix to add to link to indicate it's an url | |
86 | ## #314 will be replaced by <issue_prefix><id> |
|
86 | ## #314 will be replaced by <issue_prefix><id> | |
87 |
|
87 | |||
88 | issue_prefix = # |
|
88 | issue_prefix = # | |
89 |
|
89 | |||
90 | ## instance-id prefix |
|
90 | ## instance-id prefix | |
91 | ## a prefix key for this instance used for cache invalidation when running |
|
91 | ## a prefix key for this instance used for cache invalidation when running | |
92 | ## multiple instances of rhodecode, make sure it's globally unique for |
|
92 | ## multiple instances of rhodecode, make sure it's globally unique for | |
93 | ## all running rhodecode instances. Leave empty if you don't use it |
|
93 | ## all running rhodecode instances. Leave empty if you don't use it | |
94 |
instance_id = |
|
94 | instance_id = | |
95 |
|
95 | |||
|
96 | ## alternative return HTTP header for failed authentication. Default HTTP | |||
|
97 | ## response is 401 HTTPUnauthorized. Currently HG clients have troubles with | |||
|
98 | ## handling that. Set this variable to 403 to return HTTPForbidden | |||
|
99 | auth_ret_code = | |||
|
100 | ||||
96 | #################################### |
|
101 | #################################### | |
97 | ### CELERY CONFIG #### |
|
102 | ### CELERY CONFIG #### | |
98 | #################################### |
|
103 | #################################### | |
99 | use_celery = false |
|
104 | use_celery = false | |
100 | broker.host = localhost |
|
105 | broker.host = localhost | |
101 | broker.vhost = rabbitmqhost |
|
106 | broker.vhost = rabbitmqhost | |
102 | broker.port = 5672 |
|
107 | broker.port = 5672 | |
103 | broker.user = rabbitmq |
|
108 | broker.user = rabbitmq | |
104 | broker.password = qweqwe |
|
109 | broker.password = qweqwe | |
105 |
|
110 | |||
106 | celery.imports = rhodecode.lib.celerylib.tasks |
|
111 | celery.imports = rhodecode.lib.celerylib.tasks | |
107 |
|
112 | |||
108 | celery.result.backend = amqp |
|
113 | celery.result.backend = amqp | |
109 | celery.result.dburi = amqp:// |
|
114 | celery.result.dburi = amqp:// | |
110 | celery.result.serialier = json |
|
115 | celery.result.serialier = json | |
111 |
|
116 | |||
112 | #celery.send.task.error.emails = true |
|
117 | #celery.send.task.error.emails = true | |
113 | #celery.amqp.task.result.expires = 18000 |
|
118 | #celery.amqp.task.result.expires = 18000 | |
114 |
|
119 | |||
115 | celeryd.concurrency = 2 |
|
120 | celeryd.concurrency = 2 | |
116 | #celeryd.log.file = celeryd.log |
|
121 | #celeryd.log.file = celeryd.log | |
117 | celeryd.log.level = debug |
|
122 | celeryd.log.level = debug | |
118 | celeryd.max.tasks.per.child = 1 |
|
123 | celeryd.max.tasks.per.child = 1 | |
119 |
|
124 | |||
120 | #tasks will never be sent to the queue, but executed locally instead. |
|
125 | #tasks will never be sent to the queue, but executed locally instead. | |
121 | celery.always.eager = false |
|
126 | celery.always.eager = false | |
122 |
|
127 | |||
123 | #################################### |
|
128 | #################################### | |
124 | ### BEAKER CACHE #### |
|
129 | ### BEAKER CACHE #### | |
125 | #################################### |
|
130 | #################################### | |
126 | beaker.cache.data_dir=/tmp/data/cache/data |
|
131 | beaker.cache.data_dir=/tmp/data/cache/data | |
127 | beaker.cache.lock_dir=/tmp/data/cache/lock |
|
132 | beaker.cache.lock_dir=/tmp/data/cache/lock | |
128 |
|
133 | |||
129 | beaker.cache.regions=super_short_term,short_term,long_term,sql_cache_short,sql_cache_med,sql_cache_long |
|
134 | beaker.cache.regions=super_short_term,short_term,long_term,sql_cache_short,sql_cache_med,sql_cache_long | |
130 |
|
135 | |||
131 | beaker.cache.super_short_term.type=memory |
|
136 | beaker.cache.super_short_term.type=memory | |
132 | beaker.cache.super_short_term.expire=1 |
|
137 | beaker.cache.super_short_term.expire=1 | |
133 | beaker.cache.super_short_term.key_length = 256 |
|
138 | beaker.cache.super_short_term.key_length = 256 | |
134 |
|
139 | |||
135 | beaker.cache.short_term.type=memory |
|
140 | beaker.cache.short_term.type=memory | |
136 | beaker.cache.short_term.expire=60 |
|
141 | beaker.cache.short_term.expire=60 | |
137 | beaker.cache.short_term.key_length = 256 |
|
142 | beaker.cache.short_term.key_length = 256 | |
138 |
|
143 | |||
139 | beaker.cache.long_term.type=memory |
|
144 | beaker.cache.long_term.type=memory | |
140 | beaker.cache.long_term.expire=36000 |
|
145 | beaker.cache.long_term.expire=36000 | |
141 | beaker.cache.long_term.key_length = 256 |
|
146 | beaker.cache.long_term.key_length = 256 | |
142 |
|
147 | |||
143 | beaker.cache.sql_cache_short.type=memory |
|
148 | beaker.cache.sql_cache_short.type=memory | |
144 | beaker.cache.sql_cache_short.expire=1 |
|
149 | beaker.cache.sql_cache_short.expire=1 | |
145 | beaker.cache.sql_cache_short.key_length = 256 |
|
150 | beaker.cache.sql_cache_short.key_length = 256 | |
146 |
|
151 | |||
147 | beaker.cache.sql_cache_med.type=memory |
|
152 | beaker.cache.sql_cache_med.type=memory | |
148 | beaker.cache.sql_cache_med.expire=360 |
|
153 | beaker.cache.sql_cache_med.expire=360 | |
149 | beaker.cache.sql_cache_med.key_length = 256 |
|
154 | beaker.cache.sql_cache_med.key_length = 256 | |
150 |
|
155 | |||
151 | beaker.cache.sql_cache_long.type=file |
|
156 | beaker.cache.sql_cache_long.type=file | |
152 | beaker.cache.sql_cache_long.expire=3600 |
|
157 | beaker.cache.sql_cache_long.expire=3600 | |
153 | beaker.cache.sql_cache_long.key_length = 256 |
|
158 | beaker.cache.sql_cache_long.key_length = 256 | |
154 |
|
159 | |||
155 | #################################### |
|
160 | #################################### | |
156 | ### BEAKER SESSION #### |
|
161 | ### BEAKER SESSION #### | |
157 | #################################### |
|
162 | #################################### | |
158 | ## Type of storage used for the session, current types are |
|
163 | ## Type of storage used for the session, current types are | |
159 | ## dbm, file, memcached, database, and memory. |
|
164 | ## dbm, file, memcached, database, and memory. | |
160 | ## The storage uses the Container API |
|
165 | ## The storage uses the Container API | |
161 | ## that is also used by the cache system. |
|
166 | ## that is also used by the cache system. | |
162 |
|
167 | |||
163 | ## db session example |
|
168 | ## db session example | |
164 |
|
169 | |||
165 | #beaker.session.type = ext:database |
|
170 | #beaker.session.type = ext:database | |
166 | #beaker.session.sa.url = postgresql://postgres:qwe@localhost/rhodecode |
|
171 | #beaker.session.sa.url = postgresql://postgres:qwe@localhost/rhodecode | |
167 | #beaker.session.table_name = db_session |
|
172 | #beaker.session.table_name = db_session | |
168 |
|
173 | |||
169 | ## encrypted cookie session, good for many instances |
|
174 | ## encrypted cookie session, good for many instances | |
170 | #beaker.session.type = cookie |
|
175 | #beaker.session.type = cookie | |
171 |
|
176 | |||
172 | beaker.session.type = file |
|
177 | beaker.session.type = file | |
173 | beaker.session.key = rhodecode |
|
178 | beaker.session.key = rhodecode | |
174 | # secure cookie requires AES python libraries |
|
179 | # secure cookie requires AES python libraries | |
175 | #beaker.session.encrypt_key = g654dcno0-9873jhgfreyu |
|
180 | #beaker.session.encrypt_key = g654dcno0-9873jhgfreyu | |
176 | #beaker.session.validate_key = 9712sds2212c--zxc123 |
|
181 | #beaker.session.validate_key = 9712sds2212c--zxc123 | |
177 | beaker.session.timeout = 36000 |
|
182 | beaker.session.timeout = 36000 | |
178 | beaker.session.httponly = true |
|
183 | beaker.session.httponly = true | |
179 |
|
184 | |||
180 | ## uncomment for https secure cookie |
|
185 | ## uncomment for https secure cookie | |
181 | beaker.session.secure = false |
|
186 | beaker.session.secure = false | |
182 |
|
187 | |||
183 | ##auto save the session to not to use .save() |
|
188 | ##auto save the session to not to use .save() | |
184 | beaker.session.auto = False |
|
189 | beaker.session.auto = False | |
185 |
|
190 | |||
186 | ##true exire at browser close |
|
191 | ##true exire at browser close | |
187 | #beaker.session.cookie_expires = 3600 |
|
192 | #beaker.session.cookie_expires = 3600 | |
188 |
|
193 | |||
189 |
|
194 | |||
190 | ################################################################################ |
|
195 | ################################################################################ | |
191 | ## WARNING: *THE LINE BELOW MUST BE UNCOMMENTED ON A PRODUCTION ENVIRONMENT* ## |
|
196 | ## WARNING: *THE LINE BELOW MUST BE UNCOMMENTED ON A PRODUCTION ENVIRONMENT* ## | |
192 | ## Debug mode will enable the interactive debugging tool, allowing ANYONE to ## |
|
197 | ## Debug mode will enable the interactive debugging tool, allowing ANYONE to ## | |
193 | ## execute malicious code after an exception is raised. ## |
|
198 | ## execute malicious code after an exception is raised. ## | |
194 | ################################################################################ |
|
199 | ################################################################################ | |
195 | #set debug = false |
|
200 | #set debug = false | |
196 |
|
201 | |||
197 | ################################## |
|
202 | ################################## | |
198 | ### LOGVIEW CONFIG ### |
|
203 | ### LOGVIEW CONFIG ### | |
199 | ################################## |
|
204 | ################################## | |
200 | logview.sqlalchemy = #faa |
|
205 | logview.sqlalchemy = #faa | |
201 | logview.pylons.templating = #bfb |
|
206 | logview.pylons.templating = #bfb | |
202 | logview.pylons.util = #eee |
|
207 | logview.pylons.util = #eee | |
203 |
|
208 | |||
204 | ######################################################### |
|
209 | ######################################################### | |
205 | ### DB CONFIGS - EACH DB WILL HAVE IT'S OWN CONFIG ### |
|
210 | ### DB CONFIGS - EACH DB WILL HAVE IT'S OWN CONFIG ### | |
206 | ######################################################### |
|
211 | ######################################################### | |
207 | sqlalchemy.db1.url = sqlite:///%(here)s/test.db |
|
212 | sqlalchemy.db1.url = sqlite:///%(here)s/test.db | |
208 | #sqlalchemy.db1.url = postgresql://postgres:qwe@localhost/rhodecode_tests |
|
213 | #sqlalchemy.db1.url = postgresql://postgres:qwe@localhost/rhodecode_tests | |
209 | #sqlalchemy.db1.url = mysql://root:qwe123qwe@localhost/rhodecode_tests |
|
214 | #sqlalchemy.db1.url = mysql://root:qwe123qwe@localhost/rhodecode_tests | |
210 |
|
215 | |||
211 | sqlalchemy.db1.echo = false |
|
216 | sqlalchemy.db1.echo = false | |
212 | sqlalchemy.db1.pool_recycle = 3600 |
|
217 | sqlalchemy.db1.pool_recycle = 3600 | |
213 | sqlalchemy.db1.convert_unicode = true |
|
218 | sqlalchemy.db1.convert_unicode = true | |
214 |
|
219 | |||
215 | ################################ |
|
220 | ################################ | |
216 | ### LOGGING CONFIGURATION #### |
|
221 | ### LOGGING CONFIGURATION #### | |
217 | ################################ |
|
222 | ################################ | |
218 | [loggers] |
|
223 | [loggers] | |
219 | keys = root, routes, rhodecode, sqlalchemy, beaker, templates, whoosh_indexer |
|
224 | keys = root, routes, rhodecode, sqlalchemy, beaker, templates, whoosh_indexer | |
220 |
|
225 | |||
221 | [handlers] |
|
226 | [handlers] | |
222 | keys = console |
|
227 | keys = console | |
223 |
|
228 | |||
224 | [formatters] |
|
229 | [formatters] | |
225 | keys = generic, color_formatter |
|
230 | keys = generic, color_formatter | |
226 |
|
231 | |||
227 | ############# |
|
232 | ############# | |
228 | ## LOGGERS ## |
|
233 | ## LOGGERS ## | |
229 | ############# |
|
234 | ############# | |
230 | [logger_root] |
|
235 | [logger_root] | |
231 | level = ERROR |
|
236 | level = ERROR | |
232 | handlers = console |
|
237 | handlers = console | |
233 |
|
238 | |||
234 | [logger_routes] |
|
239 | [logger_routes] | |
235 | level = ERROR |
|
240 | level = ERROR | |
236 | handlers = |
|
241 | handlers = | |
237 | qualname = routes.middleware |
|
242 | qualname = routes.middleware | |
238 | # "level = DEBUG" logs the route matched and routing variables. |
|
243 | # "level = DEBUG" logs the route matched and routing variables. | |
239 | propagate = 1 |
|
244 | propagate = 1 | |
240 |
|
245 | |||
241 | [logger_beaker] |
|
246 | [logger_beaker] | |
242 | level = DEBUG |
|
247 | level = DEBUG | |
243 | handlers = |
|
248 | handlers = | |
244 | qualname = beaker.container |
|
249 | qualname = beaker.container | |
245 | propagate = 1 |
|
250 | propagate = 1 | |
246 |
|
251 | |||
247 | [logger_templates] |
|
252 | [logger_templates] | |
248 | level = INFO |
|
253 | level = INFO | |
249 | handlers = |
|
254 | handlers = | |
250 | qualname = pylons.templating |
|
255 | qualname = pylons.templating | |
251 | propagate = 1 |
|
256 | propagate = 1 | |
252 |
|
257 | |||
253 | [logger_rhodecode] |
|
258 | [logger_rhodecode] | |
254 | level = ERROR |
|
259 | level = ERROR | |
255 | handlers = |
|
260 | handlers = | |
256 | qualname = rhodecode |
|
261 | qualname = rhodecode | |
257 | propagate = 1 |
|
262 | propagate = 1 | |
258 |
|
263 | |||
259 | [logger_sqlalchemy] |
|
264 | [logger_sqlalchemy] | |
260 | level = ERROR |
|
265 | level = ERROR | |
261 | handlers = console |
|
266 | handlers = console | |
262 | qualname = sqlalchemy.engine |
|
267 | qualname = sqlalchemy.engine | |
263 | propagate = 0 |
|
268 | propagate = 0 | |
264 |
|
269 | |||
265 | [logger_whoosh_indexer] |
|
270 | [logger_whoosh_indexer] | |
266 | level = DEBUG |
|
271 | level = DEBUG | |
267 | handlers = |
|
272 | handlers = | |
268 | qualname = whoosh_indexer |
|
273 | qualname = whoosh_indexer | |
269 | propagate = 1 |
|
274 | propagate = 1 | |
270 |
|
275 | |||
271 | ############## |
|
276 | ############## | |
272 | ## HANDLERS ## |
|
277 | ## HANDLERS ## | |
273 | ############## |
|
278 | ############## | |
274 |
|
279 | |||
275 | [handler_console] |
|
280 | [handler_console] | |
276 | class = StreamHandler |
|
281 | class = StreamHandler | |
277 | args = (sys.stderr,) |
|
282 | args = (sys.stderr,) | |
278 | level = NOTSET |
|
283 | level = NOTSET | |
279 | formatter = generic |
|
284 | formatter = generic | |
280 |
|
285 | |||
281 | ################ |
|
286 | ################ | |
282 | ## FORMATTERS ## |
|
287 | ## FORMATTERS ## | |
283 | ################ |
|
288 | ################ | |
284 |
|
289 | |||
285 | [formatter_generic] |
|
290 | [formatter_generic] | |
286 | format = %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s |
|
291 | format = %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s | |
287 | datefmt = %Y-%m-%d %H:%M:%S |
|
292 | datefmt = %Y-%m-%d %H:%M:%S | |
288 |
|
293 | |||
289 | [formatter_color_formatter] |
|
294 | [formatter_color_formatter] | |
290 | class=rhodecode.lib.colored_formatter.ColorFormatter |
|
295 | class=rhodecode.lib.colored_formatter.ColorFormatter | |
291 | format= %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s |
|
296 | format= %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s | |
292 | datefmt = %Y-%m-%d %H:%M:%S No newline at end of file |
|
297 | datefmt = %Y-%m-%d %H:%M:%S |
General Comments 0
You need to be logged in to leave comments.
Login now