Show More
@@ -1,651 +1,652 b'' | |||
|
1 | 1 | ################################################################################ |
|
2 | 2 | ################################################################################ |
|
3 | 3 | # RhodeCode Enterprise - configuration file # |
|
4 | 4 | # Built-in functions and variables # |
|
5 | 5 | # The %(here)s variable will be replaced with the parent directory of this file# |
|
6 | 6 | # # |
|
7 | 7 | ################################################################################ |
|
8 | 8 | |
|
9 | 9 | [DEFAULT] |
|
10 | 10 | debug = true |
|
11 | 11 | ################################################################################ |
|
12 | 12 | ## Uncomment and replace with the email address which should receive ## |
|
13 | 13 | ## any error reports after an application crash ## |
|
14 | 14 | ## Additionally these settings will be used by the 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 | 32 | ## COMMON ## |
|
33 | 33 | host = 127.0.0.1 |
|
34 | 34 | port = 5000 |
|
35 | 35 | |
|
36 | 36 | ################################## |
|
37 | 37 | ## WAITRESS WSGI SERVER ## |
|
38 | 38 | ## Recommended for Development ## |
|
39 | 39 | ################################## |
|
40 | 40 | use = egg:waitress#main |
|
41 | 41 | ## number of worker threads |
|
42 | 42 | threads = 5 |
|
43 | 43 | ## MAX BODY SIZE 100GB |
|
44 | 44 | max_request_body_size = 107374182400 |
|
45 | 45 | ## Use poll instead of select, fixes file descriptors limits problems. |
|
46 | 46 | ## May not work on old windows systems. |
|
47 | 47 | asyncore_use_poll = true |
|
48 | 48 | |
|
49 | 49 | |
|
50 | 50 | ########################## |
|
51 | 51 | ## GUNICORN WSGI SERVER ## |
|
52 | 52 | ########################## |
|
53 | 53 | ## run with gunicorn --log-config <inifile.ini> --paste <inifile.ini> |
|
54 | 54 | #use = egg:gunicorn#main |
|
55 | 55 | ## Sets the number of process workers. You must set `instance_id = *` |
|
56 | 56 | ## when this option is set to more than one worker, recommended |
|
57 | 57 | ## value is (2 * NUMBER_OF_CPUS + 1), eg 2CPU = 5 workers |
|
58 | 58 | ## The `instance_id = *` must be set in the [app:main] section below |
|
59 | 59 | #workers = 2 |
|
60 | 60 | ## number of threads for each of the worker, must be set to 1 for gevent |
|
61 | 61 | ## generally recommened to be at 1 |
|
62 | 62 | #threads = 1 |
|
63 | 63 | ## process name |
|
64 | 64 | #proc_name = rhodecode |
|
65 | 65 | ## type of worker class, one of sync, gevent |
|
66 | 66 | ## recommended for bigger setup is using of of other than sync one |
|
67 | 67 | #worker_class = sync |
|
68 | 68 | ## The maximum number of simultaneous clients. Valid only for Gevent |
|
69 | 69 | #worker_connections = 10 |
|
70 | 70 | ## max number of requests that worker will handle before being gracefully |
|
71 | 71 | ## restarted, could prevent memory leaks |
|
72 | 72 | #max_requests = 1000 |
|
73 | 73 | #max_requests_jitter = 30 |
|
74 | 74 | ## amount of time a worker can spend with handling a request before it |
|
75 | 75 | ## gets killed and restarted. Set to 6hrs |
|
76 | 76 | #timeout = 21600 |
|
77 | 77 | |
|
78 | 78 | |
|
79 | 79 | ## prefix middleware for RhodeCode, disables force_https flag. |
|
80 | 80 | ## recommended when using proxy setup. |
|
81 | 81 | ## allows to set RhodeCode under a prefix in server. |
|
82 | 82 | ## eg https://server.com/<prefix>. Enable `filter-with =` option below as well. |
|
83 | 83 | ## optionally set prefix like: `prefix = /<your-prefix>` |
|
84 |
|
|
|
85 |
|
|
|
86 |
|
|
|
84 | [filter:proxy-prefix] | |
|
85 | use = egg:PasteDeploy#prefix | |
|
86 | prefix = / | |
|
87 | 87 | |
|
88 | 88 | [app:main] |
|
89 | 89 | use = egg:rhodecode-enterprise-ce |
|
90 | ## enable proxy prefix middleware, defined below | |
|
90 | ||
|
91 | ## enable proxy prefix middleware, defined above | |
|
91 | 92 | #filter-with = proxy-prefix |
|
92 | 93 | |
|
93 | 94 | # During development the we want to have the debug toolbar enabled |
|
94 | 95 | pyramid.includes = |
|
95 | 96 | pyramid_debugtoolbar |
|
96 | 97 | rhodecode.utils.debugtoolbar |
|
97 | 98 | rhodecode.lib.middleware.request_wrapper |
|
98 | 99 | |
|
99 | 100 | pyramid.reload_templates = true |
|
100 | 101 | |
|
101 | 102 | debugtoolbar.hosts = 0.0.0.0/0 |
|
102 | 103 | debugtoolbar.exclude_prefixes = |
|
103 | 104 | /css |
|
104 | 105 | /fonts |
|
105 | 106 | /images |
|
106 | 107 | /js |
|
107 | 108 | |
|
108 | 109 | ## RHODECODE PLUGINS ## |
|
109 | 110 | rhodecode.includes = |
|
110 | 111 | rhodecode.api |
|
111 | 112 | |
|
112 | 113 | |
|
113 | 114 | # api prefix url |
|
114 | 115 | rhodecode.api.url = /_admin/api |
|
115 | 116 | |
|
116 | 117 | |
|
117 | 118 | ## END RHODECODE PLUGINS ## |
|
118 | 119 | |
|
119 | 120 | ## encryption key used to encrypt social plugin tokens, |
|
120 | 121 | ## remote_urls with credentials etc, if not set it defaults to |
|
121 | 122 | ## `beaker.session.secret` |
|
122 | 123 | #rhodecode.encrypted_values.secret = |
|
123 | 124 | |
|
124 | 125 | ## decryption strict mode (enabled by default). It controls if decryption raises |
|
125 | 126 | ## `SignatureVerificationError` in case of wrong key, or damaged encryption data. |
|
126 | 127 | #rhodecode.encrypted_values.strict = false |
|
127 | 128 | |
|
128 | 129 | ## return gzipped responses from Rhodecode (static files/application) |
|
129 | 130 | gzip_responses = false |
|
130 | 131 | |
|
131 | 132 | ## autogenerate javascript routes file on startup |
|
132 | 133 | generate_js_files = false |
|
133 | 134 | |
|
134 | 135 | ## Optional Languages |
|
135 | 136 | ## en(default), be, de, es, fr, it, ja, pl, pt, ru, zh |
|
136 | 137 | lang = en |
|
137 | 138 | |
|
138 | 139 | ## perform a full repository scan on each server start, this should be |
|
139 | 140 | ## set to false after first startup, to allow faster server restarts. |
|
140 | 141 | startup.import_repos = false |
|
141 | 142 | |
|
142 | 143 | ## Uncomment and set this path to use archive download cache. |
|
143 | 144 | ## Once enabled, generated archives will be cached at this location |
|
144 | 145 | ## and served from the cache during subsequent requests for the same archive of |
|
145 | 146 | ## the repository. |
|
146 | 147 | #archive_cache_dir = /tmp/tarballcache |
|
147 | 148 | |
|
148 | 149 | ## change this to unique ID for security |
|
149 | 150 | app_instance_uuid = rc-production |
|
150 | 151 | |
|
151 | 152 | ## cut off limit for large diffs (size in bytes) |
|
152 | 153 | cut_off_limit_diff = 1024000 |
|
153 | 154 | cut_off_limit_file = 256000 |
|
154 | 155 | |
|
155 | 156 | ## use cache version of scm repo everywhere |
|
156 | 157 | vcs_full_cache = true |
|
157 | 158 | |
|
158 | 159 | ## force https in RhodeCode, fixes https redirects, assumes it's always https |
|
159 | 160 | ## Normally this is controlled by proper http flags sent from http server |
|
160 | 161 | force_https = false |
|
161 | 162 | |
|
162 | 163 | ## use Strict-Transport-Security headers |
|
163 | 164 | use_htsts = false |
|
164 | 165 | |
|
165 | 166 | ## number of commits stats will parse on each iteration |
|
166 | 167 | commit_parse_limit = 25 |
|
167 | 168 | |
|
168 | 169 | ## git rev filter option, --all is the default filter, if you need to |
|
169 | 170 | ## hide all refs in changelog switch this to --branches --tags |
|
170 | 171 | git_rev_filter = --branches --tags |
|
171 | 172 | |
|
172 | 173 | # Set to true if your repos are exposed using the dumb protocol |
|
173 | 174 | git_update_server_info = false |
|
174 | 175 | |
|
175 | 176 | ## RSS/ATOM feed options |
|
176 | 177 | rss_cut_off_limit = 256000 |
|
177 | 178 | rss_items_per_page = 10 |
|
178 | 179 | rss_include_diff = false |
|
179 | 180 | |
|
180 | 181 | ## gist URL alias, used to create nicer urls for gist. This should be an |
|
181 | 182 | ## url that does rewrites to _admin/gists/<gistid>. |
|
182 | 183 | ## example: http://gist.rhodecode.org/{gistid}. Empty means use the internal |
|
183 | 184 | ## RhodeCode url, ie. http[s]://rhodecode.server/_admin/gists/<gistid> |
|
184 | 185 | gist_alias_url = |
|
185 | 186 | |
|
186 | 187 | ## List of controllers (using glob pattern syntax) that AUTH TOKENS could be |
|
187 | 188 | ## used for access. |
|
188 | 189 | ## Adding ?auth_token = <token> to the url authenticates this request as if it |
|
189 | 190 | ## came from the the logged in user who own this authentication token. |
|
190 | 191 | ## |
|
191 | 192 | ## Syntax is <ControllerClass>:<function_pattern>. |
|
192 | 193 | ## To enable access to raw_files put `FilesController:raw`. |
|
193 | 194 | ## To enable access to patches add `ChangesetController:changeset_patch`. |
|
194 | 195 | ## The list should be "," separated and on a single line. |
|
195 | 196 | ## |
|
196 | 197 | ## Recommended controllers to enable: |
|
197 | 198 | # ChangesetController:changeset_patch, |
|
198 | 199 | # ChangesetController:changeset_raw, |
|
199 | 200 | # FilesController:raw, |
|
200 | 201 | # FilesController:archivefile, |
|
201 | 202 | # GistsController:*, |
|
202 | 203 | api_access_controllers_whitelist = |
|
203 | 204 | |
|
204 | 205 | ## default encoding used to convert from and to unicode |
|
205 | 206 | ## can be also a comma separated list of encoding in case of mixed encodings |
|
206 | 207 | default_encoding = UTF-8 |
|
207 | 208 | |
|
208 | 209 | ## instance-id prefix |
|
209 | 210 | ## a prefix key for this instance used for cache invalidation when running |
|
210 | 211 | ## multiple instances of rhodecode, make sure it's globally unique for |
|
211 | 212 | ## all running rhodecode instances. Leave empty if you don't use it |
|
212 | 213 | instance_id = |
|
213 | 214 | |
|
214 | 215 | ## Fallback authentication plugin. Set this to a plugin ID to force the usage |
|
215 | 216 | ## of an authentication plugin also if it is disabled by it's settings. |
|
216 | 217 | ## This could be useful if you are unable to log in to the system due to broken |
|
217 | 218 | ## authentication settings. Then you can enable e.g. the internal rhodecode auth |
|
218 | 219 | ## module to log in again and fix the settings. |
|
219 | 220 | ## |
|
220 | 221 | ## Available builtin plugin IDs (hash is part of the ID): |
|
221 | 222 | ## egg:rhodecode-enterprise-ce#rhodecode |
|
222 | 223 | ## egg:rhodecode-enterprise-ce#pam |
|
223 | 224 | ## egg:rhodecode-enterprise-ce#ldap |
|
224 | 225 | ## egg:rhodecode-enterprise-ce#jasig_cas |
|
225 | 226 | ## egg:rhodecode-enterprise-ce#headers |
|
226 | 227 | ## egg:rhodecode-enterprise-ce#crowd |
|
227 | 228 | #rhodecode.auth_plugin_fallback = egg:rhodecode-enterprise-ce#rhodecode |
|
228 | 229 | |
|
229 | 230 | ## alternative return HTTP header for failed authentication. Default HTTP |
|
230 | 231 | ## response is 401 HTTPUnauthorized. Currently HG clients have troubles with |
|
231 | 232 | ## handling that causing a series of failed authentication calls. |
|
232 | 233 | ## Set this variable to 403 to return HTTPForbidden, or any other HTTP code |
|
233 | 234 | ## This will be served instead of default 401 on bad authnetication |
|
234 | 235 | auth_ret_code = |
|
235 | 236 | |
|
236 | 237 | ## use special detection method when serving auth_ret_code, instead of serving |
|
237 | 238 | ## ret_code directly, use 401 initially (Which triggers credentials prompt) |
|
238 | 239 | ## and then serve auth_ret_code to clients |
|
239 | 240 | auth_ret_code_detection = false |
|
240 | 241 | |
|
241 | 242 | ## locking return code. When repository is locked return this HTTP code. 2XX |
|
242 | 243 | ## codes don't break the transactions while 4XX codes do |
|
243 | 244 | lock_ret_code = 423 |
|
244 | 245 | |
|
245 | 246 | ## allows to change the repository location in settings page |
|
246 | 247 | allow_repo_location_change = true |
|
247 | 248 | |
|
248 | 249 | ## allows to setup custom hooks in settings page |
|
249 | 250 | allow_custom_hooks_settings = true |
|
250 | 251 | |
|
251 | 252 | ## generated license token, goto license page in RhodeCode settings to obtain |
|
252 | 253 | ## new token |
|
253 | 254 | license_token = |
|
254 | 255 | |
|
255 | 256 | ## supervisor connection uri, for managing supervisor and logs. |
|
256 | 257 | supervisor.uri = |
|
257 | 258 | ## supervisord group name/id we only want this RC instance to handle |
|
258 | 259 | supervisor.group_id = dev |
|
259 | 260 | |
|
260 | 261 | ## Display extended labs settings |
|
261 | 262 | labs_settings_active = true |
|
262 | 263 | |
|
263 | 264 | #################################### |
|
264 | 265 | ### CELERY CONFIG #### |
|
265 | 266 | #################################### |
|
266 | 267 | use_celery = false |
|
267 | 268 | broker.host = localhost |
|
268 | 269 | broker.vhost = rabbitmqhost |
|
269 | 270 | broker.port = 5672 |
|
270 | 271 | broker.user = rabbitmq |
|
271 | 272 | broker.password = qweqwe |
|
272 | 273 | |
|
273 | 274 | celery.imports = rhodecode.lib.celerylib.tasks |
|
274 | 275 | |
|
275 | 276 | celery.result.backend = amqp |
|
276 | 277 | celery.result.dburi = amqp:// |
|
277 | 278 | celery.result.serialier = json |
|
278 | 279 | |
|
279 | 280 | #celery.send.task.error.emails = true |
|
280 | 281 | #celery.amqp.task.result.expires = 18000 |
|
281 | 282 | |
|
282 | 283 | celeryd.concurrency = 2 |
|
283 | 284 | #celeryd.log.file = celeryd.log |
|
284 | 285 | celeryd.log.level = debug |
|
285 | 286 | celeryd.max.tasks.per.child = 1 |
|
286 | 287 | |
|
287 | 288 | ## tasks will never be sent to the queue, but executed locally instead. |
|
288 | 289 | celery.always.eager = false |
|
289 | 290 | |
|
290 | 291 | #################################### |
|
291 | 292 | ### BEAKER CACHE #### |
|
292 | 293 | #################################### |
|
293 | 294 | # default cache dir for templates. Putting this into a ramdisk |
|
294 | 295 | ## can boost performance, eg. %(here)s/data_ramdisk |
|
295 | 296 | cache_dir = %(here)s/data |
|
296 | 297 | |
|
297 | 298 | ## locking and default file storage for Beaker. Putting this into a ramdisk |
|
298 | 299 | ## can boost performance, eg. %(here)s/data_ramdisk/cache/beaker_data |
|
299 | 300 | beaker.cache.data_dir = %(here)s/data/cache/beaker_data |
|
300 | 301 | beaker.cache.lock_dir = %(here)s/data/cache/beaker_lock |
|
301 | 302 | |
|
302 | 303 | beaker.cache.regions = super_short_term, short_term, long_term, sql_cache_short, auth_plugins, repo_cache_long |
|
303 | 304 | |
|
304 | 305 | beaker.cache.super_short_term.type = memory |
|
305 | 306 | beaker.cache.super_short_term.expire = 10 |
|
306 | 307 | beaker.cache.super_short_term.key_length = 256 |
|
307 | 308 | |
|
308 | 309 | beaker.cache.short_term.type = memory |
|
309 | 310 | beaker.cache.short_term.expire = 60 |
|
310 | 311 | beaker.cache.short_term.key_length = 256 |
|
311 | 312 | |
|
312 | 313 | beaker.cache.long_term.type = memory |
|
313 | 314 | beaker.cache.long_term.expire = 36000 |
|
314 | 315 | beaker.cache.long_term.key_length = 256 |
|
315 | 316 | |
|
316 | 317 | beaker.cache.sql_cache_short.type = memory |
|
317 | 318 | beaker.cache.sql_cache_short.expire = 10 |
|
318 | 319 | beaker.cache.sql_cache_short.key_length = 256 |
|
319 | 320 | |
|
320 | 321 | ## default is memory cache, configure only if required |
|
321 | 322 | ## using multi-node or multi-worker setup |
|
322 | 323 | #beaker.cache.auth_plugins.type = ext:database |
|
323 | 324 | #beaker.cache.auth_plugins.lock_dir = %(here)s/data/cache/auth_plugin_lock |
|
324 | 325 | #beaker.cache.auth_plugins.url = postgresql://postgres:secret@localhost/rhodecode |
|
325 | 326 | #beaker.cache.auth_plugins.url = mysql://root:secret@127.0.0.1/rhodecode |
|
326 | 327 | #beaker.cache.auth_plugins.sa.pool_recycle = 3600 |
|
327 | 328 | #beaker.cache.auth_plugins.sa.pool_size = 10 |
|
328 | 329 | #beaker.cache.auth_plugins.sa.max_overflow = 0 |
|
329 | 330 | |
|
330 | 331 | beaker.cache.repo_cache_long.type = memorylru_base |
|
331 | 332 | beaker.cache.repo_cache_long.max_items = 4096 |
|
332 | 333 | beaker.cache.repo_cache_long.expire = 2592000 |
|
333 | 334 | |
|
334 | 335 | ## default is memorylru_base cache, configure only if required |
|
335 | 336 | ## using multi-node or multi-worker setup |
|
336 | 337 | #beaker.cache.repo_cache_long.type = ext:memcached |
|
337 | 338 | #beaker.cache.repo_cache_long.url = localhost:11211 |
|
338 | 339 | #beaker.cache.repo_cache_long.expire = 1209600 |
|
339 | 340 | #beaker.cache.repo_cache_long.key_length = 256 |
|
340 | 341 | |
|
341 | 342 | #################################### |
|
342 | 343 | ### BEAKER SESSION #### |
|
343 | 344 | #################################### |
|
344 | 345 | |
|
345 | 346 | ## .session.type is type of storage options for the session, current allowed |
|
346 | 347 | ## types are file, ext:memcached, ext:database, and memory (default). |
|
347 | 348 | beaker.session.type = file |
|
348 | 349 | beaker.session.data_dir = %(here)s/data/sessions/data |
|
349 | 350 | |
|
350 | 351 | ## db based session, fast, and allows easy management over logged in users ## |
|
351 | 352 | #beaker.session.type = ext:database |
|
352 | 353 | #beaker.session.table_name = db_session |
|
353 | 354 | #beaker.session.sa.url = postgresql://postgres:secret@localhost/rhodecode |
|
354 | 355 | #beaker.session.sa.url = mysql://root:secret@127.0.0.1/rhodecode |
|
355 | 356 | #beaker.session.sa.pool_recycle = 3600 |
|
356 | 357 | #beaker.session.sa.echo = false |
|
357 | 358 | |
|
358 | 359 | beaker.session.key = rhodecode |
|
359 | 360 | beaker.session.secret = develop-rc-uytcxaz |
|
360 | 361 | beaker.session.lock_dir = %(here)s/data/sessions/lock |
|
361 | 362 | |
|
362 | 363 | ## Secure encrypted cookie. Requires AES and AES python libraries |
|
363 | 364 | ## you must disable beaker.session.secret to use this |
|
364 | 365 | #beaker.session.encrypt_key = <key_for_encryption> |
|
365 | 366 | #beaker.session.validate_key = <validation_key> |
|
366 | 367 | |
|
367 | 368 | ## sets session as invalid(also logging out user) if it haven not been |
|
368 | 369 | ## accessed for given amount of time in seconds |
|
369 | 370 | beaker.session.timeout = 2592000 |
|
370 | 371 | beaker.session.httponly = true |
|
371 | 372 | #beaker.session.cookie_path = /<your-prefix> |
|
372 | 373 | |
|
373 | 374 | ## uncomment for https secure cookie |
|
374 | 375 | beaker.session.secure = false |
|
375 | 376 | |
|
376 | 377 | ## auto save the session to not to use .save() |
|
377 | 378 | beaker.session.auto = false |
|
378 | 379 | |
|
379 | 380 | ## default cookie expiration time in seconds, set to `true` to set expire |
|
380 | 381 | ## at browser close |
|
381 | 382 | #beaker.session.cookie_expires = 3600 |
|
382 | 383 | |
|
383 | 384 | ################################### |
|
384 | 385 | ## SEARCH INDEXING CONFIGURATION ## |
|
385 | 386 | ################################### |
|
386 | 387 | ## Full text search indexer is available in rhodecode-tools under |
|
387 | 388 | ## `rhodecode-tools index` command |
|
388 | 389 | |
|
389 | 390 | # WHOOSH Backend, doesn't require additional services to run |
|
390 | 391 | # it works good with few dozen repos |
|
391 | 392 | search.module = rhodecode.lib.index.whoosh |
|
392 | 393 | search.location = %(here)s/data/index |
|
393 | 394 | |
|
394 | 395 | ######################################## |
|
395 | 396 | ### CHANNELSTREAM CONFIG #### |
|
396 | 397 | ######################################## |
|
397 | 398 | ## channelstream enables persistent connections and live notification |
|
398 | 399 | ## in the system. It's also used by the chat system |
|
399 | 400 | |
|
400 | 401 | channelstream.enabled = true |
|
401 | 402 | # location of channelstream server on the backend |
|
402 | 403 | channelstream.server = 127.0.0.1:9800 |
|
403 | 404 | # location of the channelstream server from outside world |
|
404 | 405 | channelstream.ws_url = ws://127.0.0.1:9800 |
|
405 | 406 | channelstream.secret = secret |
|
406 | 407 | channelstream.history.location = %(here)s/channelstream_history |
|
407 | 408 | |
|
408 | 409 | |
|
409 | 410 | ################################### |
|
410 | 411 | ## APPENLIGHT CONFIG ## |
|
411 | 412 | ################################### |
|
412 | 413 | |
|
413 | 414 | ## Appenlight is tailored to work with RhodeCode, see |
|
414 | 415 | ## http://appenlight.com for details how to obtain an account |
|
415 | 416 | |
|
416 | 417 | ## appenlight integration enabled |
|
417 | 418 | appenlight = false |
|
418 | 419 | |
|
419 | 420 | appenlight.server_url = https://api.appenlight.com |
|
420 | 421 | appenlight.api_key = YOUR_API_KEY |
|
421 | 422 | #appenlight.transport_config = https://api.appenlight.com?threaded=1&timeout=5 |
|
422 | 423 | |
|
423 | 424 | # used for JS client |
|
424 | 425 | appenlight.api_public_key = YOUR_API_PUBLIC_KEY |
|
425 | 426 | |
|
426 | 427 | ## TWEAK AMOUNT OF INFO SENT HERE |
|
427 | 428 | |
|
428 | 429 | ## enables 404 error logging (default False) |
|
429 | 430 | appenlight.report_404 = false |
|
430 | 431 | |
|
431 | 432 | ## time in seconds after request is considered being slow (default 1) |
|
432 | 433 | appenlight.slow_request_time = 1 |
|
433 | 434 | |
|
434 | 435 | ## record slow requests in application |
|
435 | 436 | ## (needs to be enabled for slow datastore recording and time tracking) |
|
436 | 437 | appenlight.slow_requests = true |
|
437 | 438 | |
|
438 | 439 | ## enable hooking to application loggers |
|
439 | 440 | appenlight.logging = true |
|
440 | 441 | |
|
441 | 442 | ## minimum log level for log capture |
|
442 | 443 | appenlight.logging.level = WARNING |
|
443 | 444 | |
|
444 | 445 | ## send logs only from erroneous/slow requests |
|
445 | 446 | ## (saves API quota for intensive logging) |
|
446 | 447 | appenlight.logging_on_error = false |
|
447 | 448 | |
|
448 | 449 | ## list of additonal keywords that should be grabbed from environ object |
|
449 | 450 | ## can be string with comma separated list of words in lowercase |
|
450 | 451 | ## (by default client will always send following info: |
|
451 | 452 | ## 'REMOTE_USER', 'REMOTE_ADDR', 'SERVER_NAME', 'CONTENT_TYPE' + all keys that |
|
452 | 453 | ## start with HTTP* this list be extended with additional keywords here |
|
453 | 454 | appenlight.environ_keys_whitelist = |
|
454 | 455 | |
|
455 | 456 | ## list of keywords that should be blanked from request object |
|
456 | 457 | ## can be string with comma separated list of words in lowercase |
|
457 | 458 | ## (by default client will always blank keys that contain following words |
|
458 | 459 | ## 'password', 'passwd', 'pwd', 'auth_tkt', 'secret', 'csrf' |
|
459 | 460 | ## this list be extended with additional keywords set here |
|
460 | 461 | appenlight.request_keys_blacklist = |
|
461 | 462 | |
|
462 | 463 | ## list of namespaces that should be ignores when gathering log entries |
|
463 | 464 | ## can be string with comma separated list of namespaces |
|
464 | 465 | ## (by default the client ignores own entries: appenlight_client.client) |
|
465 | 466 | appenlight.log_namespace_blacklist = |
|
466 | 467 | |
|
467 | 468 | |
|
468 | 469 | ################################################################################ |
|
469 | 470 | ## WARNING: *THE LINE BELOW MUST BE UNCOMMENTED ON A PRODUCTION ENVIRONMENT* ## |
|
470 | 471 | ## Debug mode will enable the interactive debugging tool, allowing ANYONE to ## |
|
471 | 472 | ## execute malicious code after an exception is raised. ## |
|
472 | 473 | ################################################################################ |
|
473 | 474 | #set debug = false |
|
474 | 475 | |
|
475 | 476 | |
|
476 | 477 | ############## |
|
477 | 478 | ## STYLING ## |
|
478 | 479 | ############## |
|
479 | 480 | debug_style = true |
|
480 | 481 | |
|
481 | 482 | ######################################################### |
|
482 | 483 | ### DB CONFIGS - EACH DB WILL HAVE IT'S OWN CONFIG ### |
|
483 | 484 | ######################################################### |
|
484 | 485 | sqlalchemy.db1.url = sqlite:///%(here)s/rhodecode.db?timeout=30 |
|
485 | 486 | #sqlalchemy.db1.url = postgresql://postgres:qweqwe@localhost/rhodecode |
|
486 | 487 | #sqlalchemy.db1.url = mysql://root:qweqwe@localhost/rhodecode |
|
487 | 488 | |
|
488 | 489 | # see sqlalchemy docs for other advanced settings |
|
489 | 490 | |
|
490 | 491 | ## print the sql statements to output |
|
491 | 492 | sqlalchemy.db1.echo = false |
|
492 | 493 | ## recycle the connections after this ammount of seconds |
|
493 | 494 | sqlalchemy.db1.pool_recycle = 3600 |
|
494 | 495 | sqlalchemy.db1.convert_unicode = true |
|
495 | 496 | |
|
496 | 497 | ## the number of connections to keep open inside the connection pool. |
|
497 | 498 | ## 0 indicates no limit |
|
498 | 499 | #sqlalchemy.db1.pool_size = 5 |
|
499 | 500 | |
|
500 | 501 | ## the number of connections to allow in connection pool "overflow", that is |
|
501 | 502 | ## connections that can be opened above and beyond the pool_size setting, |
|
502 | 503 | ## which defaults to five. |
|
503 | 504 | #sqlalchemy.db1.max_overflow = 10 |
|
504 | 505 | |
|
505 | 506 | |
|
506 | 507 | ################## |
|
507 | 508 | ### VCS CONFIG ### |
|
508 | 509 | ################## |
|
509 | 510 | vcs.server.enable = true |
|
510 | 511 | vcs.server = localhost:9900 |
|
511 | 512 | |
|
512 | 513 | ## Web server connectivity protocol, responsible for web based VCS operatations |
|
513 | 514 | ## Available protocols are: |
|
514 | 515 | ## `pyro4` - using pyro4 server |
|
515 | 516 | ## `http` - using http-rpc backend |
|
516 | 517 | vcs.server.protocol = http |
|
517 | 518 | |
|
518 | 519 | ## Push/Pull operations protocol, available options are: |
|
519 | 520 | ## `pyro4` - using pyro4 server |
|
520 | 521 | ## `rhodecode.lib.middleware.utils.scm_app_http` - Http based, recommended |
|
521 | 522 | ## `vcsserver.scm_app` - internal app (EE only) |
|
522 | 523 | vcs.scm_app_implementation = rhodecode.lib.middleware.utils.scm_app_http |
|
523 | 524 | |
|
524 | 525 | ## Push/Pull operations hooks protocol, available options are: |
|
525 | 526 | ## `pyro4` - using pyro4 server |
|
526 | 527 | ## `http` - using http-rpc backend |
|
527 | 528 | vcs.hooks.protocol = http |
|
528 | 529 | |
|
529 | 530 | vcs.server.log_level = debug |
|
530 | 531 | ## Start VCSServer with this instance as a subprocess, usefull for development |
|
531 | 532 | vcs.start_server = true |
|
532 | 533 | |
|
533 | 534 | ## List of enabled VCS backends, available options are: |
|
534 | 535 | ## `hg` - mercurial |
|
535 | 536 | ## `git` - git |
|
536 | 537 | ## `svn` - subversion |
|
537 | 538 | vcs.backends = hg, git, svn |
|
538 | 539 | |
|
539 | 540 | vcs.connection_timeout = 3600 |
|
540 | 541 | ## Compatibility version when creating SVN repositories. Defaults to newest version when commented out. |
|
541 | 542 | ## Available options are: pre-1.4-compatible, pre-1.5-compatible, pre-1.6-compatible, pre-1.8-compatible |
|
542 | 543 | #vcs.svn.compatible_version = pre-1.8-compatible |
|
543 | 544 | |
|
544 | 545 | |
|
545 | 546 | ############################################## |
|
546 | 547 | ### Subversion proxy support (mod_dav_svn) ### |
|
547 | 548 | ############################################## |
|
548 | 549 | ## Enable or disable the config file generation. |
|
549 | 550 | svn.proxy.generate_config = false |
|
550 | 551 | ## Generate config file with `SVNListParentPath` set to `On`. |
|
551 | 552 | svn.proxy.list_parent_path = true |
|
552 | 553 | ## Set location and file name of generated config file. |
|
553 | 554 | svn.proxy.config_file_path = %(here)s/mod_dav_svn.conf |
|
554 | 555 | ## File system path to the directory containing the repositories served by |
|
555 | 556 | ## RhodeCode. |
|
556 | 557 | svn.proxy.parent_path_root = /path/to/repo_store |
|
557 | 558 | ## Used as a prefix to the <Location> block in the generated config file. In |
|
558 | 559 | ## most cases it should be set to `/`. |
|
559 | 560 | svn.proxy.location_root = / |
|
560 | 561 | |
|
561 | 562 | |
|
562 | 563 | ################################ |
|
563 | 564 | ### LOGGING CONFIGURATION #### |
|
564 | 565 | ################################ |
|
565 | 566 | [loggers] |
|
566 | 567 | keys = root, routes, rhodecode, sqlalchemy, beaker, pyro4, templates |
|
567 | 568 | |
|
568 | 569 | [handlers] |
|
569 | 570 | keys = console, console_sql |
|
570 | 571 | |
|
571 | 572 | [formatters] |
|
572 | 573 | keys = generic, color_formatter, color_formatter_sql |
|
573 | 574 | |
|
574 | 575 | ############# |
|
575 | 576 | ## LOGGERS ## |
|
576 | 577 | ############# |
|
577 | 578 | [logger_root] |
|
578 | 579 | level = NOTSET |
|
579 | 580 | handlers = console |
|
580 | 581 | |
|
581 | 582 | [logger_routes] |
|
582 | 583 | level = DEBUG |
|
583 | 584 | handlers = |
|
584 | 585 | qualname = routes.middleware |
|
585 | 586 | ## "level = DEBUG" logs the route matched and routing variables. |
|
586 | 587 | propagate = 1 |
|
587 | 588 | |
|
588 | 589 | [logger_beaker] |
|
589 | 590 | level = DEBUG |
|
590 | 591 | handlers = |
|
591 | 592 | qualname = beaker.container |
|
592 | 593 | propagate = 1 |
|
593 | 594 | |
|
594 | 595 | [logger_pyro4] |
|
595 | 596 | level = DEBUG |
|
596 | 597 | handlers = |
|
597 | 598 | qualname = Pyro4 |
|
598 | 599 | propagate = 1 |
|
599 | 600 | |
|
600 | 601 | [logger_templates] |
|
601 | 602 | level = INFO |
|
602 | 603 | handlers = |
|
603 | 604 | qualname = pylons.templating |
|
604 | 605 | propagate = 1 |
|
605 | 606 | |
|
606 | 607 | [logger_rhodecode] |
|
607 | 608 | level = DEBUG |
|
608 | 609 | handlers = |
|
609 | 610 | qualname = rhodecode |
|
610 | 611 | propagate = 1 |
|
611 | 612 | |
|
612 | 613 | [logger_sqlalchemy] |
|
613 | 614 | level = INFO |
|
614 | 615 | handlers = console_sql |
|
615 | 616 | qualname = sqlalchemy.engine |
|
616 | 617 | propagate = 0 |
|
617 | 618 | |
|
618 | 619 | ############## |
|
619 | 620 | ## HANDLERS ## |
|
620 | 621 | ############## |
|
621 | 622 | |
|
622 | 623 | [handler_console] |
|
623 | 624 | class = StreamHandler |
|
624 | 625 | args = (sys.stderr,) |
|
625 | 626 | level = DEBUG |
|
626 | 627 | formatter = color_formatter |
|
627 | 628 | |
|
628 | 629 | [handler_console_sql] |
|
629 | 630 | class = StreamHandler |
|
630 | 631 | args = (sys.stderr,) |
|
631 | 632 | level = DEBUG |
|
632 | 633 | formatter = color_formatter_sql |
|
633 | 634 | |
|
634 | 635 | ################ |
|
635 | 636 | ## FORMATTERS ## |
|
636 | 637 | ################ |
|
637 | 638 | |
|
638 | 639 | [formatter_generic] |
|
639 | 640 | class = rhodecode.lib.logging_formatter.Pyro4AwareFormatter |
|
640 | 641 | format = %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s |
|
641 | 642 | datefmt = %Y-%m-%d %H:%M:%S |
|
642 | 643 | |
|
643 | 644 | [formatter_color_formatter] |
|
644 | 645 | class = rhodecode.lib.logging_formatter.ColorFormatter |
|
645 | 646 | format = %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s |
|
646 | 647 | datefmt = %Y-%m-%d %H:%M:%S |
|
647 | 648 | |
|
648 | 649 | [formatter_color_formatter_sql] |
|
649 | 650 | class = rhodecode.lib.logging_formatter.ColorFormatterSql |
|
650 | 651 | format = %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s |
|
651 | 652 | datefmt = %Y-%m-%d %H:%M:%S |
@@ -1,620 +1,620 b'' | |||
|
1 | 1 | ################################################################################ |
|
2 | 2 | ################################################################################ |
|
3 | 3 | # RhodeCode Enterprise - configuration file # |
|
4 | 4 | # Built-in functions and variables # |
|
5 | 5 | # The %(here)s variable will be replaced with the parent directory of this file# |
|
6 | 6 | # # |
|
7 | 7 | ################################################################################ |
|
8 | 8 | |
|
9 | 9 | [DEFAULT] |
|
10 | 10 | debug = true |
|
11 | 11 | ################################################################################ |
|
12 | 12 | ## Uncomment and replace with the email address which should receive ## |
|
13 | 13 | ## any error reports after an application crash ## |
|
14 | 14 | ## Additionally these settings will be used by the 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 | 32 | ## COMMON ## |
|
33 | 33 | host = 127.0.0.1 |
|
34 | 34 | port = 5000 |
|
35 | 35 | |
|
36 | 36 | ################################## |
|
37 | 37 | ## WAITRESS WSGI SERVER ## |
|
38 | 38 | ## Recommended for Development ## |
|
39 | 39 | ################################## |
|
40 | 40 | #use = egg:waitress#main |
|
41 | 41 | ## number of worker threads |
|
42 | 42 | #threads = 5 |
|
43 | 43 | ## MAX BODY SIZE 100GB |
|
44 | 44 | #max_request_body_size = 107374182400 |
|
45 | 45 | ## Use poll instead of select, fixes file descriptors limits problems. |
|
46 | 46 | ## May not work on old windows systems. |
|
47 | 47 | #asyncore_use_poll = true |
|
48 | 48 | |
|
49 | 49 | |
|
50 | 50 | ########################## |
|
51 | 51 | ## GUNICORN WSGI SERVER ## |
|
52 | 52 | ########################## |
|
53 | 53 | ## run with gunicorn --log-config <inifile.ini> --paste <inifile.ini> |
|
54 | 54 | use = egg:gunicorn#main |
|
55 | 55 | ## Sets the number of process workers. You must set `instance_id = *` |
|
56 | 56 | ## when this option is set to more than one worker, recommended |
|
57 | 57 | ## value is (2 * NUMBER_OF_CPUS + 1), eg 2CPU = 5 workers |
|
58 | 58 | ## The `instance_id = *` must be set in the [app:main] section below |
|
59 | 59 | workers = 2 |
|
60 | 60 | ## number of threads for each of the worker, must be set to 1 for gevent |
|
61 | 61 | ## generally recommened to be at 1 |
|
62 | 62 | #threads = 1 |
|
63 | 63 | ## process name |
|
64 | 64 | proc_name = rhodecode |
|
65 | 65 | ## type of worker class, one of sync, gevent |
|
66 | 66 | ## recommended for bigger setup is using of of other than sync one |
|
67 | 67 | worker_class = sync |
|
68 | 68 | ## The maximum number of simultaneous clients. Valid only for Gevent |
|
69 | 69 | #worker_connections = 10 |
|
70 | 70 | ## max number of requests that worker will handle before being gracefully |
|
71 | 71 | ## restarted, could prevent memory leaks |
|
72 | 72 | max_requests = 1000 |
|
73 | 73 | max_requests_jitter = 30 |
|
74 | 74 | ## amount of time a worker can spend with handling a request before it |
|
75 | 75 | ## gets killed and restarted. Set to 6hrs |
|
76 | 76 | timeout = 21600 |
|
77 | 77 | |
|
78 | 78 | |
|
79 | 79 | ## prefix middleware for RhodeCode, disables force_https flag. |
|
80 | 80 | ## recommended when using proxy setup. |
|
81 | 81 | ## allows to set RhodeCode under a prefix in server. |
|
82 | 82 | ## eg https://server.com/<prefix>. Enable `filter-with =` option below as well. |
|
83 | 83 | ## optionally set prefix like: `prefix = /<your-prefix>` |
|
84 |
|
|
|
85 |
|
|
|
86 |
|
|
|
84 | [filter:proxy-prefix] | |
|
85 | use = egg:PasteDeploy#prefix | |
|
86 | prefix = / | |
|
87 | 87 | |
|
88 | 88 | [app:main] |
|
89 | 89 | use = egg:rhodecode-enterprise-ce |
|
90 | 90 | ## enable proxy prefix middleware, defined below |
|
91 | 91 | #filter-with = proxy-prefix |
|
92 | 92 | |
|
93 | 93 | ## encryption key used to encrypt social plugin tokens, |
|
94 | 94 | ## remote_urls with credentials etc, if not set it defaults to |
|
95 | 95 | ## `beaker.session.secret` |
|
96 | 96 | #rhodecode.encrypted_values.secret = |
|
97 | 97 | |
|
98 | 98 | ## decryption strict mode (enabled by default). It controls if decryption raises |
|
99 | 99 | ## `SignatureVerificationError` in case of wrong key, or damaged encryption data. |
|
100 | 100 | #rhodecode.encrypted_values.strict = false |
|
101 | 101 | |
|
102 | 102 | ## return gzipped responses from Rhodecode (static files/application) |
|
103 | 103 | gzip_responses = false |
|
104 | 104 | |
|
105 | 105 | ## autogenerate javascript routes file on startup |
|
106 | 106 | generate_js_files = false |
|
107 | 107 | |
|
108 | 108 | ## Optional Languages |
|
109 | 109 | ## en(default), be, de, es, fr, it, ja, pl, pt, ru, zh |
|
110 | 110 | lang = en |
|
111 | 111 | |
|
112 | 112 | ## perform a full repository scan on each server start, this should be |
|
113 | 113 | ## set to false after first startup, to allow faster server restarts. |
|
114 | 114 | startup.import_repos = false |
|
115 | 115 | |
|
116 | 116 | ## Uncomment and set this path to use archive download cache. |
|
117 | 117 | ## Once enabled, generated archives will be cached at this location |
|
118 | 118 | ## and served from the cache during subsequent requests for the same archive of |
|
119 | 119 | ## the repository. |
|
120 | 120 | #archive_cache_dir = /tmp/tarballcache |
|
121 | 121 | |
|
122 | 122 | ## change this to unique ID for security |
|
123 | 123 | app_instance_uuid = rc-production |
|
124 | 124 | |
|
125 | 125 | ## cut off limit for large diffs (size in bytes) |
|
126 | 126 | cut_off_limit_diff = 1024000 |
|
127 | 127 | cut_off_limit_file = 256000 |
|
128 | 128 | |
|
129 | 129 | ## use cache version of scm repo everywhere |
|
130 | 130 | vcs_full_cache = true |
|
131 | 131 | |
|
132 | 132 | ## force https in RhodeCode, fixes https redirects, assumes it's always https |
|
133 | 133 | ## Normally this is controlled by proper http flags sent from http server |
|
134 | 134 | force_https = false |
|
135 | 135 | |
|
136 | 136 | ## use Strict-Transport-Security headers |
|
137 | 137 | use_htsts = false |
|
138 | 138 | |
|
139 | 139 | ## number of commits stats will parse on each iteration |
|
140 | 140 | commit_parse_limit = 25 |
|
141 | 141 | |
|
142 | 142 | ## git rev filter option, --all is the default filter, if you need to |
|
143 | 143 | ## hide all refs in changelog switch this to --branches --tags |
|
144 | 144 | git_rev_filter = --branches --tags |
|
145 | 145 | |
|
146 | 146 | # Set to true if your repos are exposed using the dumb protocol |
|
147 | 147 | git_update_server_info = false |
|
148 | 148 | |
|
149 | 149 | ## RSS/ATOM feed options |
|
150 | 150 | rss_cut_off_limit = 256000 |
|
151 | 151 | rss_items_per_page = 10 |
|
152 | 152 | rss_include_diff = false |
|
153 | 153 | |
|
154 | 154 | ## gist URL alias, used to create nicer urls for gist. This should be an |
|
155 | 155 | ## url that does rewrites to _admin/gists/<gistid>. |
|
156 | 156 | ## example: http://gist.rhodecode.org/{gistid}. Empty means use the internal |
|
157 | 157 | ## RhodeCode url, ie. http[s]://rhodecode.server/_admin/gists/<gistid> |
|
158 | 158 | gist_alias_url = |
|
159 | 159 | |
|
160 | 160 | ## List of controllers (using glob pattern syntax) that AUTH TOKENS could be |
|
161 | 161 | ## used for access. |
|
162 | 162 | ## Adding ?auth_token = <token> to the url authenticates this request as if it |
|
163 | 163 | ## came from the the logged in user who own this authentication token. |
|
164 | 164 | ## |
|
165 | 165 | ## Syntax is <ControllerClass>:<function_pattern>. |
|
166 | 166 | ## To enable access to raw_files put `FilesController:raw`. |
|
167 | 167 | ## To enable access to patches add `ChangesetController:changeset_patch`. |
|
168 | 168 | ## The list should be "," separated and on a single line. |
|
169 | 169 | ## |
|
170 | 170 | ## Recommended controllers to enable: |
|
171 | 171 | # ChangesetController:changeset_patch, |
|
172 | 172 | # ChangesetController:changeset_raw, |
|
173 | 173 | # FilesController:raw, |
|
174 | 174 | # FilesController:archivefile, |
|
175 | 175 | # GistsController:*, |
|
176 | 176 | api_access_controllers_whitelist = |
|
177 | 177 | |
|
178 | 178 | ## default encoding used to convert from and to unicode |
|
179 | 179 | ## can be also a comma separated list of encoding in case of mixed encodings |
|
180 | 180 | default_encoding = UTF-8 |
|
181 | 181 | |
|
182 | 182 | ## instance-id prefix |
|
183 | 183 | ## a prefix key for this instance used for cache invalidation when running |
|
184 | 184 | ## multiple instances of rhodecode, make sure it's globally unique for |
|
185 | 185 | ## all running rhodecode instances. Leave empty if you don't use it |
|
186 | 186 | instance_id = |
|
187 | 187 | |
|
188 | 188 | ## Fallback authentication plugin. Set this to a plugin ID to force the usage |
|
189 | 189 | ## of an authentication plugin also if it is disabled by it's settings. |
|
190 | 190 | ## This could be useful if you are unable to log in to the system due to broken |
|
191 | 191 | ## authentication settings. Then you can enable e.g. the internal rhodecode auth |
|
192 | 192 | ## module to log in again and fix the settings. |
|
193 | 193 | ## |
|
194 | 194 | ## Available builtin plugin IDs (hash is part of the ID): |
|
195 | 195 | ## egg:rhodecode-enterprise-ce#rhodecode |
|
196 | 196 | ## egg:rhodecode-enterprise-ce#pam |
|
197 | 197 | ## egg:rhodecode-enterprise-ce#ldap |
|
198 | 198 | ## egg:rhodecode-enterprise-ce#jasig_cas |
|
199 | 199 | ## egg:rhodecode-enterprise-ce#headers |
|
200 | 200 | ## egg:rhodecode-enterprise-ce#crowd |
|
201 | 201 | #rhodecode.auth_plugin_fallback = egg:rhodecode-enterprise-ce#rhodecode |
|
202 | 202 | |
|
203 | 203 | ## alternative return HTTP header for failed authentication. Default HTTP |
|
204 | 204 | ## response is 401 HTTPUnauthorized. Currently HG clients have troubles with |
|
205 | 205 | ## handling that causing a series of failed authentication calls. |
|
206 | 206 | ## Set this variable to 403 to return HTTPForbidden, or any other HTTP code |
|
207 | 207 | ## This will be served instead of default 401 on bad authnetication |
|
208 | 208 | auth_ret_code = |
|
209 | 209 | |
|
210 | 210 | ## use special detection method when serving auth_ret_code, instead of serving |
|
211 | 211 | ## ret_code directly, use 401 initially (Which triggers credentials prompt) |
|
212 | 212 | ## and then serve auth_ret_code to clients |
|
213 | 213 | auth_ret_code_detection = false |
|
214 | 214 | |
|
215 | 215 | ## locking return code. When repository is locked return this HTTP code. 2XX |
|
216 | 216 | ## codes don't break the transactions while 4XX codes do |
|
217 | 217 | lock_ret_code = 423 |
|
218 | 218 | |
|
219 | 219 | ## allows to change the repository location in settings page |
|
220 | 220 | allow_repo_location_change = true |
|
221 | 221 | |
|
222 | 222 | ## allows to setup custom hooks in settings page |
|
223 | 223 | allow_custom_hooks_settings = true |
|
224 | 224 | |
|
225 | 225 | ## generated license token, goto license page in RhodeCode settings to obtain |
|
226 | 226 | ## new token |
|
227 | 227 | license_token = |
|
228 | 228 | |
|
229 | 229 | ## supervisor connection uri, for managing supervisor and logs. |
|
230 | 230 | supervisor.uri = |
|
231 | 231 | ## supervisord group name/id we only want this RC instance to handle |
|
232 | 232 | supervisor.group_id = prod |
|
233 | 233 | |
|
234 | 234 | ## Display extended labs settings |
|
235 | 235 | labs_settings_active = true |
|
236 | 236 | |
|
237 | 237 | #################################### |
|
238 | 238 | ### CELERY CONFIG #### |
|
239 | 239 | #################################### |
|
240 | 240 | use_celery = false |
|
241 | 241 | broker.host = localhost |
|
242 | 242 | broker.vhost = rabbitmqhost |
|
243 | 243 | broker.port = 5672 |
|
244 | 244 | broker.user = rabbitmq |
|
245 | 245 | broker.password = qweqwe |
|
246 | 246 | |
|
247 | 247 | celery.imports = rhodecode.lib.celerylib.tasks |
|
248 | 248 | |
|
249 | 249 | celery.result.backend = amqp |
|
250 | 250 | celery.result.dburi = amqp:// |
|
251 | 251 | celery.result.serialier = json |
|
252 | 252 | |
|
253 | 253 | #celery.send.task.error.emails = true |
|
254 | 254 | #celery.amqp.task.result.expires = 18000 |
|
255 | 255 | |
|
256 | 256 | celeryd.concurrency = 2 |
|
257 | 257 | #celeryd.log.file = celeryd.log |
|
258 | 258 | celeryd.log.level = debug |
|
259 | 259 | celeryd.max.tasks.per.child = 1 |
|
260 | 260 | |
|
261 | 261 | ## tasks will never be sent to the queue, but executed locally instead. |
|
262 | 262 | celery.always.eager = false |
|
263 | 263 | |
|
264 | 264 | #################################### |
|
265 | 265 | ### BEAKER CACHE #### |
|
266 | 266 | #################################### |
|
267 | 267 | # default cache dir for templates. Putting this into a ramdisk |
|
268 | 268 | ## can boost performance, eg. %(here)s/data_ramdisk |
|
269 | 269 | cache_dir = %(here)s/data |
|
270 | 270 | |
|
271 | 271 | ## locking and default file storage for Beaker. Putting this into a ramdisk |
|
272 | 272 | ## can boost performance, eg. %(here)s/data_ramdisk/cache/beaker_data |
|
273 | 273 | beaker.cache.data_dir = %(here)s/data/cache/beaker_data |
|
274 | 274 | beaker.cache.lock_dir = %(here)s/data/cache/beaker_lock |
|
275 | 275 | |
|
276 | 276 | beaker.cache.regions = super_short_term, short_term, long_term, sql_cache_short, auth_plugins, repo_cache_long |
|
277 | 277 | |
|
278 | 278 | beaker.cache.super_short_term.type = memory |
|
279 | 279 | beaker.cache.super_short_term.expire = 10 |
|
280 | 280 | beaker.cache.super_short_term.key_length = 256 |
|
281 | 281 | |
|
282 | 282 | beaker.cache.short_term.type = memory |
|
283 | 283 | beaker.cache.short_term.expire = 60 |
|
284 | 284 | beaker.cache.short_term.key_length = 256 |
|
285 | 285 | |
|
286 | 286 | beaker.cache.long_term.type = memory |
|
287 | 287 | beaker.cache.long_term.expire = 36000 |
|
288 | 288 | beaker.cache.long_term.key_length = 256 |
|
289 | 289 | |
|
290 | 290 | beaker.cache.sql_cache_short.type = memory |
|
291 | 291 | beaker.cache.sql_cache_short.expire = 10 |
|
292 | 292 | beaker.cache.sql_cache_short.key_length = 256 |
|
293 | 293 | |
|
294 | 294 | ## default is memory cache, configure only if required |
|
295 | 295 | ## using multi-node or multi-worker setup |
|
296 | 296 | #beaker.cache.auth_plugins.type = ext:database |
|
297 | 297 | #beaker.cache.auth_plugins.lock_dir = %(here)s/data/cache/auth_plugin_lock |
|
298 | 298 | #beaker.cache.auth_plugins.url = postgresql://postgres:secret@localhost/rhodecode |
|
299 | 299 | #beaker.cache.auth_plugins.url = mysql://root:secret@127.0.0.1/rhodecode |
|
300 | 300 | #beaker.cache.auth_plugins.sa.pool_recycle = 3600 |
|
301 | 301 | #beaker.cache.auth_plugins.sa.pool_size = 10 |
|
302 | 302 | #beaker.cache.auth_plugins.sa.max_overflow = 0 |
|
303 | 303 | |
|
304 | 304 | beaker.cache.repo_cache_long.type = memorylru_base |
|
305 | 305 | beaker.cache.repo_cache_long.max_items = 4096 |
|
306 | 306 | beaker.cache.repo_cache_long.expire = 2592000 |
|
307 | 307 | |
|
308 | 308 | ## default is memorylru_base cache, configure only if required |
|
309 | 309 | ## using multi-node or multi-worker setup |
|
310 | 310 | #beaker.cache.repo_cache_long.type = ext:memcached |
|
311 | 311 | #beaker.cache.repo_cache_long.url = localhost:11211 |
|
312 | 312 | #beaker.cache.repo_cache_long.expire = 1209600 |
|
313 | 313 | #beaker.cache.repo_cache_long.key_length = 256 |
|
314 | 314 | |
|
315 | 315 | #################################### |
|
316 | 316 | ### BEAKER SESSION #### |
|
317 | 317 | #################################### |
|
318 | 318 | |
|
319 | 319 | ## .session.type is type of storage options for the session, current allowed |
|
320 | 320 | ## types are file, ext:memcached, ext:database, and memory (default). |
|
321 | 321 | beaker.session.type = file |
|
322 | 322 | beaker.session.data_dir = %(here)s/data/sessions/data |
|
323 | 323 | |
|
324 | 324 | ## db based session, fast, and allows easy management over logged in users ## |
|
325 | 325 | #beaker.session.type = ext:database |
|
326 | 326 | #beaker.session.table_name = db_session |
|
327 | 327 | #beaker.session.sa.url = postgresql://postgres:secret@localhost/rhodecode |
|
328 | 328 | #beaker.session.sa.url = mysql://root:secret@127.0.0.1/rhodecode |
|
329 | 329 | #beaker.session.sa.pool_recycle = 3600 |
|
330 | 330 | #beaker.session.sa.echo = false |
|
331 | 331 | |
|
332 | 332 | beaker.session.key = rhodecode |
|
333 | 333 | beaker.session.secret = production-rc-uytcxaz |
|
334 | 334 | beaker.session.lock_dir = %(here)s/data/sessions/lock |
|
335 | 335 | |
|
336 | 336 | ## Secure encrypted cookie. Requires AES and AES python libraries |
|
337 | 337 | ## you must disable beaker.session.secret to use this |
|
338 | 338 | #beaker.session.encrypt_key = <key_for_encryption> |
|
339 | 339 | #beaker.session.validate_key = <validation_key> |
|
340 | 340 | |
|
341 | 341 | ## sets session as invalid(also logging out user) if it haven not been |
|
342 | 342 | ## accessed for given amount of time in seconds |
|
343 | 343 | beaker.session.timeout = 2592000 |
|
344 | 344 | beaker.session.httponly = true |
|
345 | 345 | #beaker.session.cookie_path = /<your-prefix> |
|
346 | 346 | |
|
347 | 347 | ## uncomment for https secure cookie |
|
348 | 348 | beaker.session.secure = false |
|
349 | 349 | |
|
350 | 350 | ## auto save the session to not to use .save() |
|
351 | 351 | beaker.session.auto = false |
|
352 | 352 | |
|
353 | 353 | ## default cookie expiration time in seconds, set to `true` to set expire |
|
354 | 354 | ## at browser close |
|
355 | 355 | #beaker.session.cookie_expires = 3600 |
|
356 | 356 | |
|
357 | 357 | ################################### |
|
358 | 358 | ## SEARCH INDEXING CONFIGURATION ## |
|
359 | 359 | ################################### |
|
360 | 360 | ## Full text search indexer is available in rhodecode-tools under |
|
361 | 361 | ## `rhodecode-tools index` command |
|
362 | 362 | |
|
363 | 363 | # WHOOSH Backend, doesn't require additional services to run |
|
364 | 364 | # it works good with few dozen repos |
|
365 | 365 | search.module = rhodecode.lib.index.whoosh |
|
366 | 366 | search.location = %(here)s/data/index |
|
367 | 367 | |
|
368 | 368 | ######################################## |
|
369 | 369 | ### CHANNELSTREAM CONFIG #### |
|
370 | 370 | ######################################## |
|
371 | 371 | ## channelstream enables persistent connections and live notification |
|
372 | 372 | ## in the system. It's also used by the chat system |
|
373 | 373 | |
|
374 | 374 | channelstream.enabled = true |
|
375 | 375 | # location of channelstream server on the backend |
|
376 | 376 | channelstream.server = 127.0.0.1:9800 |
|
377 | 377 | # location of the channelstream server from outside world |
|
378 | 378 | channelstream.ws_url = ws://127.0.0.1:9800 |
|
379 | 379 | channelstream.secret = secret |
|
380 | 380 | channelstream.history.location = %(here)s/channelstream_history |
|
381 | 381 | |
|
382 | 382 | |
|
383 | 383 | ################################### |
|
384 | 384 | ## APPENLIGHT CONFIG ## |
|
385 | 385 | ################################### |
|
386 | 386 | |
|
387 | 387 | ## Appenlight is tailored to work with RhodeCode, see |
|
388 | 388 | ## http://appenlight.com for details how to obtain an account |
|
389 | 389 | |
|
390 | 390 | ## appenlight integration enabled |
|
391 | 391 | appenlight = false |
|
392 | 392 | |
|
393 | 393 | appenlight.server_url = https://api.appenlight.com |
|
394 | 394 | appenlight.api_key = YOUR_API_KEY |
|
395 | 395 | #appenlight.transport_config = https://api.appenlight.com?threaded=1&timeout=5 |
|
396 | 396 | |
|
397 | 397 | # used for JS client |
|
398 | 398 | appenlight.api_public_key = YOUR_API_PUBLIC_KEY |
|
399 | 399 | |
|
400 | 400 | ## TWEAK AMOUNT OF INFO SENT HERE |
|
401 | 401 | |
|
402 | 402 | ## enables 404 error logging (default False) |
|
403 | 403 | appenlight.report_404 = false |
|
404 | 404 | |
|
405 | 405 | ## time in seconds after request is considered being slow (default 1) |
|
406 | 406 | appenlight.slow_request_time = 1 |
|
407 | 407 | |
|
408 | 408 | ## record slow requests in application |
|
409 | 409 | ## (needs to be enabled for slow datastore recording and time tracking) |
|
410 | 410 | appenlight.slow_requests = true |
|
411 | 411 | |
|
412 | 412 | ## enable hooking to application loggers |
|
413 | 413 | appenlight.logging = true |
|
414 | 414 | |
|
415 | 415 | ## minimum log level for log capture |
|
416 | 416 | appenlight.logging.level = WARNING |
|
417 | 417 | |
|
418 | 418 | ## send logs only from erroneous/slow requests |
|
419 | 419 | ## (saves API quota for intensive logging) |
|
420 | 420 | appenlight.logging_on_error = false |
|
421 | 421 | |
|
422 | 422 | ## list of additonal keywords that should be grabbed from environ object |
|
423 | 423 | ## can be string with comma separated list of words in lowercase |
|
424 | 424 | ## (by default client will always send following info: |
|
425 | 425 | ## 'REMOTE_USER', 'REMOTE_ADDR', 'SERVER_NAME', 'CONTENT_TYPE' + all keys that |
|
426 | 426 | ## start with HTTP* this list be extended with additional keywords here |
|
427 | 427 | appenlight.environ_keys_whitelist = |
|
428 | 428 | |
|
429 | 429 | ## list of keywords that should be blanked from request object |
|
430 | 430 | ## can be string with comma separated list of words in lowercase |
|
431 | 431 | ## (by default client will always blank keys that contain following words |
|
432 | 432 | ## 'password', 'passwd', 'pwd', 'auth_tkt', 'secret', 'csrf' |
|
433 | 433 | ## this list be extended with additional keywords set here |
|
434 | 434 | appenlight.request_keys_blacklist = |
|
435 | 435 | |
|
436 | 436 | ## list of namespaces that should be ignores when gathering log entries |
|
437 | 437 | ## can be string with comma separated list of namespaces |
|
438 | 438 | ## (by default the client ignores own entries: appenlight_client.client) |
|
439 | 439 | appenlight.log_namespace_blacklist = |
|
440 | 440 | |
|
441 | 441 | |
|
442 | 442 | ################################################################################ |
|
443 | 443 | ## WARNING: *THE LINE BELOW MUST BE UNCOMMENTED ON A PRODUCTION ENVIRONMENT* ## |
|
444 | 444 | ## Debug mode will enable the interactive debugging tool, allowing ANYONE to ## |
|
445 | 445 | ## execute malicious code after an exception is raised. ## |
|
446 | 446 | ################################################################################ |
|
447 | 447 | set debug = false |
|
448 | 448 | |
|
449 | 449 | |
|
450 | 450 | ######################################################### |
|
451 | 451 | ### DB CONFIGS - EACH DB WILL HAVE IT'S OWN CONFIG ### |
|
452 | 452 | ######################################################### |
|
453 | 453 | #sqlalchemy.db1.url = sqlite:///%(here)s/rhodecode.db?timeout=30 |
|
454 | 454 | sqlalchemy.db1.url = postgresql://postgres:qweqwe@localhost/rhodecode |
|
455 | 455 | #sqlalchemy.db1.url = mysql://root:qweqwe@localhost/rhodecode |
|
456 | 456 | |
|
457 | 457 | # see sqlalchemy docs for other advanced settings |
|
458 | 458 | |
|
459 | 459 | ## print the sql statements to output |
|
460 | 460 | sqlalchemy.db1.echo = false |
|
461 | 461 | ## recycle the connections after this ammount of seconds |
|
462 | 462 | sqlalchemy.db1.pool_recycle = 3600 |
|
463 | 463 | sqlalchemy.db1.convert_unicode = true |
|
464 | 464 | |
|
465 | 465 | ## the number of connections to keep open inside the connection pool. |
|
466 | 466 | ## 0 indicates no limit |
|
467 | 467 | #sqlalchemy.db1.pool_size = 5 |
|
468 | 468 | |
|
469 | 469 | ## the number of connections to allow in connection pool "overflow", that is |
|
470 | 470 | ## connections that can be opened above and beyond the pool_size setting, |
|
471 | 471 | ## which defaults to five. |
|
472 | 472 | #sqlalchemy.db1.max_overflow = 10 |
|
473 | 473 | |
|
474 | 474 | |
|
475 | 475 | ################## |
|
476 | 476 | ### VCS CONFIG ### |
|
477 | 477 | ################## |
|
478 | 478 | vcs.server.enable = true |
|
479 | 479 | vcs.server = localhost:9900 |
|
480 | 480 | |
|
481 | 481 | ## Web server connectivity protocol, responsible for web based VCS operatations |
|
482 | 482 | ## Available protocols are: |
|
483 | 483 | ## `pyro4` - using pyro4 server |
|
484 | 484 | ## `http` - using http-rpc backend |
|
485 | 485 | #vcs.server.protocol = http |
|
486 | 486 | |
|
487 | 487 | ## Push/Pull operations protocol, available options are: |
|
488 | 488 | ## `pyro4` - using pyro4 server |
|
489 | 489 | ## `rhodecode.lib.middleware.utils.scm_app_http` - Http based, recommended |
|
490 | 490 | ## `vcsserver.scm_app` - internal app (EE only) |
|
491 | 491 | #vcs.scm_app_implementation = rhodecode.lib.middleware.utils.scm_app_http |
|
492 | 492 | |
|
493 | 493 | ## Push/Pull operations hooks protocol, available options are: |
|
494 | 494 | ## `pyro4` - using pyro4 server |
|
495 | 495 | ## `http` - using http-rpc backend |
|
496 | 496 | #vcs.hooks.protocol = http |
|
497 | 497 | |
|
498 | 498 | vcs.server.log_level = info |
|
499 | 499 | ## Start VCSServer with this instance as a subprocess, usefull for development |
|
500 | 500 | vcs.start_server = false |
|
501 | 501 | |
|
502 | 502 | ## List of enabled VCS backends, available options are: |
|
503 | 503 | ## `hg` - mercurial |
|
504 | 504 | ## `git` - git |
|
505 | 505 | ## `svn` - subversion |
|
506 | 506 | vcs.backends = hg, git, svn |
|
507 | 507 | |
|
508 | 508 | vcs.connection_timeout = 3600 |
|
509 | 509 | ## Compatibility version when creating SVN repositories. Defaults to newest version when commented out. |
|
510 | 510 | ## Available options are: pre-1.4-compatible, pre-1.5-compatible, pre-1.6-compatible, pre-1.8-compatible |
|
511 | 511 | #vcs.svn.compatible_version = pre-1.8-compatible |
|
512 | 512 | |
|
513 | 513 | |
|
514 | 514 | ############################################## |
|
515 | 515 | ### Subversion proxy support (mod_dav_svn) ### |
|
516 | 516 | ############################################## |
|
517 | 517 | ## Enable or disable the config file generation. |
|
518 | 518 | svn.proxy.generate_config = false |
|
519 | 519 | ## Generate config file with `SVNListParentPath` set to `On`. |
|
520 | 520 | svn.proxy.list_parent_path = true |
|
521 | 521 | ## Set location and file name of generated config file. |
|
522 | 522 | svn.proxy.config_file_path = %(here)s/mod_dav_svn.conf |
|
523 | 523 | ## File system path to the directory containing the repositories served by |
|
524 | 524 | ## RhodeCode. |
|
525 | 525 | svn.proxy.parent_path_root = /path/to/repo_store |
|
526 | 526 | ## Used as a prefix to the <Location> block in the generated config file. In |
|
527 | 527 | ## most cases it should be set to `/`. |
|
528 | 528 | svn.proxy.location_root = / |
|
529 | 529 | |
|
530 | 530 | |
|
531 | 531 | ################################ |
|
532 | 532 | ### LOGGING CONFIGURATION #### |
|
533 | 533 | ################################ |
|
534 | 534 | [loggers] |
|
535 | 535 | keys = root, routes, rhodecode, sqlalchemy, beaker, pyro4, templates |
|
536 | 536 | |
|
537 | 537 | [handlers] |
|
538 | 538 | keys = console, console_sql |
|
539 | 539 | |
|
540 | 540 | [formatters] |
|
541 | 541 | keys = generic, color_formatter, color_formatter_sql |
|
542 | 542 | |
|
543 | 543 | ############# |
|
544 | 544 | ## LOGGERS ## |
|
545 | 545 | ############# |
|
546 | 546 | [logger_root] |
|
547 | 547 | level = NOTSET |
|
548 | 548 | handlers = console |
|
549 | 549 | |
|
550 | 550 | [logger_routes] |
|
551 | 551 | level = DEBUG |
|
552 | 552 | handlers = |
|
553 | 553 | qualname = routes.middleware |
|
554 | 554 | ## "level = DEBUG" logs the route matched and routing variables. |
|
555 | 555 | propagate = 1 |
|
556 | 556 | |
|
557 | 557 | [logger_beaker] |
|
558 | 558 | level = DEBUG |
|
559 | 559 | handlers = |
|
560 | 560 | qualname = beaker.container |
|
561 | 561 | propagate = 1 |
|
562 | 562 | |
|
563 | 563 | [logger_pyro4] |
|
564 | 564 | level = DEBUG |
|
565 | 565 | handlers = |
|
566 | 566 | qualname = Pyro4 |
|
567 | 567 | propagate = 1 |
|
568 | 568 | |
|
569 | 569 | [logger_templates] |
|
570 | 570 | level = INFO |
|
571 | 571 | handlers = |
|
572 | 572 | qualname = pylons.templating |
|
573 | 573 | propagate = 1 |
|
574 | 574 | |
|
575 | 575 | [logger_rhodecode] |
|
576 | 576 | level = DEBUG |
|
577 | 577 | handlers = |
|
578 | 578 | qualname = rhodecode |
|
579 | 579 | propagate = 1 |
|
580 | 580 | |
|
581 | 581 | [logger_sqlalchemy] |
|
582 | 582 | level = INFO |
|
583 | 583 | handlers = console_sql |
|
584 | 584 | qualname = sqlalchemy.engine |
|
585 | 585 | propagate = 0 |
|
586 | 586 | |
|
587 | 587 | ############## |
|
588 | 588 | ## HANDLERS ## |
|
589 | 589 | ############## |
|
590 | 590 | |
|
591 | 591 | [handler_console] |
|
592 | 592 | class = StreamHandler |
|
593 | 593 | args = (sys.stderr,) |
|
594 | 594 | level = INFO |
|
595 | 595 | formatter = generic |
|
596 | 596 | |
|
597 | 597 | [handler_console_sql] |
|
598 | 598 | class = StreamHandler |
|
599 | 599 | args = (sys.stderr,) |
|
600 | 600 | level = WARN |
|
601 | 601 | formatter = generic |
|
602 | 602 | |
|
603 | 603 | ################ |
|
604 | 604 | ## FORMATTERS ## |
|
605 | 605 | ################ |
|
606 | 606 | |
|
607 | 607 | [formatter_generic] |
|
608 | 608 | class = rhodecode.lib.logging_formatter.Pyro4AwareFormatter |
|
609 | 609 | format = %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s |
|
610 | 610 | datefmt = %Y-%m-%d %H:%M:%S |
|
611 | 611 | |
|
612 | 612 | [formatter_color_formatter] |
|
613 | 613 | class = rhodecode.lib.logging_formatter.ColorFormatter |
|
614 | 614 | format = %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s |
|
615 | 615 | datefmt = %Y-%m-%d %H:%M:%S |
|
616 | 616 | |
|
617 | 617 | [formatter_color_formatter_sql] |
|
618 | 618 | class = rhodecode.lib.logging_formatter.ColorFormatterSql |
|
619 | 619 | format = %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s |
|
620 | 620 | datefmt = %Y-%m-%d %H:%M:%S |
General Comments 0
You need to be logged in to leave comments.
Login now