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