Show More
@@ -1,298 +1,355 b'' | |||
|
1 | 1 | ################################################################################ |
|
2 | 2 | ################################################################################ |
|
3 | 3 | # RhodeCode - Pylons environment configuration # |
|
4 | 4 | # # |
|
5 | 5 | # The %(here)s variable will be replaced with the parent directory of this file# |
|
6 | 6 | ################################################################################ |
|
7 | 7 | |
|
8 | 8 | [DEFAULT] |
|
9 | 9 | debug = true |
|
10 | 10 | pdebug = false |
|
11 | 11 | ################################################################################ |
|
12 | 12 | ## Uncomment and replace with the address which should receive ## |
|
13 | 13 | ## any error reports after application crash ## |
|
14 | 14 | ## Additionally those settings will be used by RhodeCode mailing system ## |
|
15 | 15 | ################################################################################ |
|
16 | 16 | #email_to = admin@localhost |
|
17 | 17 | #error_email_from = paste_error@localhost |
|
18 | 18 | #app_email_from = rhodecode-noreply@localhost |
|
19 | 19 | #error_message = |
|
20 | 20 | #email_prefix = [RhodeCode] |
|
21 | 21 | |
|
22 | 22 | #smtp_server = mail.server.com |
|
23 | 23 | #smtp_username = |
|
24 | 24 | #smtp_password = |
|
25 | 25 | #smtp_port = |
|
26 | 26 | #smtp_use_tls = false |
|
27 | 27 | #smtp_use_ssl = true |
|
28 | 28 | # Specify available auth parameters here (e.g. LOGIN PLAIN CRAM-MD5, etc.) |
|
29 | 29 | #smtp_auth = |
|
30 | 30 | |
|
31 | 31 | [server:main] |
|
32 | ## PASTE | |
|
32 | 33 | ##nr of threads to spawn |
|
33 | 34 | threadpool_workers = 5 |
|
34 | 35 | |
|
35 | 36 | ##max request before thread respawn |
|
36 |
threadpool_max_requests = |
|
|
37 | threadpool_max_requests = 10 | |
|
37 | 38 | |
|
38 | 39 | ##option to use threads of process |
|
39 | 40 | use_threadpool = true |
|
40 | 41 | |
|
41 | 42 | use = egg:Paste#http |
|
42 | #use = egg:waitress#main | |
|
43 | ||
|
44 | #WAITRESS | |
|
45 | threads = 5 | |
|
46 | use = egg:waitress#main | |
|
47 | ||
|
43 | 48 | host = 127.0.0.1 |
|
44 |
port = |
|
|
49 | port = 8001 | |
|
50 | ||
|
51 | [filter:proxy-prefix] | |
|
52 | # prefix middleware for rc | |
|
53 | use = egg:PasteDeploy#prefix | |
|
54 | prefix = /<your-prefix> | |
|
45 | 55 | |
|
46 | 56 | [app:main] |
|
47 | 57 | use = egg:rhodecode |
|
58 | #filter-with = proxy-prefix | |
|
48 | 59 | full_stack = true |
|
49 | 60 | static_files = true |
|
61 | # Optional Languages | |
|
62 | # en, fr, ja, pt_BR, zh_CN, zh_TW, pl | |
|
50 | 63 | lang=en |
|
51 | 64 | cache_dir = /tmp/rc/data |
|
52 | 65 | index_dir = /tmp/rc/index |
|
53 | 66 | app_instance_uuid = develop-test |
|
54 | 67 | cut_off_limit = 256000 |
|
68 | vcs_full_cache = True | |
|
69 | # force https in RhodeCode, fixes https redirects, assumes it's always https | |
|
55 | 70 | force_https = false |
|
71 | # use Strict-Transport-Security headers | |
|
72 | use_htsts = false | |
|
56 | 73 | commit_parse_limit = 25 |
|
74 | # number of items displayed in lightweight dashboard before paginating | |
|
75 | dashboard_items = 100 | |
|
57 | 76 | use_gravatar = true |
|
77 | ||
|
78 | # path to git executable | |
|
79 | git_path = git | |
|
80 | ||
|
81 | ## RSS feed options | |
|
82 | ||
|
83 | rss_cut_off_limit = 256000 | |
|
84 | rss_items_per_page = 10 | |
|
85 | rss_include_diff = false | |
|
86 | ||
|
87 | ||
|
88 | ## alternative_gravatar_url allows you to use your own avatar server application | |
|
89 | ## the following parts of the URL will be replaced | |
|
90 | ## {email} user email | |
|
91 | ## {md5email} md5 hash of the user email (like at gravatar.com) | |
|
92 | ## {size} size of the image that is expected from the server application | |
|
93 | ## {scheme} http/https from RhodeCode server | |
|
94 | ## {netloc} network location from RhodeCode server | |
|
95 | #alternative_gravatar_url = http://myavatarserver.com/getbyemail/{email}/{size} | |
|
96 | #alternative_gravatar_url = http://myavatarserver.com/getbymd5/{md5email}?s={size} | |
|
97 | ||
|
58 | 98 | container_auth_enabled = false |
|
59 | 99 | proxypass_auth_enabled = false |
|
60 | ||
|
100 | ## default encoding used to convert from and to unicode | |
|
101 | ## can be also a comma seperated list of encoding in case of mixed encodings | |
|
102 | default_encoding = utf8 | |
|
61 | 103 | |
|
62 | 104 | ## overwrite schema of clone url |
|
63 | 105 | ## available vars: |
|
64 | 106 | ## scheme - http/https |
|
65 | 107 | ## user - current user |
|
66 | 108 | ## pass - password |
|
67 | 109 | ## netloc - network location |
|
68 | 110 | ## path - usually repo_name |
|
69 | 111 | |
|
70 | 112 | #clone_uri = {scheme}://{user}{pass}{netloc}{path} |
|
71 | 113 | |
|
72 | 114 | ## issue tracking mapping for commits messages |
|
73 | 115 | ## comment out issue_pat, issue_server, issue_prefix to enable |
|
74 | 116 | |
|
75 | 117 | ## pattern to get the issues from commit messages |
|
76 | 118 | ## default one used here is #<numbers> with a regex passive group for `#` |
|
77 | 119 | ## {id} will be all groups matched from this pattern |
|
78 | 120 | |
|
79 | 121 | issue_pat = (?:\s*#)(\d+) |
|
80 | 122 | |
|
81 | 123 | ## server url to the issue, each {id} will be replaced with match |
|
82 | ## fetched from the regex and {repo} is replaced with repository name | |
|
124 | ## fetched from the regex and {repo} is replaced with full repository name | |
|
125 | ## including groups {repo_name} is replaced with just name of repo | |
|
83 | 126 | |
|
84 | 127 | issue_server_link = https://myissueserver.com/{repo}/issue/{id} |
|
85 | 128 | |
|
86 | 129 | ## prefix to add to link to indicate it's an url |
|
87 | 130 | ## #314 will be replaced by <issue_prefix><id> |
|
88 | 131 | |
|
89 | 132 | issue_prefix = # |
|
90 | 133 | |
|
134 | ## issue_pat, issue_server_link, issue_prefix can have suffixes to specify | |
|
135 | ## multiple patterns, to other issues server, wiki or others | |
|
136 | ## below an example how to create a wiki pattern | |
|
137 | # #wiki-some-id -> https://mywiki.com/some-id | |
|
138 | ||
|
139 | #issue_pat_wiki = (?:wiki-)(.+) | |
|
140 | #issue_server_link_wiki = https://mywiki.com/{id} | |
|
141 | #issue_prefix_wiki = WIKI- | |
|
142 | ||
|
143 | ||
|
91 | 144 | ## instance-id prefix |
|
92 | 145 | ## a prefix key for this instance used for cache invalidation when running |
|
93 | 146 | ## multiple instances of rhodecode, make sure it's globally unique for |
|
94 | 147 | ## all running rhodecode instances. Leave empty if you don't use it |
|
95 | 148 | instance_id = |
|
96 | 149 | |
|
97 | 150 | ## alternative return HTTP header for failed authentication. Default HTTP |
|
98 | 151 | ## response is 401 HTTPUnauthorized. Currently HG clients have troubles with |
|
99 | 152 | ## handling that. Set this variable to 403 to return HTTPForbidden |
|
100 | 153 | auth_ret_code = |
|
101 | 154 | |
|
102 | 155 | #################################### |
|
103 | 156 | ### CELERY CONFIG #### |
|
104 | 157 | #################################### |
|
105 | 158 | use_celery = false |
|
106 | 159 | broker.host = localhost |
|
107 | 160 | broker.vhost = rabbitmqhost |
|
108 | 161 | broker.port = 5672 |
|
109 | 162 | broker.user = rabbitmq |
|
110 | 163 | broker.password = qweqwe |
|
111 | 164 | |
|
112 | 165 | celery.imports = rhodecode.lib.celerylib.tasks |
|
113 | 166 | |
|
114 | 167 | celery.result.backend = amqp |
|
115 | 168 | celery.result.dburi = amqp:// |
|
116 | 169 | celery.result.serialier = json |
|
117 | 170 | |
|
118 | 171 | #celery.send.task.error.emails = true |
|
119 | 172 | #celery.amqp.task.result.expires = 18000 |
|
120 | 173 | |
|
121 | 174 | celeryd.concurrency = 2 |
|
122 | 175 | #celeryd.log.file = celeryd.log |
|
123 | 176 | celeryd.log.level = debug |
|
124 | 177 | celeryd.max.tasks.per.child = 1 |
|
125 | 178 | |
|
126 | 179 | #tasks will never be sent to the queue, but executed locally instead. |
|
127 | 180 | celery.always.eager = false |
|
128 | 181 | |
|
129 | 182 | #################################### |
|
130 | 183 | ### BEAKER CACHE #### |
|
131 | 184 | #################################### |
|
132 | 185 | beaker.cache.data_dir=/tmp/rc/data/cache/data |
|
133 | 186 | beaker.cache.lock_dir=/tmp/rc/data/cache/lock |
|
134 | 187 | |
|
135 | 188 | beaker.cache.regions=super_short_term,short_term,long_term,sql_cache_short,sql_cache_med,sql_cache_long |
|
136 | 189 | |
|
137 | 190 | beaker.cache.super_short_term.type=memory |
|
138 | 191 | beaker.cache.super_short_term.expire=1 |
|
139 | 192 | beaker.cache.super_short_term.key_length = 256 |
|
140 | 193 | |
|
141 | 194 | beaker.cache.short_term.type=memory |
|
142 | 195 | beaker.cache.short_term.expire=60 |
|
143 | 196 | beaker.cache.short_term.key_length = 256 |
|
144 | 197 | |
|
145 | 198 | beaker.cache.long_term.type=memory |
|
146 | 199 | beaker.cache.long_term.expire=36000 |
|
147 | 200 | beaker.cache.long_term.key_length = 256 |
|
148 | 201 | |
|
149 | 202 | beaker.cache.sql_cache_short.type=memory |
|
150 | 203 | beaker.cache.sql_cache_short.expire=1 |
|
151 | 204 | beaker.cache.sql_cache_short.key_length = 256 |
|
152 | 205 | |
|
153 | 206 | beaker.cache.sql_cache_med.type=memory |
|
154 | 207 | beaker.cache.sql_cache_med.expire=360 |
|
155 | 208 | beaker.cache.sql_cache_med.key_length = 256 |
|
156 | 209 | |
|
157 | 210 | beaker.cache.sql_cache_long.type=file |
|
158 | 211 | beaker.cache.sql_cache_long.expire=3600 |
|
159 | 212 | beaker.cache.sql_cache_long.key_length = 256 |
|
160 | 213 | |
|
161 | 214 | #################################### |
|
162 | 215 | ### BEAKER SESSION #### |
|
163 | 216 | #################################### |
|
164 | 217 | ## Type of storage used for the session, current types are |
|
165 | 218 | ## dbm, file, memcached, database, and memory. |
|
166 | 219 | ## The storage uses the Container API |
|
167 | 220 | ## that is also used by the cache system. |
|
168 | 221 | |
|
169 |
## db session |
|
|
170 | ||
|
222 | ## db session ## | |
|
171 | 223 | #beaker.session.type = ext:database |
|
172 | 224 | #beaker.session.sa.url = postgresql://postgres:qwe@localhost/rhodecode |
|
173 | 225 | #beaker.session.table_name = db_session |
|
174 | 226 | |
|
175 | ## encrypted cookie session, good for many instances | |
|
227 | ## encrypted cookie client side session, good for many instances ## | |
|
176 | 228 | #beaker.session.type = cookie |
|
177 | 229 | |
|
178 | beaker.session.type = file | |
|
230 | ## file based cookies (default) ## | |
|
231 | #beaker.session.type = file | |
|
232 | ||
|
233 | ||
|
179 | 234 | beaker.session.key = rhodecode |
|
180 | # secure cookie requires AES python libraries | |
|
235 | ## secure cookie requires AES python libraries ## | |
|
181 | 236 | #beaker.session.encrypt_key = g654dcno0-9873jhgfreyu |
|
182 | 237 | #beaker.session.validate_key = 9712sds2212c--zxc123 |
|
183 | beaker.session.timeout = 36000 | |
|
238 | ## sets session as invalid if it haven't been accessed for given amount of time | |
|
239 | beaker.session.timeout = 3600 | |
|
184 | 240 | beaker.session.httponly = true |
|
241 | #beaker.session.cookie_path = /<your-prefix> | |
|
185 | 242 | |
|
186 | ## uncomment for https secure cookie | |
|
243 | ## uncomment for https secure cookie ## | |
|
187 | 244 | beaker.session.secure = false |
|
188 | 245 | |
|
189 | ##auto save the session to not to use .save() | |
|
246 | ## auto save the session to not to use .save() ## | |
|
190 | 247 | beaker.session.auto = False |
|
191 | 248 | |
|
192 | ##true exire at browser close | |
|
249 | ## default cookie expiration time in seconds `true` expire at browser close ## | |
|
193 | 250 | #beaker.session.cookie_expires = 3600 |
|
194 | 251 | |
|
195 | 252 | |
|
196 | 253 | ################################################################################ |
|
197 | 254 | ## WARNING: *THE LINE BELOW MUST BE UNCOMMENTED ON A PRODUCTION ENVIRONMENT* ## |
|
198 | 255 | ## Debug mode will enable the interactive debugging tool, allowing ANYONE to ## |
|
199 | 256 | ## execute malicious code after an exception is raised. ## |
|
200 | 257 | ################################################################################ |
|
201 |
|
|
|
258 | set debug = false | |
|
202 | 259 | |
|
203 | 260 | ################################## |
|
204 | 261 | ### LOGVIEW CONFIG ### |
|
205 | 262 | ################################## |
|
206 | 263 | logview.sqlalchemy = #faa |
|
207 | 264 | logview.pylons.templating = #bfb |
|
208 | 265 | logview.pylons.util = #eee |
|
209 | 266 | |
|
210 | 267 | ######################################################### |
|
211 | 268 | ### DB CONFIGS - EACH DB WILL HAVE IT'S OWN CONFIG ### |
|
212 | 269 | ######################################################### |
|
213 | 270 | sqlalchemy.db1.url = sqlite:///%(here)s/rhodecode_test.sqlite |
|
214 | 271 | #sqlalchemy.db1.url = postgresql://postgres:qwe@localhost/rhodecode_test |
|
215 | 272 | #sqlalchemy.db1.url = mysql://root:qwe@localhost/rhodecode_test |
|
216 | 273 | |
|
217 | 274 | sqlalchemy.db1.echo = false |
|
218 | 275 | sqlalchemy.db1.pool_recycle = 3600 |
|
219 | 276 | sqlalchemy.db1.convert_unicode = true |
|
220 | 277 | |
|
221 | 278 | ################################ |
|
222 | 279 | ### LOGGING CONFIGURATION #### |
|
223 | 280 | ################################ |
|
224 | 281 | [loggers] |
|
225 | 282 | keys = root, routes, rhodecode, sqlalchemy, beaker, templates, whoosh_indexer |
|
226 | 283 | |
|
227 | 284 | [handlers] |
|
228 | 285 | keys = console |
|
229 | 286 | |
|
230 | 287 | [formatters] |
|
231 | 288 | keys = generic, color_formatter |
|
232 | 289 | |
|
233 | 290 | ############# |
|
234 | 291 | ## LOGGERS ## |
|
235 | 292 | ############# |
|
236 | 293 | [logger_root] |
|
237 | 294 | level = DEBUG |
|
238 | 295 | handlers = console |
|
239 | 296 | |
|
240 | 297 | [logger_routes] |
|
241 | 298 | level = DEBUG |
|
242 | 299 | handlers = |
|
243 | 300 | qualname = routes.middleware |
|
244 | 301 | # "level = DEBUG" logs the route matched and routing variables. |
|
245 | 302 | propagate = 1 |
|
246 | 303 | |
|
247 | 304 | [logger_beaker] |
|
248 | 305 | level = DEBUG |
|
249 | 306 | handlers = |
|
250 | 307 | qualname = beaker.container |
|
251 | 308 | propagate = 1 |
|
252 | 309 | |
|
253 | 310 | [logger_templates] |
|
254 | 311 | level = INFO |
|
255 | 312 | handlers = |
|
256 | 313 | qualname = pylons.templating |
|
257 | 314 | propagate = 1 |
|
258 | 315 | |
|
259 | 316 | [logger_rhodecode] |
|
260 | 317 | level = DEBUG |
|
261 | 318 | handlers = |
|
262 | 319 | qualname = rhodecode |
|
263 | 320 | propagate = 1 |
|
264 | 321 | |
|
265 | 322 | [logger_sqlalchemy] |
|
266 | 323 | level = ERROR |
|
267 | 324 | handlers = console |
|
268 | 325 | qualname = sqlalchemy.engine |
|
269 | 326 | propagate = 0 |
|
270 | 327 | |
|
271 | 328 | [logger_whoosh_indexer] |
|
272 | 329 | level = DEBUG |
|
273 | 330 | handlers = |
|
274 | 331 | qualname = whoosh_indexer |
|
275 | 332 | propagate = 1 |
|
276 | 333 | |
|
277 | 334 | ############## |
|
278 | 335 | ## HANDLERS ## |
|
279 | 336 | ############## |
|
280 | 337 | |
|
281 | 338 | [handler_console] |
|
282 | 339 | class = StreamHandler |
|
283 | 340 | args = (sys.stderr,) |
|
284 | 341 | level = NOTSET |
|
285 | 342 | formatter = generic |
|
286 | 343 | |
|
287 | 344 | ################ |
|
288 | 345 | ## FORMATTERS ## |
|
289 | 346 | ################ |
|
290 | 347 | |
|
291 | 348 | [formatter_generic] |
|
292 | 349 | format = %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s |
|
293 | 350 | datefmt = %Y-%m-%d %H:%M:%S |
|
294 | 351 | |
|
295 | 352 | [formatter_color_formatter] |
|
296 | 353 | class=rhodecode.lib.colored_formatter.ColorFormatter |
|
297 | 354 | format= %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s |
|
298 | 355 | datefmt = %Y-%m-%d %H:%M:%S |
General Comments 0
You need to be logged in to leave comments.
Login now