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