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