##// END OF EJS Templates
configs: mention not to use memory sessions
super-admin -
r5183:e1d1f48d default
parent child Browse files
Show More
@@ -1,863 +1,863 b''
1
1
2
2
3 ; #########################################
3 ; #########################################
4 ; RHODECODE COMMUNITY EDITION CONFIGURATION
4 ; RHODECODE COMMUNITY EDITION CONFIGURATION
5 ; #########################################
5 ; #########################################
6
6
7 [DEFAULT]
7 [DEFAULT]
8 ; Debug flag sets all loggers to debug, and enables request tracking
8 ; Debug flag sets all loggers to debug, and enables request tracking
9 debug = true
9 debug = true
10
10
11 ; ########################################################################
11 ; ########################################################################
12 ; EMAIL CONFIGURATION
12 ; EMAIL CONFIGURATION
13 ; These settings will be used by the RhodeCode mailing system
13 ; These settings will be used by the RhodeCode mailing system
14 ; ########################################################################
14 ; ########################################################################
15
15
16 ; prefix all emails subjects with given prefix, helps filtering out emails
16 ; prefix all emails subjects with given prefix, helps filtering out emails
17 #email_prefix = [RhodeCode]
17 #email_prefix = [RhodeCode]
18
18
19 ; email FROM address all mails will be sent
19 ; email FROM address all mails will be sent
20 #app_email_from = rhodecode-noreply@localhost
20 #app_email_from = rhodecode-noreply@localhost
21
21
22 #smtp_server = mail.server.com
22 #smtp_server = mail.server.com
23 #smtp_username =
23 #smtp_username =
24 #smtp_password =
24 #smtp_password =
25 #smtp_port =
25 #smtp_port =
26 #smtp_use_tls = false
26 #smtp_use_tls = false
27 #smtp_use_ssl = true
27 #smtp_use_ssl = true
28
28
29 [server:main]
29 [server:main]
30 ; COMMON HOST/IP CONFIG, This applies mostly to develop setup,
30 ; COMMON HOST/IP CONFIG, This applies mostly to develop setup,
31 ; Host port for gunicorn are controlled by gunicorn_conf.py
31 ; Host port for gunicorn are controlled by gunicorn_conf.py
32 host = 127.0.0.1
32 host = 127.0.0.1
33 port = 10020
33 port = 10020
34
34
35 ; ##################################################
35 ; ##################################################
36 ; WAITRESS WSGI SERVER - Recommended for Development
36 ; WAITRESS WSGI SERVER - Recommended for Development
37 ; ##################################################
37 ; ##################################################
38
38
39 ; use server type
39 ; use server type
40 use = egg:waitress#main
40 use = egg:waitress#main
41
41
42 ; number of worker threads
42 ; number of worker threads
43 threads = 5
43 threads = 5
44
44
45 ; MAX BODY SIZE 100GB
45 ; MAX BODY SIZE 100GB
46 max_request_body_size = 107374182400
46 max_request_body_size = 107374182400
47
47
48 ; Use poll instead of select, fixes file descriptors limits problems.
48 ; Use poll instead of select, fixes file descriptors limits problems.
49 ; May not work on old windows systems.
49 ; May not work on old windows systems.
50 asyncore_use_poll = true
50 asyncore_use_poll = true
51
51
52
52
53 ; ###########################
53 ; ###########################
54 ; GUNICORN APPLICATION SERVER
54 ; GUNICORN APPLICATION SERVER
55 ; ###########################
55 ; ###########################
56
56
57 ; run with gunicorn --paste rhodecode.ini --config gunicorn_conf.py
57 ; run with gunicorn --paste rhodecode.ini --config gunicorn_conf.py
58
58
59 ; Module to use, this setting shouldn't be changed
59 ; Module to use, this setting shouldn't be changed
60 #use = egg:gunicorn#main
60 #use = egg:gunicorn#main
61
61
62 ; Prefix middleware for RhodeCode.
62 ; Prefix middleware for RhodeCode.
63 ; recommended when using proxy setup.
63 ; recommended when using proxy setup.
64 ; allows to set RhodeCode under a prefix in server.
64 ; allows to set RhodeCode under a prefix in server.
65 ; eg https://server.com/custom_prefix. Enable `filter-with =` option below as well.
65 ; eg https://server.com/custom_prefix. Enable `filter-with =` option below as well.
66 ; And set your prefix like: `prefix = /custom_prefix`
66 ; And set your prefix like: `prefix = /custom_prefix`
67 ; be sure to also set beaker.session.cookie_path = /custom_prefix if you need
67 ; be sure to also set beaker.session.cookie_path = /custom_prefix if you need
68 ; to make your cookies only work on prefix url
68 ; to make your cookies only work on prefix url
69 [filter:proxy-prefix]
69 [filter:proxy-prefix]
70 use = egg:PasteDeploy#prefix
70 use = egg:PasteDeploy#prefix
71 prefix = /
71 prefix = /
72
72
73 [app:main]
73 [app:main]
74 ; The %(here)s variable will be replaced with the absolute path of parent directory
74 ; The %(here)s variable will be replaced with the absolute path of parent directory
75 ; of this file
75 ; of this file
76 ; Each option in the app:main can be override by an environmental variable
76 ; Each option in the app:main can be override by an environmental variable
77 ;
77 ;
78 ;To override an option:
78 ;To override an option:
79 ;
79 ;
80 ;RC_<KeyName>
80 ;RC_<KeyName>
81 ;Everything should be uppercase, . and - should be replaced by _.
81 ;Everything should be uppercase, . and - should be replaced by _.
82 ;For example, if you have these configuration settings:
82 ;For example, if you have these configuration settings:
83 ;rc_cache.repo_object.backend = foo
83 ;rc_cache.repo_object.backend = foo
84 ;can be overridden by
84 ;can be overridden by
85 ;export RC_CACHE_REPO_OBJECT_BACKEND=foo
85 ;export RC_CACHE_REPO_OBJECT_BACKEND=foo
86
86
87 use = egg:rhodecode-enterprise-ce
87 use = egg:rhodecode-enterprise-ce
88
88
89 ; enable proxy prefix middleware, defined above
89 ; enable proxy prefix middleware, defined above
90 #filter-with = proxy-prefix
90 #filter-with = proxy-prefix
91
91
92 ; #############
92 ; #############
93 ; DEBUG OPTIONS
93 ; DEBUG OPTIONS
94 ; #############
94 ; #############
95
95
96 pyramid.reload_templates = true
96 pyramid.reload_templates = true
97
97
98 # During development the we want to have the debug toolbar enabled
98 # During development the we want to have the debug toolbar enabled
99 pyramid.includes =
99 pyramid.includes =
100 pyramid_debugtoolbar
100 pyramid_debugtoolbar
101
101
102 debugtoolbar.hosts = 0.0.0.0/0
102 debugtoolbar.hosts = 0.0.0.0/0
103 debugtoolbar.exclude_prefixes =
103 debugtoolbar.exclude_prefixes =
104 /css
104 /css
105 /fonts
105 /fonts
106 /images
106 /images
107 /js
107 /js
108
108
109 ## RHODECODE PLUGINS ##
109 ## RHODECODE PLUGINS ##
110 rhodecode.includes =
110 rhodecode.includes =
111 rhodecode.api
111 rhodecode.api
112
112
113
113
114 # api prefix url
114 # api prefix url
115 rhodecode.api.url = /_admin/api
115 rhodecode.api.url = /_admin/api
116
116
117 ; enable debug style page
117 ; enable debug style page
118 debug_style = true
118 debug_style = true
119
119
120 ; #################
120 ; #################
121 ; END DEBUG OPTIONS
121 ; END DEBUG OPTIONS
122 ; #################
122 ; #################
123
123
124 ; encryption key used to encrypt social plugin tokens,
124 ; encryption key used to encrypt social plugin tokens,
125 ; remote_urls with credentials etc, if not set it defaults to
125 ; remote_urls with credentials etc, if not set it defaults to
126 ; `beaker.session.secret`
126 ; `beaker.session.secret`
127 #rhodecode.encrypted_values.secret =
127 #rhodecode.encrypted_values.secret =
128
128
129 ; decryption strict mode (enabled by default). It controls if decryption raises
129 ; decryption strict mode (enabled by default). It controls if decryption raises
130 ; `SignatureVerificationError` in case of wrong key, or damaged encryption data.
130 ; `SignatureVerificationError` in case of wrong key, or damaged encryption data.
131 #rhodecode.encrypted_values.strict = false
131 #rhodecode.encrypted_values.strict = false
132
132
133 ; Pick algorithm for encryption. Either fernet (more secure) or aes (default)
133 ; Pick algorithm for encryption. Either fernet (more secure) or aes (default)
134 ; fernet is safer, and we strongly recommend switching to it.
134 ; fernet is safer, and we strongly recommend switching to it.
135 ; Due to backward compatibility aes is used as default.
135 ; Due to backward compatibility aes is used as default.
136 #rhodecode.encrypted_values.algorithm = fernet
136 #rhodecode.encrypted_values.algorithm = fernet
137
137
138 ; Return gzipped responses from RhodeCode (static files/application)
138 ; Return gzipped responses from RhodeCode (static files/application)
139 gzip_responses = false
139 gzip_responses = false
140
140
141 ; Auto-generate javascript routes file on startup
141 ; Auto-generate javascript routes file on startup
142 generate_js_files = false
142 generate_js_files = false
143
143
144 ; System global default language.
144 ; System global default language.
145 ; All available languages: en (default), be, de, es, fr, it, ja, pl, pt, ru, zh
145 ; All available languages: en (default), be, de, es, fr, it, ja, pl, pt, ru, zh
146 lang = en
146 lang = en
147
147
148 ; Perform a full repository scan and import on each server start.
148 ; Perform a full repository scan and import on each server start.
149 ; Settings this to true could lead to very long startup time.
149 ; Settings this to true could lead to very long startup time.
150 startup.import_repos = false
150 startup.import_repos = false
151
151
152 ; URL at which the application is running. This is used for Bootstrapping
152 ; URL at which the application is running. This is used for Bootstrapping
153 ; requests in context when no web request is available. Used in ishell, or
153 ; requests in context when no web request is available. Used in ishell, or
154 ; SSH calls. Set this for events to receive proper url for SSH calls.
154 ; SSH calls. Set this for events to receive proper url for SSH calls.
155 app.base_url = http://rhodecode.local
155 app.base_url = http://rhodecode.local
156
156
157 ; Unique application ID. Should be a random unique string for security.
157 ; Unique application ID. Should be a random unique string for security.
158 app_instance_uuid = rc-production
158 app_instance_uuid = rc-production
159
159
160 ; Cut off limit for large diffs (size in bytes). If overall diff size on
160 ; Cut off limit for large diffs (size in bytes). If overall diff size on
161 ; commit, or pull request exceeds this limit this diff will be displayed
161 ; commit, or pull request exceeds this limit this diff will be displayed
162 ; partially. E.g 512000 == 512Kb
162 ; partially. E.g 512000 == 512Kb
163 cut_off_limit_diff = 512000
163 cut_off_limit_diff = 512000
164
164
165 ; Cut off limit for large files inside diffs (size in bytes). Each individual
165 ; Cut off limit for large files inside diffs (size in bytes). Each individual
166 ; file inside diff which exceeds this limit will be displayed partially.
166 ; file inside diff which exceeds this limit will be displayed partially.
167 ; E.g 128000 == 128Kb
167 ; E.g 128000 == 128Kb
168 cut_off_limit_file = 128000
168 cut_off_limit_file = 128000
169
169
170 ; Use cached version of vcs repositories everywhere. Recommended to be `true`
170 ; Use cached version of vcs repositories everywhere. Recommended to be `true`
171 vcs_full_cache = true
171 vcs_full_cache = true
172
172
173 ; Force https in RhodeCode, fixes https redirects, assumes it's always https.
173 ; Force https in RhodeCode, fixes https redirects, assumes it's always https.
174 ; Normally this is controlled by proper flags sent from http server such as Nginx or Apache
174 ; Normally this is controlled by proper flags sent from http server such as Nginx or Apache
175 force_https = false
175 force_https = false
176
176
177 ; use Strict-Transport-Security headers
177 ; use Strict-Transport-Security headers
178 use_htsts = false
178 use_htsts = false
179
179
180 ; Set to true if your repos are exposed using the dumb protocol
180 ; Set to true if your repos are exposed using the dumb protocol
181 git_update_server_info = false
181 git_update_server_info = false
182
182
183 ; RSS/ATOM feed options
183 ; RSS/ATOM feed options
184 rss_cut_off_limit = 256000
184 rss_cut_off_limit = 256000
185 rss_items_per_page = 10
185 rss_items_per_page = 10
186 rss_include_diff = false
186 rss_include_diff = false
187
187
188 ; gist URL alias, used to create nicer urls for gist. This should be an
188 ; gist URL alias, used to create nicer urls for gist. This should be an
189 ; url that does rewrites to _admin/gists/{gistid}.
189 ; url that does rewrites to _admin/gists/{gistid}.
190 ; example: http://gist.rhodecode.org/{gistid}. Empty means use the internal
190 ; example: http://gist.rhodecode.org/{gistid}. Empty means use the internal
191 ; RhodeCode url, ie. http[s]://rhodecode.server/_admin/gists/{gistid}
191 ; RhodeCode url, ie. http[s]://rhodecode.server/_admin/gists/{gistid}
192 gist_alias_url =
192 gist_alias_url =
193
193
194 ; List of views (using glob pattern syntax) that AUTH TOKENS could be
194 ; List of views (using glob pattern syntax) that AUTH TOKENS could be
195 ; used for access.
195 ; used for access.
196 ; Adding ?auth_token=TOKEN_HASH to the url authenticates this request as if it
196 ; Adding ?auth_token=TOKEN_HASH to the url authenticates this request as if it
197 ; came from the the logged in user who own this authentication token.
197 ; came from the the logged in user who own this authentication token.
198 ; Additionally @TOKEN syntax can be used to bound the view to specific
198 ; Additionally @TOKEN syntax can be used to bound the view to specific
199 ; authentication token. Such view would be only accessible when used together
199 ; authentication token. Such view would be only accessible when used together
200 ; with this authentication token
200 ; with this authentication token
201 ; list of all views can be found under `/_admin/permissions/auth_token_access`
201 ; list of all views can be found under `/_admin/permissions/auth_token_access`
202 ; The list should be "," separated and on a single line.
202 ; The list should be "," separated and on a single line.
203 ; Most common views to enable:
203 ; Most common views to enable:
204
204
205 # RepoCommitsView:repo_commit_download
205 # RepoCommitsView:repo_commit_download
206 # RepoCommitsView:repo_commit_patch
206 # RepoCommitsView:repo_commit_patch
207 # RepoCommitsView:repo_commit_raw
207 # RepoCommitsView:repo_commit_raw
208 # RepoCommitsView:repo_commit_raw@TOKEN
208 # RepoCommitsView:repo_commit_raw@TOKEN
209 # RepoFilesView:repo_files_diff
209 # RepoFilesView:repo_files_diff
210 # RepoFilesView:repo_archivefile
210 # RepoFilesView:repo_archivefile
211 # RepoFilesView:repo_file_raw
211 # RepoFilesView:repo_file_raw
212 # GistView:*
212 # GistView:*
213 api_access_controllers_whitelist =
213 api_access_controllers_whitelist =
214
214
215 ; Default encoding used to convert from and to unicode
215 ; Default encoding used to convert from and to unicode
216 ; can be also a comma separated list of encoding in case of mixed encodings
216 ; can be also a comma separated list of encoding in case of mixed encodings
217 default_encoding = UTF-8
217 default_encoding = UTF-8
218
218
219 ; instance-id prefix
219 ; instance-id prefix
220 ; a prefix key for this instance used for cache invalidation when running
220 ; a prefix key for this instance used for cache invalidation when running
221 ; multiple instances of RhodeCode, make sure it's globally unique for
221 ; multiple instances of RhodeCode, make sure it's globally unique for
222 ; all running RhodeCode instances. Leave empty if you don't use it
222 ; all running RhodeCode instances. Leave empty if you don't use it
223 instance_id =
223 instance_id =
224
224
225 ; Fallback authentication plugin. Set this to a plugin ID to force the usage
225 ; Fallback authentication plugin. Set this to a plugin ID to force the usage
226 ; of an authentication plugin also if it is disabled by it's settings.
226 ; of an authentication plugin also if it is disabled by it's settings.
227 ; This could be useful if you are unable to log in to the system due to broken
227 ; This could be useful if you are unable to log in to the system due to broken
228 ; authentication settings. Then you can enable e.g. the internal RhodeCode auth
228 ; authentication settings. Then you can enable e.g. the internal RhodeCode auth
229 ; module to log in again and fix the settings.
229 ; module to log in again and fix the settings.
230 ; Available builtin plugin IDs (hash is part of the ID):
230 ; Available builtin plugin IDs (hash is part of the ID):
231 ; egg:rhodecode-enterprise-ce#rhodecode
231 ; egg:rhodecode-enterprise-ce#rhodecode
232 ; egg:rhodecode-enterprise-ce#pam
232 ; egg:rhodecode-enterprise-ce#pam
233 ; egg:rhodecode-enterprise-ce#ldap
233 ; egg:rhodecode-enterprise-ce#ldap
234 ; egg:rhodecode-enterprise-ce#jasig_cas
234 ; egg:rhodecode-enterprise-ce#jasig_cas
235 ; egg:rhodecode-enterprise-ce#headers
235 ; egg:rhodecode-enterprise-ce#headers
236 ; egg:rhodecode-enterprise-ce#crowd
236 ; egg:rhodecode-enterprise-ce#crowd
237
237
238 #rhodecode.auth_plugin_fallback = egg:rhodecode-enterprise-ce#rhodecode
238 #rhodecode.auth_plugin_fallback = egg:rhodecode-enterprise-ce#rhodecode
239
239
240 ; Flag to control loading of legacy plugins in py:/path format
240 ; Flag to control loading of legacy plugins in py:/path format
241 auth_plugin.import_legacy_plugins = true
241 auth_plugin.import_legacy_plugins = true
242
242
243 ; alternative return HTTP header for failed authentication. Default HTTP
243 ; alternative return HTTP header for failed authentication. Default HTTP
244 ; response is 401 HTTPUnauthorized. Currently HG clients have troubles with
244 ; response is 401 HTTPUnauthorized. Currently HG clients have troubles with
245 ; handling that causing a series of failed authentication calls.
245 ; handling that causing a series of failed authentication calls.
246 ; Set this variable to 403 to return HTTPForbidden, or any other HTTP code
246 ; Set this variable to 403 to return HTTPForbidden, or any other HTTP code
247 ; This will be served instead of default 401 on bad authentication
247 ; This will be served instead of default 401 on bad authentication
248 auth_ret_code =
248 auth_ret_code =
249
249
250 ; use special detection method when serving auth_ret_code, instead of serving
250 ; use special detection method when serving auth_ret_code, instead of serving
251 ; ret_code directly, use 401 initially (Which triggers credentials prompt)
251 ; ret_code directly, use 401 initially (Which triggers credentials prompt)
252 ; and then serve auth_ret_code to clients
252 ; and then serve auth_ret_code to clients
253 auth_ret_code_detection = false
253 auth_ret_code_detection = false
254
254
255 ; locking return code. When repository is locked return this HTTP code. 2XX
255 ; locking return code. When repository is locked return this HTTP code. 2XX
256 ; codes don't break the transactions while 4XX codes do
256 ; codes don't break the transactions while 4XX codes do
257 lock_ret_code = 423
257 lock_ret_code = 423
258
258
259 ; allows to change the repository location in settings page
259 ; allows to change the repository location in settings page
260 allow_repo_location_change = true
260 allow_repo_location_change = true
261
261
262 ; allows to setup custom hooks in settings page
262 ; allows to setup custom hooks in settings page
263 allow_custom_hooks_settings = true
263 allow_custom_hooks_settings = true
264
264
265 ; Generated license token required for EE edition license.
265 ; Generated license token required for EE edition license.
266 ; New generated token value can be found in Admin > settings > license page.
266 ; New generated token value can be found in Admin > settings > license page.
267 license_token =
267 license_token =
268
268
269 ; This flag hides sensitive information on the license page such as token, and license data
269 ; This flag hides sensitive information on the license page such as token, and license data
270 license.hide_license_info = false
270 license.hide_license_info = false
271
271
272 ; supervisor connection uri, for managing supervisor and logs.
272 ; supervisor connection uri, for managing supervisor and logs.
273 supervisor.uri =
273 supervisor.uri =
274
274
275 ; supervisord group name/id we only want this RC instance to handle
275 ; supervisord group name/id we only want this RC instance to handle
276 supervisor.group_id = dev
276 supervisor.group_id = dev
277
277
278 ; Display extended labs settings
278 ; Display extended labs settings
279 labs_settings_active = true
279 labs_settings_active = true
280
280
281 ; Custom exception store path, defaults to TMPDIR
281 ; Custom exception store path, defaults to TMPDIR
282 ; This is used to store exception from RhodeCode in shared directory
282 ; This is used to store exception from RhodeCode in shared directory
283 #exception_tracker.store_path =
283 #exception_tracker.store_path =
284
284
285 ; Send email with exception details when it happens
285 ; Send email with exception details when it happens
286 #exception_tracker.send_email = false
286 #exception_tracker.send_email = false
287
287
288 ; Comma separated list of recipients for exception emails,
288 ; Comma separated list of recipients for exception emails,
289 ; e.g admin@rhodecode.com,devops@rhodecode.com
289 ; e.g admin@rhodecode.com,devops@rhodecode.com
290 ; Can be left empty, then emails will be sent to ALL super-admins
290 ; Can be left empty, then emails will be sent to ALL super-admins
291 #exception_tracker.send_email_recipients =
291 #exception_tracker.send_email_recipients =
292
292
293 ; optional prefix to Add to email Subject
293 ; optional prefix to Add to email Subject
294 #exception_tracker.email_prefix = [RHODECODE ERROR]
294 #exception_tracker.email_prefix = [RHODECODE ERROR]
295
295
296 ; File store configuration. This is used to store and serve uploaded files
296 ; File store configuration. This is used to store and serve uploaded files
297 file_store.enabled = true
297 file_store.enabled = true
298
298
299 ; Storage backend, available options are: local
299 ; Storage backend, available options are: local
300 file_store.backend = local
300 file_store.backend = local
301
301
302 ; path to store the uploaded binaries
302 ; path to store the uploaded binaries
303 file_store.storage_path = %(here)s/data/file_store
303 file_store.storage_path = %(here)s/data/file_store
304
304
305 ; Uncomment and set this path to control settings for archive download cache.
305 ; Uncomment and set this path to control settings for archive download cache.
306 ; Generated repo archives will be cached at this location
306 ; Generated repo archives will be cached at this location
307 ; and served from the cache during subsequent requests for the same archive of
307 ; and served from the cache during subsequent requests for the same archive of
308 ; the repository. This path is important to be shared across filesystems and with
308 ; the repository. This path is important to be shared across filesystems and with
309 ; RhodeCode and vcsserver
309 ; RhodeCode and vcsserver
310
310
311 ; Default is $cache_dir/archive_cache if not set
311 ; Default is $cache_dir/archive_cache if not set
312 archive_cache.store_dir = %(here)s/data/archive_cache
312 archive_cache.store_dir = %(here)s/data/archive_cache
313
313
314 ; The limit in GB sets how much data we cache before recycling last used, defaults to 10 gb
314 ; The limit in GB sets how much data we cache before recycling last used, defaults to 10 gb
315 archive_cache.cache_size_gb = 10
315 archive_cache.cache_size_gb = 10
316
316
317 ; By default cache uses sharding technique, this specifies how many shards are there
317 ; By default cache uses sharding technique, this specifies how many shards are there
318 archive_cache.cache_shards = 10
318 archive_cache.cache_shards = 10
319
319
320 ; #############
320 ; #############
321 ; CELERY CONFIG
321 ; CELERY CONFIG
322 ; #############
322 ; #############
323
323
324 ; manually run celery: /path/to/celery worker --task-events --beat --app rhodecode.lib.celerylib.loader --scheduler rhodecode.lib.celerylib.scheduler.RcScheduler --loglevel DEBUG --ini /path/to/rhodecode.ini
324 ; manually run celery: /path/to/celery worker --task-events --beat --app rhodecode.lib.celerylib.loader --scheduler rhodecode.lib.celerylib.scheduler.RcScheduler --loglevel DEBUG --ini /path/to/rhodecode.ini
325
325
326 use_celery = false
326 use_celery = false
327
327
328 ; path to store schedule database
328 ; path to store schedule database
329 #celerybeat-schedule.path =
329 #celerybeat-schedule.path =
330
330
331 ; connection url to the message broker (default redis)
331 ; connection url to the message broker (default redis)
332 celery.broker_url = redis://localhost:6379/8
332 celery.broker_url = redis://localhost:6379/8
333
333
334 ; rabbitmq example
334 ; rabbitmq example
335 #celery.broker_url = amqp://rabbitmq:qweqwe@localhost:5672/rabbitmqhost
335 #celery.broker_url = amqp://rabbitmq:qweqwe@localhost:5672/rabbitmqhost
336
336
337 ; maximum tasks to execute before worker restart
337 ; maximum tasks to execute before worker restart
338 celery.max_tasks_per_child = 20
338 celery.max_tasks_per_child = 20
339
339
340 ; tasks will never be sent to the queue, but executed locally instead.
340 ; tasks will never be sent to the queue, but executed locally instead.
341 celery.task_always_eager = false
341 celery.task_always_eager = false
342
342
343 ; #############
343 ; #############
344 ; DOGPILE CACHE
344 ; DOGPILE CACHE
345 ; #############
345 ; #############
346
346
347 ; Default cache dir for caches. Putting this into a ramdisk can boost performance.
347 ; Default cache dir for caches. Putting this into a ramdisk can boost performance.
348 ; eg. /tmpfs/data_ramdisk, however this directory might require large amount of space
348 ; eg. /tmpfs/data_ramdisk, however this directory might require large amount of space
349 cache_dir = %(here)s/data
349 cache_dir = %(here)s/data
350
350
351 ; *********************************************
351 ; *********************************************
352 ; `sql_cache_short` cache for heavy SQL queries
352 ; `sql_cache_short` cache for heavy SQL queries
353 ; Only supported backend is `memory_lru`
353 ; Only supported backend is `memory_lru`
354 ; *********************************************
354 ; *********************************************
355 rc_cache.sql_cache_short.backend = dogpile.cache.rc.memory_lru
355 rc_cache.sql_cache_short.backend = dogpile.cache.rc.memory_lru
356 rc_cache.sql_cache_short.expiration_time = 30
356 rc_cache.sql_cache_short.expiration_time = 30
357
357
358
358
359 ; *****************************************************
359 ; *****************************************************
360 ; `cache_repo_longterm` cache for repo object instances
360 ; `cache_repo_longterm` cache for repo object instances
361 ; Only supported backend is `memory_lru`
361 ; Only supported backend is `memory_lru`
362 ; *****************************************************
362 ; *****************************************************
363 rc_cache.cache_repo_longterm.backend = dogpile.cache.rc.memory_lru
363 rc_cache.cache_repo_longterm.backend = dogpile.cache.rc.memory_lru
364 ; by default we use 30 Days, cache is still invalidated on push
364 ; by default we use 30 Days, cache is still invalidated on push
365 rc_cache.cache_repo_longterm.expiration_time = 2592000
365 rc_cache.cache_repo_longterm.expiration_time = 2592000
366 ; max items in LRU cache, set to smaller number to save memory, and expire last used caches
366 ; max items in LRU cache, set to smaller number to save memory, and expire last used caches
367 rc_cache.cache_repo_longterm.max_size = 10000
367 rc_cache.cache_repo_longterm.max_size = 10000
368
368
369
369
370 ; *********************************************
370 ; *********************************************
371 ; `cache_general` cache for general purpose use
371 ; `cache_general` cache for general purpose use
372 ; for simplicity use rc.file_namespace backend,
372 ; for simplicity use rc.file_namespace backend,
373 ; for performance and scale use rc.redis
373 ; for performance and scale use rc.redis
374 ; *********************************************
374 ; *********************************************
375 rc_cache.cache_general.backend = dogpile.cache.rc.file_namespace
375 rc_cache.cache_general.backend = dogpile.cache.rc.file_namespace
376 rc_cache.cache_general.expiration_time = 43200
376 rc_cache.cache_general.expiration_time = 43200
377 ; file cache store path. Defaults to `cache_dir =` value or tempdir if both values are not set
377 ; file cache store path. Defaults to `cache_dir =` value or tempdir if both values are not set
378 #rc_cache.cache_general.arguments.filename = /tmp/cache_general_db
378 #rc_cache.cache_general.arguments.filename = /tmp/cache_general_db
379
379
380 ; alternative `cache_general` redis backend with distributed lock
380 ; alternative `cache_general` redis backend with distributed lock
381 #rc_cache.cache_general.backend = dogpile.cache.rc.redis
381 #rc_cache.cache_general.backend = dogpile.cache.rc.redis
382 #rc_cache.cache_general.expiration_time = 300
382 #rc_cache.cache_general.expiration_time = 300
383
383
384 ; redis_expiration_time needs to be greater then expiration_time
384 ; redis_expiration_time needs to be greater then expiration_time
385 #rc_cache.cache_general.arguments.redis_expiration_time = 7200
385 #rc_cache.cache_general.arguments.redis_expiration_time = 7200
386
386
387 #rc_cache.cache_general.arguments.host = localhost
387 #rc_cache.cache_general.arguments.host = localhost
388 #rc_cache.cache_general.arguments.port = 6379
388 #rc_cache.cache_general.arguments.port = 6379
389 #rc_cache.cache_general.arguments.db = 0
389 #rc_cache.cache_general.arguments.db = 0
390 #rc_cache.cache_general.arguments.socket_timeout = 30
390 #rc_cache.cache_general.arguments.socket_timeout = 30
391 ; more Redis options: https://dogpilecache.sqlalchemy.org/en/latest/api.html#redis-backends
391 ; more Redis options: https://dogpilecache.sqlalchemy.org/en/latest/api.html#redis-backends
392 #rc_cache.cache_general.arguments.distributed_lock = true
392 #rc_cache.cache_general.arguments.distributed_lock = true
393
393
394 ; auto-renew lock to prevent stale locks, slower but safer. Use only if problems happen
394 ; auto-renew lock to prevent stale locks, slower but safer. Use only if problems happen
395 #rc_cache.cache_general.arguments.lock_auto_renewal = true
395 #rc_cache.cache_general.arguments.lock_auto_renewal = true
396
396
397 ; *************************************************
397 ; *************************************************
398 ; `cache_perms` cache for permission tree, auth TTL
398 ; `cache_perms` cache for permission tree, auth TTL
399 ; for simplicity use rc.file_namespace backend,
399 ; for simplicity use rc.file_namespace backend,
400 ; for performance and scale use rc.redis
400 ; for performance and scale use rc.redis
401 ; *************************************************
401 ; *************************************************
402 rc_cache.cache_perms.backend = dogpile.cache.rc.file_namespace
402 rc_cache.cache_perms.backend = dogpile.cache.rc.file_namespace
403 rc_cache.cache_perms.expiration_time = 3600
403 rc_cache.cache_perms.expiration_time = 3600
404 ; file cache store path. Defaults to `cache_dir =` value or tempdir if both values are not set
404 ; file cache store path. Defaults to `cache_dir =` value or tempdir if both values are not set
405 #rc_cache.cache_perms.arguments.filename = /tmp/cache_perms_db
405 #rc_cache.cache_perms.arguments.filename = /tmp/cache_perms_db
406
406
407 ; alternative `cache_perms` redis backend with distributed lock
407 ; alternative `cache_perms` redis backend with distributed lock
408 #rc_cache.cache_perms.backend = dogpile.cache.rc.redis
408 #rc_cache.cache_perms.backend = dogpile.cache.rc.redis
409 #rc_cache.cache_perms.expiration_time = 300
409 #rc_cache.cache_perms.expiration_time = 300
410
410
411 ; redis_expiration_time needs to be greater then expiration_time
411 ; redis_expiration_time needs to be greater then expiration_time
412 #rc_cache.cache_perms.arguments.redis_expiration_time = 7200
412 #rc_cache.cache_perms.arguments.redis_expiration_time = 7200
413
413
414 #rc_cache.cache_perms.arguments.host = localhost
414 #rc_cache.cache_perms.arguments.host = localhost
415 #rc_cache.cache_perms.arguments.port = 6379
415 #rc_cache.cache_perms.arguments.port = 6379
416 #rc_cache.cache_perms.arguments.db = 0
416 #rc_cache.cache_perms.arguments.db = 0
417 #rc_cache.cache_perms.arguments.socket_timeout = 30
417 #rc_cache.cache_perms.arguments.socket_timeout = 30
418 ; more Redis options: https://dogpilecache.sqlalchemy.org/en/latest/api.html#redis-backends
418 ; more Redis options: https://dogpilecache.sqlalchemy.org/en/latest/api.html#redis-backends
419 #rc_cache.cache_perms.arguments.distributed_lock = true
419 #rc_cache.cache_perms.arguments.distributed_lock = true
420
420
421 ; auto-renew lock to prevent stale locks, slower but safer. Use only if problems happen
421 ; auto-renew lock to prevent stale locks, slower but safer. Use only if problems happen
422 #rc_cache.cache_perms.arguments.lock_auto_renewal = true
422 #rc_cache.cache_perms.arguments.lock_auto_renewal = true
423
423
424 ; ***************************************************
424 ; ***************************************************
425 ; `cache_repo` cache for file tree, Readme, RSS FEEDS
425 ; `cache_repo` cache for file tree, Readme, RSS FEEDS
426 ; for simplicity use rc.file_namespace backend,
426 ; for simplicity use rc.file_namespace backend,
427 ; for performance and scale use rc.redis
427 ; for performance and scale use rc.redis
428 ; ***************************************************
428 ; ***************************************************
429 rc_cache.cache_repo.backend = dogpile.cache.rc.file_namespace
429 rc_cache.cache_repo.backend = dogpile.cache.rc.file_namespace
430 rc_cache.cache_repo.expiration_time = 2592000
430 rc_cache.cache_repo.expiration_time = 2592000
431 ; file cache store path. Defaults to `cache_dir =` value or tempdir if both values are not set
431 ; file cache store path. Defaults to `cache_dir =` value or tempdir if both values are not set
432 #rc_cache.cache_repo.arguments.filename = /tmp/cache_repo_db
432 #rc_cache.cache_repo.arguments.filename = /tmp/cache_repo_db
433
433
434 ; alternative `cache_repo` redis backend with distributed lock
434 ; alternative `cache_repo` redis backend with distributed lock
435 #rc_cache.cache_repo.backend = dogpile.cache.rc.redis
435 #rc_cache.cache_repo.backend = dogpile.cache.rc.redis
436 #rc_cache.cache_repo.expiration_time = 2592000
436 #rc_cache.cache_repo.expiration_time = 2592000
437
437
438 ; redis_expiration_time needs to be greater then expiration_time
438 ; redis_expiration_time needs to be greater then expiration_time
439 #rc_cache.cache_repo.arguments.redis_expiration_time = 2678400
439 #rc_cache.cache_repo.arguments.redis_expiration_time = 2678400
440
440
441 #rc_cache.cache_repo.arguments.host = localhost
441 #rc_cache.cache_repo.arguments.host = localhost
442 #rc_cache.cache_repo.arguments.port = 6379
442 #rc_cache.cache_repo.arguments.port = 6379
443 #rc_cache.cache_repo.arguments.db = 1
443 #rc_cache.cache_repo.arguments.db = 1
444 #rc_cache.cache_repo.arguments.socket_timeout = 30
444 #rc_cache.cache_repo.arguments.socket_timeout = 30
445 ; more Redis options: https://dogpilecache.sqlalchemy.org/en/latest/api.html#redis-backends
445 ; more Redis options: https://dogpilecache.sqlalchemy.org/en/latest/api.html#redis-backends
446 #rc_cache.cache_repo.arguments.distributed_lock = true
446 #rc_cache.cache_repo.arguments.distributed_lock = true
447
447
448 ; auto-renew lock to prevent stale locks, slower but safer. Use only if problems happen
448 ; auto-renew lock to prevent stale locks, slower but safer. Use only if problems happen
449 #rc_cache.cache_repo.arguments.lock_auto_renewal = true
449 #rc_cache.cache_repo.arguments.lock_auto_renewal = true
450
450
451 ; ##############
451 ; ##############
452 ; BEAKER SESSION
452 ; BEAKER SESSION
453 ; ##############
453 ; ##############
454
454
455 ; beaker.session.type is type of storage options for the logged users sessions. Current allowed
455 ; beaker.session.type is type of storage options for the logged users sessions. Current allowed
456 ; types are file, ext:redis, ext:database, ext:memcached, and memory (default if not specified).
456 ; types are file, ext:redis, ext:database, ext:memcached
457 ; Fastest ones are Redis and ext:database
457 ; Fastest ones are ext:redis and ext:database, DO NOT use memory type for session
458 beaker.session.type = file
458 beaker.session.type = file
459 beaker.session.data_dir = %(here)s/data/sessions
459 beaker.session.data_dir = %(here)s/data/sessions
460
460
461 ; Redis based sessions
461 ; Redis based sessions
462 #beaker.session.type = ext:redis
462 #beaker.session.type = ext:redis
463 #beaker.session.url = redis://127.0.0.1:6379/2
463 #beaker.session.url = redis://127.0.0.1:6379/2
464
464
465 ; DB based session, fast, and allows easy management over logged in users
465 ; DB based session, fast, and allows easy management over logged in users
466 #beaker.session.type = ext:database
466 #beaker.session.type = ext:database
467 #beaker.session.table_name = db_session
467 #beaker.session.table_name = db_session
468 #beaker.session.sa.url = postgresql://postgres:secret@localhost/rhodecode
468 #beaker.session.sa.url = postgresql://postgres:secret@localhost/rhodecode
469 #beaker.session.sa.url = mysql://root:secret@127.0.0.1/rhodecode
469 #beaker.session.sa.url = mysql://root:secret@127.0.0.1/rhodecode
470 #beaker.session.sa.pool_recycle = 3600
470 #beaker.session.sa.pool_recycle = 3600
471 #beaker.session.sa.echo = false
471 #beaker.session.sa.echo = false
472
472
473 beaker.session.key = rhodecode
473 beaker.session.key = rhodecode
474 beaker.session.secret = develop-rc-uytcxaz
474 beaker.session.secret = develop-rc-uytcxaz
475 beaker.session.lock_dir = %(here)s/data/sessions/lock
475 beaker.session.lock_dir = %(here)s/data/sessions/lock
476
476
477 ; Secure encrypted cookie. Requires AES and AES python libraries
477 ; Secure encrypted cookie. Requires AES and AES python libraries
478 ; you must disable beaker.session.secret to use this
478 ; you must disable beaker.session.secret to use this
479 #beaker.session.encrypt_key = key_for_encryption
479 #beaker.session.encrypt_key = key_for_encryption
480 #beaker.session.validate_key = validation_key
480 #beaker.session.validate_key = validation_key
481
481
482 ; Sets session as invalid (also logging out user) if it haven not been
482 ; Sets session as invalid (also logging out user) if it haven not been
483 ; accessed for given amount of time in seconds
483 ; accessed for given amount of time in seconds
484 beaker.session.timeout = 2592000
484 beaker.session.timeout = 2592000
485 beaker.session.httponly = true
485 beaker.session.httponly = true
486
486
487 ; Path to use for the cookie. Set to prefix if you use prefix middleware
487 ; Path to use for the cookie. Set to prefix if you use prefix middleware
488 #beaker.session.cookie_path = /custom_prefix
488 #beaker.session.cookie_path = /custom_prefix
489
489
490 ; Set https secure cookie
490 ; Set https secure cookie
491 beaker.session.secure = false
491 beaker.session.secure = false
492
492
493 ; default cookie expiration time in seconds, set to `true` to set expire
493 ; default cookie expiration time in seconds, set to `true` to set expire
494 ; at browser close
494 ; at browser close
495 #beaker.session.cookie_expires = 3600
495 #beaker.session.cookie_expires = 3600
496
496
497 ; #############################
497 ; #############################
498 ; SEARCH INDEXING CONFIGURATION
498 ; SEARCH INDEXING CONFIGURATION
499 ; #############################
499 ; #############################
500
500
501 ; Full text search indexer is available in rhodecode-tools under
501 ; Full text search indexer is available in rhodecode-tools under
502 ; `rhodecode-tools index` command
502 ; `rhodecode-tools index` command
503
503
504 ; WHOOSH Backend, doesn't require additional services to run
504 ; WHOOSH Backend, doesn't require additional services to run
505 ; it works good with few dozen repos
505 ; it works good with few dozen repos
506 search.module = rhodecode.lib.index.whoosh
506 search.module = rhodecode.lib.index.whoosh
507 search.location = %(here)s/data/index
507 search.location = %(here)s/data/index
508
508
509 ; ####################
509 ; ####################
510 ; CHANNELSTREAM CONFIG
510 ; CHANNELSTREAM CONFIG
511 ; ####################
511 ; ####################
512
512
513 ; channelstream enables persistent connections and live notification
513 ; channelstream enables persistent connections and live notification
514 ; in the system. It's also used by the chat system
514 ; in the system. It's also used by the chat system
515
515
516 channelstream.enabled = false
516 channelstream.enabled = false
517
517
518 ; server address for channelstream server on the backend
518 ; server address for channelstream server on the backend
519 channelstream.server = 127.0.0.1:9800
519 channelstream.server = 127.0.0.1:9800
520
520
521 ; location of the channelstream server from outside world
521 ; location of the channelstream server from outside world
522 ; use ws:// for http or wss:// for https. This address needs to be handled
522 ; use ws:// for http or wss:// for https. This address needs to be handled
523 ; by external HTTP server such as Nginx or Apache
523 ; by external HTTP server such as Nginx or Apache
524 ; see Nginx/Apache configuration examples in our docs
524 ; see Nginx/Apache configuration examples in our docs
525 channelstream.ws_url = ws://rhodecode.yourserver.com/_channelstream
525 channelstream.ws_url = ws://rhodecode.yourserver.com/_channelstream
526 channelstream.secret = secret
526 channelstream.secret = secret
527 channelstream.history.location = %(here)s/channelstream_history
527 channelstream.history.location = %(here)s/channelstream_history
528
528
529 ; Internal application path that Javascript uses to connect into.
529 ; Internal application path that Javascript uses to connect into.
530 ; If you use proxy-prefix the prefix should be added before /_channelstream
530 ; If you use proxy-prefix the prefix should be added before /_channelstream
531 channelstream.proxy_path = /_channelstream
531 channelstream.proxy_path = /_channelstream
532
532
533
533
534 ; ##############################
534 ; ##############################
535 ; MAIN RHODECODE DATABASE CONFIG
535 ; MAIN RHODECODE DATABASE CONFIG
536 ; ##############################
536 ; ##############################
537
537
538 #sqlalchemy.db1.url = sqlite:///%(here)s/rhodecode.db?timeout=30
538 #sqlalchemy.db1.url = sqlite:///%(here)s/rhodecode.db?timeout=30
539 #sqlalchemy.db1.url = postgresql://postgres:qweqwe@localhost/rhodecode
539 #sqlalchemy.db1.url = postgresql://postgres:qweqwe@localhost/rhodecode
540 #sqlalchemy.db1.url = mysql://root:qweqwe@localhost/rhodecode?charset=utf8
540 #sqlalchemy.db1.url = mysql://root:qweqwe@localhost/rhodecode?charset=utf8
541 ; pymysql is an alternative driver for MySQL, use in case of problems with default one
541 ; pymysql is an alternative driver for MySQL, use in case of problems with default one
542 #sqlalchemy.db1.url = mysql+pymysql://root:qweqwe@localhost/rhodecode
542 #sqlalchemy.db1.url = mysql+pymysql://root:qweqwe@localhost/rhodecode
543
543
544 sqlalchemy.db1.url = sqlite:///%(here)s/rhodecode.db?timeout=30
544 sqlalchemy.db1.url = sqlite:///%(here)s/rhodecode.db?timeout=30
545
545
546 ; see sqlalchemy docs for other advanced settings
546 ; see sqlalchemy docs for other advanced settings
547 ; print the sql statements to output
547 ; print the sql statements to output
548 sqlalchemy.db1.echo = false
548 sqlalchemy.db1.echo = false
549
549
550 ; recycle the connections after this amount of seconds
550 ; recycle the connections after this amount of seconds
551 sqlalchemy.db1.pool_recycle = 3600
551 sqlalchemy.db1.pool_recycle = 3600
552
552
553 ; the number of connections to keep open inside the connection pool.
553 ; the number of connections to keep open inside the connection pool.
554 ; 0 indicates no limit
554 ; 0 indicates no limit
555 ; the general calculus with gevent is:
555 ; the general calculus with gevent is:
556 ; if your system allows 500 concurrent greenlets (max_connections) that all do database access,
556 ; if your system allows 500 concurrent greenlets (max_connections) that all do database access,
557 ; then increase pool size + max overflow so that they add up to 500.
557 ; then increase pool size + max overflow so that they add up to 500.
558 #sqlalchemy.db1.pool_size = 5
558 #sqlalchemy.db1.pool_size = 5
559
559
560 ; The number of connections to allow in connection pool "overflow", that is
560 ; The number of connections to allow in connection pool "overflow", that is
561 ; connections that can be opened above and beyond the pool_size setting,
561 ; connections that can be opened above and beyond the pool_size setting,
562 ; which defaults to five.
562 ; which defaults to five.
563 #sqlalchemy.db1.max_overflow = 10
563 #sqlalchemy.db1.max_overflow = 10
564
564
565 ; Connection check ping, used to detect broken database connections
565 ; Connection check ping, used to detect broken database connections
566 ; could be enabled to better handle cases if MySQL has gone away errors
566 ; could be enabled to better handle cases if MySQL has gone away errors
567 #sqlalchemy.db1.ping_connection = true
567 #sqlalchemy.db1.ping_connection = true
568
568
569 ; ##########
569 ; ##########
570 ; VCS CONFIG
570 ; VCS CONFIG
571 ; ##########
571 ; ##########
572 vcs.server.enable = true
572 vcs.server.enable = true
573 vcs.server = localhost:9900
573 vcs.server = localhost:9900
574
574
575 ; Web server connectivity protocol, responsible for web based VCS operations
575 ; Web server connectivity protocol, responsible for web based VCS operations
576 ; Available protocols are:
576 ; Available protocols are:
577 ; `http` - use http-rpc backend (default)
577 ; `http` - use http-rpc backend (default)
578 vcs.server.protocol = http
578 vcs.server.protocol = http
579
579
580 ; Push/Pull operations protocol, available options are:
580 ; Push/Pull operations protocol, available options are:
581 ; `http` - use http-rpc backend (default)
581 ; `http` - use http-rpc backend (default)
582 vcs.scm_app_implementation = http
582 vcs.scm_app_implementation = http
583
583
584 ; Push/Pull operations hooks protocol, available options are:
584 ; Push/Pull operations hooks protocol, available options are:
585 ; `http` - use http-rpc backend (default)
585 ; `http` - use http-rpc backend (default)
586 vcs.hooks.protocol = http
586 vcs.hooks.protocol = http
587
587
588 ; Host on which this instance is listening for hooks. vcsserver will call this host to pull/push hooks so it should be
588 ; Host on which this instance is listening for hooks. vcsserver will call this host to pull/push hooks so it should be
589 ; accessible via network.
589 ; accessible via network.
590 ; Use vcs.hooks.host = "*" to bind to current hostname (for Docker)
590 ; Use vcs.hooks.host = "*" to bind to current hostname (for Docker)
591 vcs.hooks.host = *
591 vcs.hooks.host = *
592
592
593 ; Start VCSServer with this instance as a subprocess, useful for development
593 ; Start VCSServer with this instance as a subprocess, useful for development
594 vcs.start_server = false
594 vcs.start_server = false
595
595
596 ; List of enabled VCS backends, available options are:
596 ; List of enabled VCS backends, available options are:
597 ; `hg` - mercurial
597 ; `hg` - mercurial
598 ; `git` - git
598 ; `git` - git
599 ; `svn` - subversion
599 ; `svn` - subversion
600 vcs.backends = hg, git, svn
600 vcs.backends = hg, git, svn
601
601
602 ; Wait this number of seconds before killing connection to the vcsserver
602 ; Wait this number of seconds before killing connection to the vcsserver
603 vcs.connection_timeout = 3600
603 vcs.connection_timeout = 3600
604
604
605 ; Compatibility version when creating SVN repositories. Defaults to newest version when commented out.
605 ; Compatibility version when creating SVN repositories. Defaults to newest version when commented out.
606 ; Set a numeric version for your current SVN e.g 1.8, or 1.12
606 ; Set a numeric version for your current SVN e.g 1.8, or 1.12
607 ; Legacy available options are: pre-1.4-compatible, pre-1.5-compatible, pre-1.6-compatible, pre-1.8-compatible, pre-1.9-compatible
607 ; Legacy available options are: pre-1.4-compatible, pre-1.5-compatible, pre-1.6-compatible, pre-1.8-compatible, pre-1.9-compatible
608 #vcs.svn.compatible_version = 1.8
608 #vcs.svn.compatible_version = 1.8
609
609
610 ; Cache flag to cache vcsserver remote calls locally
610 ; Cache flag to cache vcsserver remote calls locally
611 ; It uses cache_region `cache_repo`
611 ; It uses cache_region `cache_repo`
612 vcs.methods.cache = true
612 vcs.methods.cache = true
613
613
614 ; ####################################################
614 ; ####################################################
615 ; Subversion proxy support (mod_dav_svn)
615 ; Subversion proxy support (mod_dav_svn)
616 ; Maps RhodeCode repo groups into SVN paths for Apache
616 ; Maps RhodeCode repo groups into SVN paths for Apache
617 ; ####################################################
617 ; ####################################################
618
618
619 ; Enable or disable the config file generation.
619 ; Enable or disable the config file generation.
620 svn.proxy.generate_config = false
620 svn.proxy.generate_config = false
621
621
622 ; Generate config file with `SVNListParentPath` set to `On`.
622 ; Generate config file with `SVNListParentPath` set to `On`.
623 svn.proxy.list_parent_path = true
623 svn.proxy.list_parent_path = true
624
624
625 ; Set location and file name of generated config file.
625 ; Set location and file name of generated config file.
626 svn.proxy.config_file_path = %(here)s/mod_dav_svn.conf
626 svn.proxy.config_file_path = %(here)s/mod_dav_svn.conf
627
627
628 ; alternative mod_dav config template. This needs to be a valid mako template
628 ; alternative mod_dav config template. This needs to be a valid mako template
629 ; Example template can be found in the source code:
629 ; Example template can be found in the source code:
630 ; rhodecode/apps/svn_support/templates/mod-dav-svn.conf.mako
630 ; rhodecode/apps/svn_support/templates/mod-dav-svn.conf.mako
631 #svn.proxy.config_template = ~/.rccontrol/enterprise-1/custom_svn_conf.mako
631 #svn.proxy.config_template = ~/.rccontrol/enterprise-1/custom_svn_conf.mako
632
632
633 ; Used as a prefix to the `Location` block in the generated config file.
633 ; Used as a prefix to the `Location` block in the generated config file.
634 ; In most cases it should be set to `/`.
634 ; In most cases it should be set to `/`.
635 svn.proxy.location_root = /
635 svn.proxy.location_root = /
636
636
637 ; Command to reload the mod dav svn configuration on change.
637 ; Command to reload the mod dav svn configuration on change.
638 ; Example: `/etc/init.d/apache2 reload` or /home/USER/apache_reload.sh
638 ; Example: `/etc/init.d/apache2 reload` or /home/USER/apache_reload.sh
639 ; Make sure user who runs RhodeCode process is allowed to reload Apache
639 ; Make sure user who runs RhodeCode process is allowed to reload Apache
640 #svn.proxy.reload_cmd = /etc/init.d/apache2 reload
640 #svn.proxy.reload_cmd = /etc/init.d/apache2 reload
641
641
642 ; If the timeout expires before the reload command finishes, the command will
642 ; If the timeout expires before the reload command finishes, the command will
643 ; be killed. Setting it to zero means no timeout. Defaults to 10 seconds.
643 ; be killed. Setting it to zero means no timeout. Defaults to 10 seconds.
644 #svn.proxy.reload_timeout = 10
644 #svn.proxy.reload_timeout = 10
645
645
646 ; ####################
646 ; ####################
647 ; SSH Support Settings
647 ; SSH Support Settings
648 ; ####################
648 ; ####################
649
649
650 ; Defines if a custom authorized_keys file should be created and written on
650 ; Defines if a custom authorized_keys file should be created and written on
651 ; any change user ssh keys. Setting this to false also disables possibility
651 ; any change user ssh keys. Setting this to false also disables possibility
652 ; of adding SSH keys by users from web interface. Super admins can still
652 ; of adding SSH keys by users from web interface. Super admins can still
653 ; manage SSH Keys.
653 ; manage SSH Keys.
654 ssh.generate_authorized_keyfile = false
654 ssh.generate_authorized_keyfile = false
655
655
656 ; Options for ssh, default is `no-pty,no-port-forwarding,no-X11-forwarding,no-agent-forwarding`
656 ; Options for ssh, default is `no-pty,no-port-forwarding,no-X11-forwarding,no-agent-forwarding`
657 # ssh.authorized_keys_ssh_opts =
657 # ssh.authorized_keys_ssh_opts =
658
658
659 ; Path to the authorized_keys file where the generate entries are placed.
659 ; Path to the authorized_keys file where the generate entries are placed.
660 ; It is possible to have multiple key files specified in `sshd_config` e.g.
660 ; It is possible to have multiple key files specified in `sshd_config` e.g.
661 ; AuthorizedKeysFile %h/.ssh/authorized_keys %h/.ssh/authorized_keys_rhodecode
661 ; AuthorizedKeysFile %h/.ssh/authorized_keys %h/.ssh/authorized_keys_rhodecode
662 ssh.authorized_keys_file_path = ~/.ssh/authorized_keys_rhodecode
662 ssh.authorized_keys_file_path = ~/.ssh/authorized_keys_rhodecode
663
663
664 ; Command to execute the SSH wrapper. The binary is available in the
664 ; Command to execute the SSH wrapper. The binary is available in the
665 ; RhodeCode installation directory.
665 ; RhodeCode installation directory.
666 ; e.g ~/.rccontrol/community-1/profile/bin/rc-ssh-wrapper
666 ; e.g ~/.rccontrol/community-1/profile/bin/rc-ssh-wrapper
667 ssh.wrapper_cmd = ~/.rccontrol/community-1/rc-ssh-wrapper
667 ssh.wrapper_cmd = ~/.rccontrol/community-1/rc-ssh-wrapper
668
668
669 ; Allow shell when executing the ssh-wrapper command
669 ; Allow shell when executing the ssh-wrapper command
670 ssh.wrapper_cmd_allow_shell = false
670 ssh.wrapper_cmd_allow_shell = false
671
671
672 ; Enables logging, and detailed output send back to the client during SSH
672 ; Enables logging, and detailed output send back to the client during SSH
673 ; operations. Useful for debugging, shouldn't be used in production.
673 ; operations. Useful for debugging, shouldn't be used in production.
674 ssh.enable_debug_logging = true
674 ssh.enable_debug_logging = true
675
675
676 ; Paths to binary executable, by default they are the names, but we can
676 ; Paths to binary executable, by default they are the names, but we can
677 ; override them if we want to use a custom one
677 ; override them if we want to use a custom one
678 ssh.executable.hg = ~/.rccontrol/vcsserver-1/profile/bin/hg
678 ssh.executable.hg = ~/.rccontrol/vcsserver-1/profile/bin/hg
679 ssh.executable.git = ~/.rccontrol/vcsserver-1/profile/bin/git
679 ssh.executable.git = ~/.rccontrol/vcsserver-1/profile/bin/git
680 ssh.executable.svn = ~/.rccontrol/vcsserver-1/profile/bin/svnserve
680 ssh.executable.svn = ~/.rccontrol/vcsserver-1/profile/bin/svnserve
681
681
682 ; Enables SSH key generator web interface. Disabling this still allows users
682 ; Enables SSH key generator web interface. Disabling this still allows users
683 ; to add their own keys.
683 ; to add their own keys.
684 ssh.enable_ui_key_generator = true
684 ssh.enable_ui_key_generator = true
685
685
686
686
687 ; #################
687 ; #################
688 ; APPENLIGHT CONFIG
688 ; APPENLIGHT CONFIG
689 ; #################
689 ; #################
690
690
691 ; Appenlight is tailored to work with RhodeCode, see
691 ; Appenlight is tailored to work with RhodeCode, see
692 ; http://appenlight.rhodecode.com for details how to obtain an account
692 ; http://appenlight.rhodecode.com for details how to obtain an account
693
693
694 ; Appenlight integration enabled
694 ; Appenlight integration enabled
695 #appenlight = false
695 #appenlight = false
696
696
697 #appenlight.server_url = https://api.appenlight.com
697 #appenlight.server_url = https://api.appenlight.com
698 #appenlight.api_key = YOUR_API_KEY
698 #appenlight.api_key = YOUR_API_KEY
699 #appenlight.transport_config = https://api.appenlight.com?threaded=1&timeout=5
699 #appenlight.transport_config = https://api.appenlight.com?threaded=1&timeout=5
700
700
701 ; used for JS client
701 ; used for JS client
702 #appenlight.api_public_key = YOUR_API_PUBLIC_KEY
702 #appenlight.api_public_key = YOUR_API_PUBLIC_KEY
703
703
704 ; TWEAK AMOUNT OF INFO SENT HERE
704 ; TWEAK AMOUNT OF INFO SENT HERE
705
705
706 ; enables 404 error logging (default False)
706 ; enables 404 error logging (default False)
707 #appenlight.report_404 = false
707 #appenlight.report_404 = false
708
708
709 ; time in seconds after request is considered being slow (default 1)
709 ; time in seconds after request is considered being slow (default 1)
710 #appenlight.slow_request_time = 1
710 #appenlight.slow_request_time = 1
711
711
712 ; record slow requests in application
712 ; record slow requests in application
713 ; (needs to be enabled for slow datastore recording and time tracking)
713 ; (needs to be enabled for slow datastore recording and time tracking)
714 #appenlight.slow_requests = true
714 #appenlight.slow_requests = true
715
715
716 ; enable hooking to application loggers
716 ; enable hooking to application loggers
717 #appenlight.logging = true
717 #appenlight.logging = true
718
718
719 ; minimum log level for log capture
719 ; minimum log level for log capture
720 #ppenlight.logging.level = WARNING
720 #ppenlight.logging.level = WARNING
721
721
722 ; send logs only from erroneous/slow requests
722 ; send logs only from erroneous/slow requests
723 ; (saves API quota for intensive logging)
723 ; (saves API quota for intensive logging)
724 #appenlight.logging_on_error = false
724 #appenlight.logging_on_error = false
725
725
726 ; list of additional keywords that should be grabbed from environ object
726 ; list of additional keywords that should be grabbed from environ object
727 ; can be string with comma separated list of words in lowercase
727 ; can be string with comma separated list of words in lowercase
728 ; (by default client will always send following info:
728 ; (by default client will always send following info:
729 ; 'REMOTE_USER', 'REMOTE_ADDR', 'SERVER_NAME', 'CONTENT_TYPE' + all keys that
729 ; 'REMOTE_USER', 'REMOTE_ADDR', 'SERVER_NAME', 'CONTENT_TYPE' + all keys that
730 ; start with HTTP* this list be extended with additional keywords here
730 ; start with HTTP* this list be extended with additional keywords here
731 #appenlight.environ_keys_whitelist =
731 #appenlight.environ_keys_whitelist =
732
732
733 ; list of keywords that should be blanked from request object
733 ; list of keywords that should be blanked from request object
734 ; can be string with comma separated list of words in lowercase
734 ; can be string with comma separated list of words in lowercase
735 ; (by default client will always blank keys that contain following words
735 ; (by default client will always blank keys that contain following words
736 ; 'password', 'passwd', 'pwd', 'auth_tkt', 'secret', 'csrf'
736 ; 'password', 'passwd', 'pwd', 'auth_tkt', 'secret', 'csrf'
737 ; this list be extended with additional keywords set here
737 ; this list be extended with additional keywords set here
738 #appenlight.request_keys_blacklist =
738 #appenlight.request_keys_blacklist =
739
739
740 ; list of namespaces that should be ignores when gathering log entries
740 ; list of namespaces that should be ignores when gathering log entries
741 ; can be string with comma separated list of namespaces
741 ; can be string with comma separated list of namespaces
742 ; (by default the client ignores own entries: appenlight_client.client)
742 ; (by default the client ignores own entries: appenlight_client.client)
743 #appenlight.log_namespace_blacklist =
743 #appenlight.log_namespace_blacklist =
744
744
745 ; Statsd client config, this is used to send metrics to statsd
745 ; Statsd client config, this is used to send metrics to statsd
746 ; We recommend setting statsd_exported and scrape them using Prometheus
746 ; We recommend setting statsd_exported and scrape them using Prometheus
747 #statsd.enabled = false
747 #statsd.enabled = false
748 #statsd.statsd_host = 0.0.0.0
748 #statsd.statsd_host = 0.0.0.0
749 #statsd.statsd_port = 8125
749 #statsd.statsd_port = 8125
750 #statsd.statsd_prefix =
750 #statsd.statsd_prefix =
751 #statsd.statsd_ipv6 = false
751 #statsd.statsd_ipv6 = false
752
752
753 ; configure logging automatically at server startup set to false
753 ; configure logging automatically at server startup set to false
754 ; to use the below custom logging config.
754 ; to use the below custom logging config.
755 ; RC_LOGGING_FORMATTER
755 ; RC_LOGGING_FORMATTER
756 ; RC_LOGGING_LEVEL
756 ; RC_LOGGING_LEVEL
757 ; env variables can control the settings for logging in case of autoconfigure
757 ; env variables can control the settings for logging in case of autoconfigure
758
758
759 #logging.autoconfigure = true
759 #logging.autoconfigure = true
760
760
761 ; specify your own custom logging config file to configure logging
761 ; specify your own custom logging config file to configure logging
762 #logging.logging_conf_file = /path/to/custom_logging.ini
762 #logging.logging_conf_file = /path/to/custom_logging.ini
763
763
764 ; Dummy marker to add new entries after.
764 ; Dummy marker to add new entries after.
765 ; Add any custom entries below. Please don't remove this marker.
765 ; Add any custom entries below. Please don't remove this marker.
766 custom.conf = 1
766 custom.conf = 1
767
767
768
768
769 ; #####################
769 ; #####################
770 ; LOGGING CONFIGURATION
770 ; LOGGING CONFIGURATION
771 ; #####################
771 ; #####################
772
772
773 [loggers]
773 [loggers]
774 keys = root, sqlalchemy, beaker, celery, rhodecode, ssh_wrapper
774 keys = root, sqlalchemy, beaker, celery, rhodecode, ssh_wrapper
775
775
776 [handlers]
776 [handlers]
777 keys = console, console_sql
777 keys = console, console_sql
778
778
779 [formatters]
779 [formatters]
780 keys = generic, json, color_formatter, color_formatter_sql
780 keys = generic, json, color_formatter, color_formatter_sql
781
781
782 ; #######
782 ; #######
783 ; LOGGERS
783 ; LOGGERS
784 ; #######
784 ; #######
785 [logger_root]
785 [logger_root]
786 level = NOTSET
786 level = NOTSET
787 handlers = console
787 handlers = console
788
788
789 [logger_sqlalchemy]
789 [logger_sqlalchemy]
790 level = INFO
790 level = INFO
791 handlers = console_sql
791 handlers = console_sql
792 qualname = sqlalchemy.engine
792 qualname = sqlalchemy.engine
793 propagate = 0
793 propagate = 0
794
794
795 [logger_beaker]
795 [logger_beaker]
796 level = DEBUG
796 level = DEBUG
797 handlers =
797 handlers =
798 qualname = beaker.container
798 qualname = beaker.container
799 propagate = 1
799 propagate = 1
800
800
801 [logger_rhodecode]
801 [logger_rhodecode]
802 level = DEBUG
802 level = DEBUG
803 handlers =
803 handlers =
804 qualname = rhodecode
804 qualname = rhodecode
805 propagate = 1
805 propagate = 1
806
806
807 [logger_ssh_wrapper]
807 [logger_ssh_wrapper]
808 level = DEBUG
808 level = DEBUG
809 handlers =
809 handlers =
810 qualname = ssh_wrapper
810 qualname = ssh_wrapper
811 propagate = 1
811 propagate = 1
812
812
813 [logger_celery]
813 [logger_celery]
814 level = DEBUG
814 level = DEBUG
815 handlers =
815 handlers =
816 qualname = celery
816 qualname = celery
817
817
818
818
819 ; ########
819 ; ########
820 ; HANDLERS
820 ; HANDLERS
821 ; ########
821 ; ########
822
822
823 [handler_console]
823 [handler_console]
824 class = StreamHandler
824 class = StreamHandler
825 args = (sys.stderr, )
825 args = (sys.stderr, )
826 level = DEBUG
826 level = DEBUG
827 ; To enable JSON formatted logs replace 'generic/color_formatter' with 'json'
827 ; To enable JSON formatted logs replace 'generic/color_formatter' with 'json'
828 ; This allows sending properly formatted logs to grafana loki or elasticsearch
828 ; This allows sending properly formatted logs to grafana loki or elasticsearch
829 formatter = color_formatter
829 formatter = color_formatter
830
830
831 [handler_console_sql]
831 [handler_console_sql]
832 ; "level = DEBUG" logs SQL queries and results.
832 ; "level = DEBUG" logs SQL queries and results.
833 ; "level = INFO" logs SQL queries.
833 ; "level = INFO" logs SQL queries.
834 ; "level = WARN" logs neither. (Recommended for production systems.)
834 ; "level = WARN" logs neither. (Recommended for production systems.)
835 class = StreamHandler
835 class = StreamHandler
836 args = (sys.stderr, )
836 args = (sys.stderr, )
837 level = WARN
837 level = WARN
838 ; To enable JSON formatted logs replace 'generic/color_formatter_sql' with 'json'
838 ; To enable JSON formatted logs replace 'generic/color_formatter_sql' with 'json'
839 ; This allows sending properly formatted logs to grafana loki or elasticsearch
839 ; This allows sending properly formatted logs to grafana loki or elasticsearch
840 formatter = color_formatter_sql
840 formatter = color_formatter_sql
841
841
842 ; ##########
842 ; ##########
843 ; FORMATTERS
843 ; FORMATTERS
844 ; ##########
844 ; ##########
845
845
846 [formatter_generic]
846 [formatter_generic]
847 class = rhodecode.lib.logging_formatter.ExceptionAwareFormatter
847 class = rhodecode.lib.logging_formatter.ExceptionAwareFormatter
848 format = %(asctime)s.%(msecs)03d [%(process)d] %(levelname)-5.5s [%(name)s] %(message)s
848 format = %(asctime)s.%(msecs)03d [%(process)d] %(levelname)-5.5s [%(name)s] %(message)s
849 datefmt = %Y-%m-%d %H:%M:%S
849 datefmt = %Y-%m-%d %H:%M:%S
850
850
851 [formatter_color_formatter]
851 [formatter_color_formatter]
852 class = rhodecode.lib.logging_formatter.ColorFormatter
852 class = rhodecode.lib.logging_formatter.ColorFormatter
853 format = %(asctime)s.%(msecs)03d [%(process)d] %(levelname)-5.5s [%(name)s] %(message)s
853 format = %(asctime)s.%(msecs)03d [%(process)d] %(levelname)-5.5s [%(name)s] %(message)s
854 datefmt = %Y-%m-%d %H:%M:%S
854 datefmt = %Y-%m-%d %H:%M:%S
855
855
856 [formatter_color_formatter_sql]
856 [formatter_color_formatter_sql]
857 class = rhodecode.lib.logging_formatter.ColorFormatterSql
857 class = rhodecode.lib.logging_formatter.ColorFormatterSql
858 format = %(asctime)s.%(msecs)03d [%(process)d] %(levelname)-5.5s [%(name)s] %(message)s
858 format = %(asctime)s.%(msecs)03d [%(process)d] %(levelname)-5.5s [%(name)s] %(message)s
859 datefmt = %Y-%m-%d %H:%M:%S
859 datefmt = %Y-%m-%d %H:%M:%S
860
860
861 [formatter_json]
861 [formatter_json]
862 format = %(timestamp)s %(levelname)s %(name)s %(message)s %(req_id)s
862 format = %(timestamp)s %(levelname)s %(name)s %(message)s %(req_id)s
863 class = rhodecode.lib._vendor.jsonlogger.JsonFormatter
863 class = rhodecode.lib._vendor.jsonlogger.JsonFormatter
@@ -1,813 +1,813 b''
1
1
2 ; #########################################
2 ; #########################################
3 ; RHODECODE COMMUNITY EDITION CONFIGURATION
3 ; RHODECODE COMMUNITY EDITION CONFIGURATION
4 ; #########################################
4 ; #########################################
5
5
6 [DEFAULT]
6 [DEFAULT]
7 ; Debug flag sets all loggers to debug, and enables request tracking
7 ; Debug flag sets all loggers to debug, and enables request tracking
8 debug = false
8 debug = false
9
9
10 ; ########################################################################
10 ; ########################################################################
11 ; EMAIL CONFIGURATION
11 ; EMAIL CONFIGURATION
12 ; These settings will be used by the RhodeCode mailing system
12 ; These settings will be used by the RhodeCode mailing system
13 ; ########################################################################
13 ; ########################################################################
14
14
15 ; prefix all emails subjects with given prefix, helps filtering out emails
15 ; prefix all emails subjects with given prefix, helps filtering out emails
16 #email_prefix = [RhodeCode]
16 #email_prefix = [RhodeCode]
17
17
18 ; email FROM address all mails will be sent
18 ; email FROM address all mails will be sent
19 #app_email_from = rhodecode-noreply@localhost
19 #app_email_from = rhodecode-noreply@localhost
20
20
21 #smtp_server = mail.server.com
21 #smtp_server = mail.server.com
22 #smtp_username =
22 #smtp_username =
23 #smtp_password =
23 #smtp_password =
24 #smtp_port =
24 #smtp_port =
25 #smtp_use_tls = false
25 #smtp_use_tls = false
26 #smtp_use_ssl = true
26 #smtp_use_ssl = true
27
27
28 [server:main]
28 [server:main]
29 ; COMMON HOST/IP CONFIG, This applies mostly to develop setup,
29 ; COMMON HOST/IP CONFIG, This applies mostly to develop setup,
30 ; Host port for gunicorn are controlled by gunicorn_conf.py
30 ; Host port for gunicorn are controlled by gunicorn_conf.py
31 host = 127.0.0.1
31 host = 127.0.0.1
32 port = 10020
32 port = 10020
33
33
34
34
35 ; ###########################
35 ; ###########################
36 ; GUNICORN APPLICATION SERVER
36 ; GUNICORN APPLICATION SERVER
37 ; ###########################
37 ; ###########################
38
38
39 ; run with gunicorn --paste rhodecode.ini --config gunicorn_conf.py
39 ; run with gunicorn --paste rhodecode.ini --config gunicorn_conf.py
40
40
41 ; Module to use, this setting shouldn't be changed
41 ; Module to use, this setting shouldn't be changed
42 use = egg:gunicorn#main
42 use = egg:gunicorn#main
43
43
44 ; Prefix middleware for RhodeCode.
44 ; Prefix middleware for RhodeCode.
45 ; recommended when using proxy setup.
45 ; recommended when using proxy setup.
46 ; allows to set RhodeCode under a prefix in server.
46 ; allows to set RhodeCode under a prefix in server.
47 ; eg https://server.com/custom_prefix. Enable `filter-with =` option below as well.
47 ; eg https://server.com/custom_prefix. Enable `filter-with =` option below as well.
48 ; And set your prefix like: `prefix = /custom_prefix`
48 ; And set your prefix like: `prefix = /custom_prefix`
49 ; be sure to also set beaker.session.cookie_path = /custom_prefix if you need
49 ; be sure to also set beaker.session.cookie_path = /custom_prefix if you need
50 ; to make your cookies only work on prefix url
50 ; to make your cookies only work on prefix url
51 [filter:proxy-prefix]
51 [filter:proxy-prefix]
52 use = egg:PasteDeploy#prefix
52 use = egg:PasteDeploy#prefix
53 prefix = /
53 prefix = /
54
54
55 [app:main]
55 [app:main]
56 ; The %(here)s variable will be replaced with the absolute path of parent directory
56 ; The %(here)s variable will be replaced with the absolute path of parent directory
57 ; of this file
57 ; of this file
58 ; Each option in the app:main can be override by an environmental variable
58 ; Each option in the app:main can be override by an environmental variable
59 ;
59 ;
60 ;To override an option:
60 ;To override an option:
61 ;
61 ;
62 ;RC_<KeyName>
62 ;RC_<KeyName>
63 ;Everything should be uppercase, . and - should be replaced by _.
63 ;Everything should be uppercase, . and - should be replaced by _.
64 ;For example, if you have these configuration settings:
64 ;For example, if you have these configuration settings:
65 ;rc_cache.repo_object.backend = foo
65 ;rc_cache.repo_object.backend = foo
66 ;can be overridden by
66 ;can be overridden by
67 ;export RC_CACHE_REPO_OBJECT_BACKEND=foo
67 ;export RC_CACHE_REPO_OBJECT_BACKEND=foo
68
68
69 use = egg:rhodecode-enterprise-ce
69 use = egg:rhodecode-enterprise-ce
70
70
71 ; enable proxy prefix middleware, defined above
71 ; enable proxy prefix middleware, defined above
72 #filter-with = proxy-prefix
72 #filter-with = proxy-prefix
73
73
74 ; encryption key used to encrypt social plugin tokens,
74 ; encryption key used to encrypt social plugin tokens,
75 ; remote_urls with credentials etc, if not set it defaults to
75 ; remote_urls with credentials etc, if not set it defaults to
76 ; `beaker.session.secret`
76 ; `beaker.session.secret`
77 #rhodecode.encrypted_values.secret =
77 #rhodecode.encrypted_values.secret =
78
78
79 ; decryption strict mode (enabled by default). It controls if decryption raises
79 ; decryption strict mode (enabled by default). It controls if decryption raises
80 ; `SignatureVerificationError` in case of wrong key, or damaged encryption data.
80 ; `SignatureVerificationError` in case of wrong key, or damaged encryption data.
81 #rhodecode.encrypted_values.strict = false
81 #rhodecode.encrypted_values.strict = false
82
82
83 ; Pick algorithm for encryption. Either fernet (more secure) or aes (default)
83 ; Pick algorithm for encryption. Either fernet (more secure) or aes (default)
84 ; fernet is safer, and we strongly recommend switching to it.
84 ; fernet is safer, and we strongly recommend switching to it.
85 ; Due to backward compatibility aes is used as default.
85 ; Due to backward compatibility aes is used as default.
86 #rhodecode.encrypted_values.algorithm = fernet
86 #rhodecode.encrypted_values.algorithm = fernet
87
87
88 ; Return gzipped responses from RhodeCode (static files/application)
88 ; Return gzipped responses from RhodeCode (static files/application)
89 gzip_responses = false
89 gzip_responses = false
90
90
91 ; Auto-generate javascript routes file on startup
91 ; Auto-generate javascript routes file on startup
92 generate_js_files = false
92 generate_js_files = false
93
93
94 ; System global default language.
94 ; System global default language.
95 ; All available languages: en (default), be, de, es, fr, it, ja, pl, pt, ru, zh
95 ; All available languages: en (default), be, de, es, fr, it, ja, pl, pt, ru, zh
96 lang = en
96 lang = en
97
97
98 ; Perform a full repository scan and import on each server start.
98 ; Perform a full repository scan and import on each server start.
99 ; Settings this to true could lead to very long startup time.
99 ; Settings this to true could lead to very long startup time.
100 startup.import_repos = false
100 startup.import_repos = false
101
101
102 ; URL at which the application is running. This is used for Bootstrapping
102 ; URL at which the application is running. This is used for Bootstrapping
103 ; requests in context when no web request is available. Used in ishell, or
103 ; requests in context when no web request is available. Used in ishell, or
104 ; SSH calls. Set this for events to receive proper url for SSH calls.
104 ; SSH calls. Set this for events to receive proper url for SSH calls.
105 app.base_url = http://rhodecode.local
105 app.base_url = http://rhodecode.local
106
106
107 ; Unique application ID. Should be a random unique string for security.
107 ; Unique application ID. Should be a random unique string for security.
108 app_instance_uuid = rc-production
108 app_instance_uuid = rc-production
109
109
110 ; Cut off limit for large diffs (size in bytes). If overall diff size on
110 ; Cut off limit for large diffs (size in bytes). If overall diff size on
111 ; commit, or pull request exceeds this limit this diff will be displayed
111 ; commit, or pull request exceeds this limit this diff will be displayed
112 ; partially. E.g 512000 == 512Kb
112 ; partially. E.g 512000 == 512Kb
113 cut_off_limit_diff = 512000
113 cut_off_limit_diff = 512000
114
114
115 ; Cut off limit for large files inside diffs (size in bytes). Each individual
115 ; Cut off limit for large files inside diffs (size in bytes). Each individual
116 ; file inside diff which exceeds this limit will be displayed partially.
116 ; file inside diff which exceeds this limit will be displayed partially.
117 ; E.g 128000 == 128Kb
117 ; E.g 128000 == 128Kb
118 cut_off_limit_file = 128000
118 cut_off_limit_file = 128000
119
119
120 ; Use cached version of vcs repositories everywhere. Recommended to be `true`
120 ; Use cached version of vcs repositories everywhere. Recommended to be `true`
121 vcs_full_cache = true
121 vcs_full_cache = true
122
122
123 ; Force https in RhodeCode, fixes https redirects, assumes it's always https.
123 ; Force https in RhodeCode, fixes https redirects, assumes it's always https.
124 ; Normally this is controlled by proper flags sent from http server such as Nginx or Apache
124 ; Normally this is controlled by proper flags sent from http server such as Nginx or Apache
125 force_https = false
125 force_https = false
126
126
127 ; use Strict-Transport-Security headers
127 ; use Strict-Transport-Security headers
128 use_htsts = false
128 use_htsts = false
129
129
130 ; Set to true if your repos are exposed using the dumb protocol
130 ; Set to true if your repos are exposed using the dumb protocol
131 git_update_server_info = false
131 git_update_server_info = false
132
132
133 ; RSS/ATOM feed options
133 ; RSS/ATOM feed options
134 rss_cut_off_limit = 256000
134 rss_cut_off_limit = 256000
135 rss_items_per_page = 10
135 rss_items_per_page = 10
136 rss_include_diff = false
136 rss_include_diff = false
137
137
138 ; gist URL alias, used to create nicer urls for gist. This should be an
138 ; gist URL alias, used to create nicer urls for gist. This should be an
139 ; url that does rewrites to _admin/gists/{gistid}.
139 ; url that does rewrites to _admin/gists/{gistid}.
140 ; example: http://gist.rhodecode.org/{gistid}. Empty means use the internal
140 ; example: http://gist.rhodecode.org/{gistid}. Empty means use the internal
141 ; RhodeCode url, ie. http[s]://rhodecode.server/_admin/gists/{gistid}
141 ; RhodeCode url, ie. http[s]://rhodecode.server/_admin/gists/{gistid}
142 gist_alias_url =
142 gist_alias_url =
143
143
144 ; List of views (using glob pattern syntax) that AUTH TOKENS could be
144 ; List of views (using glob pattern syntax) that AUTH TOKENS could be
145 ; used for access.
145 ; used for access.
146 ; Adding ?auth_token=TOKEN_HASH to the url authenticates this request as if it
146 ; Adding ?auth_token=TOKEN_HASH to the url authenticates this request as if it
147 ; came from the the logged in user who own this authentication token.
147 ; came from the the logged in user who own this authentication token.
148 ; Additionally @TOKEN syntax can be used to bound the view to specific
148 ; Additionally @TOKEN syntax can be used to bound the view to specific
149 ; authentication token. Such view would be only accessible when used together
149 ; authentication token. Such view would be only accessible when used together
150 ; with this authentication token
150 ; with this authentication token
151 ; list of all views can be found under `/_admin/permissions/auth_token_access`
151 ; list of all views can be found under `/_admin/permissions/auth_token_access`
152 ; The list should be "," separated and on a single line.
152 ; The list should be "," separated and on a single line.
153 ; Most common views to enable:
153 ; Most common views to enable:
154
154
155 # RepoCommitsView:repo_commit_download
155 # RepoCommitsView:repo_commit_download
156 # RepoCommitsView:repo_commit_patch
156 # RepoCommitsView:repo_commit_patch
157 # RepoCommitsView:repo_commit_raw
157 # RepoCommitsView:repo_commit_raw
158 # RepoCommitsView:repo_commit_raw@TOKEN
158 # RepoCommitsView:repo_commit_raw@TOKEN
159 # RepoFilesView:repo_files_diff
159 # RepoFilesView:repo_files_diff
160 # RepoFilesView:repo_archivefile
160 # RepoFilesView:repo_archivefile
161 # RepoFilesView:repo_file_raw
161 # RepoFilesView:repo_file_raw
162 # GistView:*
162 # GistView:*
163 api_access_controllers_whitelist =
163 api_access_controllers_whitelist =
164
164
165 ; Default encoding used to convert from and to unicode
165 ; Default encoding used to convert from and to unicode
166 ; can be also a comma separated list of encoding in case of mixed encodings
166 ; can be also a comma separated list of encoding in case of mixed encodings
167 default_encoding = UTF-8
167 default_encoding = UTF-8
168
168
169 ; instance-id prefix
169 ; instance-id prefix
170 ; a prefix key for this instance used for cache invalidation when running
170 ; a prefix key for this instance used for cache invalidation when running
171 ; multiple instances of RhodeCode, make sure it's globally unique for
171 ; multiple instances of RhodeCode, make sure it's globally unique for
172 ; all running RhodeCode instances. Leave empty if you don't use it
172 ; all running RhodeCode instances. Leave empty if you don't use it
173 instance_id =
173 instance_id =
174
174
175 ; Fallback authentication plugin. Set this to a plugin ID to force the usage
175 ; Fallback authentication plugin. Set this to a plugin ID to force the usage
176 ; of an authentication plugin also if it is disabled by it's settings.
176 ; of an authentication plugin also if it is disabled by it's settings.
177 ; This could be useful if you are unable to log in to the system due to broken
177 ; This could be useful if you are unable to log in to the system due to broken
178 ; authentication settings. Then you can enable e.g. the internal RhodeCode auth
178 ; authentication settings. Then you can enable e.g. the internal RhodeCode auth
179 ; module to log in again and fix the settings.
179 ; module to log in again and fix the settings.
180 ; Available builtin plugin IDs (hash is part of the ID):
180 ; Available builtin plugin IDs (hash is part of the ID):
181 ; egg:rhodecode-enterprise-ce#rhodecode
181 ; egg:rhodecode-enterprise-ce#rhodecode
182 ; egg:rhodecode-enterprise-ce#pam
182 ; egg:rhodecode-enterprise-ce#pam
183 ; egg:rhodecode-enterprise-ce#ldap
183 ; egg:rhodecode-enterprise-ce#ldap
184 ; egg:rhodecode-enterprise-ce#jasig_cas
184 ; egg:rhodecode-enterprise-ce#jasig_cas
185 ; egg:rhodecode-enterprise-ce#headers
185 ; egg:rhodecode-enterprise-ce#headers
186 ; egg:rhodecode-enterprise-ce#crowd
186 ; egg:rhodecode-enterprise-ce#crowd
187
187
188 #rhodecode.auth_plugin_fallback = egg:rhodecode-enterprise-ce#rhodecode
188 #rhodecode.auth_plugin_fallback = egg:rhodecode-enterprise-ce#rhodecode
189
189
190 ; Flag to control loading of legacy plugins in py:/path format
190 ; Flag to control loading of legacy plugins in py:/path format
191 auth_plugin.import_legacy_plugins = true
191 auth_plugin.import_legacy_plugins = true
192
192
193 ; alternative return HTTP header for failed authentication. Default HTTP
193 ; alternative return HTTP header for failed authentication. Default HTTP
194 ; response is 401 HTTPUnauthorized. Currently HG clients have troubles with
194 ; response is 401 HTTPUnauthorized. Currently HG clients have troubles with
195 ; handling that causing a series of failed authentication calls.
195 ; handling that causing a series of failed authentication calls.
196 ; Set this variable to 403 to return HTTPForbidden, or any other HTTP code
196 ; Set this variable to 403 to return HTTPForbidden, or any other HTTP code
197 ; This will be served instead of default 401 on bad authentication
197 ; This will be served instead of default 401 on bad authentication
198 auth_ret_code =
198 auth_ret_code =
199
199
200 ; use special detection method when serving auth_ret_code, instead of serving
200 ; use special detection method when serving auth_ret_code, instead of serving
201 ; ret_code directly, use 401 initially (Which triggers credentials prompt)
201 ; ret_code directly, use 401 initially (Which triggers credentials prompt)
202 ; and then serve auth_ret_code to clients
202 ; and then serve auth_ret_code to clients
203 auth_ret_code_detection = false
203 auth_ret_code_detection = false
204
204
205 ; locking return code. When repository is locked return this HTTP code. 2XX
205 ; locking return code. When repository is locked return this HTTP code. 2XX
206 ; codes don't break the transactions while 4XX codes do
206 ; codes don't break the transactions while 4XX codes do
207 lock_ret_code = 423
207 lock_ret_code = 423
208
208
209 ; allows to change the repository location in settings page
209 ; allows to change the repository location in settings page
210 allow_repo_location_change = true
210 allow_repo_location_change = true
211
211
212 ; allows to setup custom hooks in settings page
212 ; allows to setup custom hooks in settings page
213 allow_custom_hooks_settings = true
213 allow_custom_hooks_settings = true
214
214
215 ; Generated license token required for EE edition license.
215 ; Generated license token required for EE edition license.
216 ; New generated token value can be found in Admin > settings > license page.
216 ; New generated token value can be found in Admin > settings > license page.
217 license_token =
217 license_token =
218
218
219 ; This flag hides sensitive information on the license page such as token, and license data
219 ; This flag hides sensitive information on the license page such as token, and license data
220 license.hide_license_info = false
220 license.hide_license_info = false
221
221
222 ; supervisor connection uri, for managing supervisor and logs.
222 ; supervisor connection uri, for managing supervisor and logs.
223 supervisor.uri =
223 supervisor.uri =
224
224
225 ; supervisord group name/id we only want this RC instance to handle
225 ; supervisord group name/id we only want this RC instance to handle
226 supervisor.group_id = prod
226 supervisor.group_id = prod
227
227
228 ; Display extended labs settings
228 ; Display extended labs settings
229 labs_settings_active = true
229 labs_settings_active = true
230
230
231 ; Custom exception store path, defaults to TMPDIR
231 ; Custom exception store path, defaults to TMPDIR
232 ; This is used to store exception from RhodeCode in shared directory
232 ; This is used to store exception from RhodeCode in shared directory
233 #exception_tracker.store_path =
233 #exception_tracker.store_path =
234
234
235 ; Send email with exception details when it happens
235 ; Send email with exception details when it happens
236 #exception_tracker.send_email = false
236 #exception_tracker.send_email = false
237
237
238 ; Comma separated list of recipients for exception emails,
238 ; Comma separated list of recipients for exception emails,
239 ; e.g admin@rhodecode.com,devops@rhodecode.com
239 ; e.g admin@rhodecode.com,devops@rhodecode.com
240 ; Can be left empty, then emails will be sent to ALL super-admins
240 ; Can be left empty, then emails will be sent to ALL super-admins
241 #exception_tracker.send_email_recipients =
241 #exception_tracker.send_email_recipients =
242
242
243 ; optional prefix to Add to email Subject
243 ; optional prefix to Add to email Subject
244 #exception_tracker.email_prefix = [RHODECODE ERROR]
244 #exception_tracker.email_prefix = [RHODECODE ERROR]
245
245
246 ; File store configuration. This is used to store and serve uploaded files
246 ; File store configuration. This is used to store and serve uploaded files
247 file_store.enabled = true
247 file_store.enabled = true
248
248
249 ; Storage backend, available options are: local
249 ; Storage backend, available options are: local
250 file_store.backend = local
250 file_store.backend = local
251
251
252 ; path to store the uploaded binaries
252 ; path to store the uploaded binaries
253 file_store.storage_path = %(here)s/data/file_store
253 file_store.storage_path = %(here)s/data/file_store
254
254
255 ; Uncomment and set this path to control settings for archive download cache.
255 ; Uncomment and set this path to control settings for archive download cache.
256 ; Generated repo archives will be cached at this location
256 ; Generated repo archives will be cached at this location
257 ; and served from the cache during subsequent requests for the same archive of
257 ; and served from the cache during subsequent requests for the same archive of
258 ; the repository. This path is important to be shared across filesystems and with
258 ; the repository. This path is important to be shared across filesystems and with
259 ; RhodeCode and vcsserver
259 ; RhodeCode and vcsserver
260
260
261 ; Default is $cache_dir/archive_cache if not set
261 ; Default is $cache_dir/archive_cache if not set
262 archive_cache.store_dir = %(here)s/data/archive_cache
262 archive_cache.store_dir = %(here)s/data/archive_cache
263
263
264 ; The limit in GB sets how much data we cache before recycling last used, defaults to 10 gb
264 ; The limit in GB sets how much data we cache before recycling last used, defaults to 10 gb
265 archive_cache.cache_size_gb = 40
265 archive_cache.cache_size_gb = 40
266
266
267 ; By default cache uses sharding technique, this specifies how many shards are there
267 ; By default cache uses sharding technique, this specifies how many shards are there
268 archive_cache.cache_shards = 4
268 archive_cache.cache_shards = 4
269
269
270 ; #############
270 ; #############
271 ; CELERY CONFIG
271 ; CELERY CONFIG
272 ; #############
272 ; #############
273
273
274 ; manually run celery: /path/to/celery worker --task-events --beat --app rhodecode.lib.celerylib.loader --scheduler rhodecode.lib.celerylib.scheduler.RcScheduler --loglevel DEBUG --ini /path/to/rhodecode.ini
274 ; manually run celery: /path/to/celery worker --task-events --beat --app rhodecode.lib.celerylib.loader --scheduler rhodecode.lib.celerylib.scheduler.RcScheduler --loglevel DEBUG --ini /path/to/rhodecode.ini
275
275
276 use_celery = false
276 use_celery = false
277
277
278 ; path to store schedule database
278 ; path to store schedule database
279 #celerybeat-schedule.path =
279 #celerybeat-schedule.path =
280
280
281 ; connection url to the message broker (default redis)
281 ; connection url to the message broker (default redis)
282 celery.broker_url = redis://localhost:6379/8
282 celery.broker_url = redis://localhost:6379/8
283
283
284 ; rabbitmq example
284 ; rabbitmq example
285 #celery.broker_url = amqp://rabbitmq:qweqwe@localhost:5672/rabbitmqhost
285 #celery.broker_url = amqp://rabbitmq:qweqwe@localhost:5672/rabbitmqhost
286
286
287 ; maximum tasks to execute before worker restart
287 ; maximum tasks to execute before worker restart
288 celery.max_tasks_per_child = 20
288 celery.max_tasks_per_child = 20
289
289
290 ; tasks will never be sent to the queue, but executed locally instead.
290 ; tasks will never be sent to the queue, but executed locally instead.
291 celery.task_always_eager = false
291 celery.task_always_eager = false
292
292
293 ; #############
293 ; #############
294 ; DOGPILE CACHE
294 ; DOGPILE CACHE
295 ; #############
295 ; #############
296
296
297 ; Default cache dir for caches. Putting this into a ramdisk can boost performance.
297 ; Default cache dir for caches. Putting this into a ramdisk can boost performance.
298 ; eg. /tmpfs/data_ramdisk, however this directory might require large amount of space
298 ; eg. /tmpfs/data_ramdisk, however this directory might require large amount of space
299 cache_dir = %(here)s/data
299 cache_dir = %(here)s/data
300
300
301 ; *********************************************
301 ; *********************************************
302 ; `sql_cache_short` cache for heavy SQL queries
302 ; `sql_cache_short` cache for heavy SQL queries
303 ; Only supported backend is `memory_lru`
303 ; Only supported backend is `memory_lru`
304 ; *********************************************
304 ; *********************************************
305 rc_cache.sql_cache_short.backend = dogpile.cache.rc.memory_lru
305 rc_cache.sql_cache_short.backend = dogpile.cache.rc.memory_lru
306 rc_cache.sql_cache_short.expiration_time = 30
306 rc_cache.sql_cache_short.expiration_time = 30
307
307
308
308
309 ; *****************************************************
309 ; *****************************************************
310 ; `cache_repo_longterm` cache for repo object instances
310 ; `cache_repo_longterm` cache for repo object instances
311 ; Only supported backend is `memory_lru`
311 ; Only supported backend is `memory_lru`
312 ; *****************************************************
312 ; *****************************************************
313 rc_cache.cache_repo_longterm.backend = dogpile.cache.rc.memory_lru
313 rc_cache.cache_repo_longterm.backend = dogpile.cache.rc.memory_lru
314 ; by default we use 30 Days, cache is still invalidated on push
314 ; by default we use 30 Days, cache is still invalidated on push
315 rc_cache.cache_repo_longterm.expiration_time = 2592000
315 rc_cache.cache_repo_longterm.expiration_time = 2592000
316 ; max items in LRU cache, set to smaller number to save memory, and expire last used caches
316 ; max items in LRU cache, set to smaller number to save memory, and expire last used caches
317 rc_cache.cache_repo_longterm.max_size = 10000
317 rc_cache.cache_repo_longterm.max_size = 10000
318
318
319
319
320 ; *********************************************
320 ; *********************************************
321 ; `cache_general` cache for general purpose use
321 ; `cache_general` cache for general purpose use
322 ; for simplicity use rc.file_namespace backend,
322 ; for simplicity use rc.file_namespace backend,
323 ; for performance and scale use rc.redis
323 ; for performance and scale use rc.redis
324 ; *********************************************
324 ; *********************************************
325 rc_cache.cache_general.backend = dogpile.cache.rc.file_namespace
325 rc_cache.cache_general.backend = dogpile.cache.rc.file_namespace
326 rc_cache.cache_general.expiration_time = 43200
326 rc_cache.cache_general.expiration_time = 43200
327 ; file cache store path. Defaults to `cache_dir =` value or tempdir if both values are not set
327 ; file cache store path. Defaults to `cache_dir =` value or tempdir if both values are not set
328 #rc_cache.cache_general.arguments.filename = /tmp/cache_general_db
328 #rc_cache.cache_general.arguments.filename = /tmp/cache_general_db
329
329
330 ; alternative `cache_general` redis backend with distributed lock
330 ; alternative `cache_general` redis backend with distributed lock
331 #rc_cache.cache_general.backend = dogpile.cache.rc.redis
331 #rc_cache.cache_general.backend = dogpile.cache.rc.redis
332 #rc_cache.cache_general.expiration_time = 300
332 #rc_cache.cache_general.expiration_time = 300
333
333
334 ; redis_expiration_time needs to be greater then expiration_time
334 ; redis_expiration_time needs to be greater then expiration_time
335 #rc_cache.cache_general.arguments.redis_expiration_time = 7200
335 #rc_cache.cache_general.arguments.redis_expiration_time = 7200
336
336
337 #rc_cache.cache_general.arguments.host = localhost
337 #rc_cache.cache_general.arguments.host = localhost
338 #rc_cache.cache_general.arguments.port = 6379
338 #rc_cache.cache_general.arguments.port = 6379
339 #rc_cache.cache_general.arguments.db = 0
339 #rc_cache.cache_general.arguments.db = 0
340 #rc_cache.cache_general.arguments.socket_timeout = 30
340 #rc_cache.cache_general.arguments.socket_timeout = 30
341 ; more Redis options: https://dogpilecache.sqlalchemy.org/en/latest/api.html#redis-backends
341 ; more Redis options: https://dogpilecache.sqlalchemy.org/en/latest/api.html#redis-backends
342 #rc_cache.cache_general.arguments.distributed_lock = true
342 #rc_cache.cache_general.arguments.distributed_lock = true
343
343
344 ; auto-renew lock to prevent stale locks, slower but safer. Use only if problems happen
344 ; auto-renew lock to prevent stale locks, slower but safer. Use only if problems happen
345 #rc_cache.cache_general.arguments.lock_auto_renewal = true
345 #rc_cache.cache_general.arguments.lock_auto_renewal = true
346
346
347 ; *************************************************
347 ; *************************************************
348 ; `cache_perms` cache for permission tree, auth TTL
348 ; `cache_perms` cache for permission tree, auth TTL
349 ; for simplicity use rc.file_namespace backend,
349 ; for simplicity use rc.file_namespace backend,
350 ; for performance and scale use rc.redis
350 ; for performance and scale use rc.redis
351 ; *************************************************
351 ; *************************************************
352 rc_cache.cache_perms.backend = dogpile.cache.rc.file_namespace
352 rc_cache.cache_perms.backend = dogpile.cache.rc.file_namespace
353 rc_cache.cache_perms.expiration_time = 3600
353 rc_cache.cache_perms.expiration_time = 3600
354 ; file cache store path. Defaults to `cache_dir =` value or tempdir if both values are not set
354 ; file cache store path. Defaults to `cache_dir =` value or tempdir if both values are not set
355 #rc_cache.cache_perms.arguments.filename = /tmp/cache_perms_db
355 #rc_cache.cache_perms.arguments.filename = /tmp/cache_perms_db
356
356
357 ; alternative `cache_perms` redis backend with distributed lock
357 ; alternative `cache_perms` redis backend with distributed lock
358 #rc_cache.cache_perms.backend = dogpile.cache.rc.redis
358 #rc_cache.cache_perms.backend = dogpile.cache.rc.redis
359 #rc_cache.cache_perms.expiration_time = 300
359 #rc_cache.cache_perms.expiration_time = 300
360
360
361 ; redis_expiration_time needs to be greater then expiration_time
361 ; redis_expiration_time needs to be greater then expiration_time
362 #rc_cache.cache_perms.arguments.redis_expiration_time = 7200
362 #rc_cache.cache_perms.arguments.redis_expiration_time = 7200
363
363
364 #rc_cache.cache_perms.arguments.host = localhost
364 #rc_cache.cache_perms.arguments.host = localhost
365 #rc_cache.cache_perms.arguments.port = 6379
365 #rc_cache.cache_perms.arguments.port = 6379
366 #rc_cache.cache_perms.arguments.db = 0
366 #rc_cache.cache_perms.arguments.db = 0
367 #rc_cache.cache_perms.arguments.socket_timeout = 30
367 #rc_cache.cache_perms.arguments.socket_timeout = 30
368 ; more Redis options: https://dogpilecache.sqlalchemy.org/en/latest/api.html#redis-backends
368 ; more Redis options: https://dogpilecache.sqlalchemy.org/en/latest/api.html#redis-backends
369 #rc_cache.cache_perms.arguments.distributed_lock = true
369 #rc_cache.cache_perms.arguments.distributed_lock = true
370
370
371 ; auto-renew lock to prevent stale locks, slower but safer. Use only if problems happen
371 ; auto-renew lock to prevent stale locks, slower but safer. Use only if problems happen
372 #rc_cache.cache_perms.arguments.lock_auto_renewal = true
372 #rc_cache.cache_perms.arguments.lock_auto_renewal = true
373
373
374 ; ***************************************************
374 ; ***************************************************
375 ; `cache_repo` cache for file tree, Readme, RSS FEEDS
375 ; `cache_repo` cache for file tree, Readme, RSS FEEDS
376 ; for simplicity use rc.file_namespace backend,
376 ; for simplicity use rc.file_namespace backend,
377 ; for performance and scale use rc.redis
377 ; for performance and scale use rc.redis
378 ; ***************************************************
378 ; ***************************************************
379 rc_cache.cache_repo.backend = dogpile.cache.rc.file_namespace
379 rc_cache.cache_repo.backend = dogpile.cache.rc.file_namespace
380 rc_cache.cache_repo.expiration_time = 2592000
380 rc_cache.cache_repo.expiration_time = 2592000
381 ; file cache store path. Defaults to `cache_dir =` value or tempdir if both values are not set
381 ; file cache store path. Defaults to `cache_dir =` value or tempdir if both values are not set
382 #rc_cache.cache_repo.arguments.filename = /tmp/cache_repo_db
382 #rc_cache.cache_repo.arguments.filename = /tmp/cache_repo_db
383
383
384 ; alternative `cache_repo` redis backend with distributed lock
384 ; alternative `cache_repo` redis backend with distributed lock
385 #rc_cache.cache_repo.backend = dogpile.cache.rc.redis
385 #rc_cache.cache_repo.backend = dogpile.cache.rc.redis
386 #rc_cache.cache_repo.expiration_time = 2592000
386 #rc_cache.cache_repo.expiration_time = 2592000
387
387
388 ; redis_expiration_time needs to be greater then expiration_time
388 ; redis_expiration_time needs to be greater then expiration_time
389 #rc_cache.cache_repo.arguments.redis_expiration_time = 2678400
389 #rc_cache.cache_repo.arguments.redis_expiration_time = 2678400
390
390
391 #rc_cache.cache_repo.arguments.host = localhost
391 #rc_cache.cache_repo.arguments.host = localhost
392 #rc_cache.cache_repo.arguments.port = 6379
392 #rc_cache.cache_repo.arguments.port = 6379
393 #rc_cache.cache_repo.arguments.db = 1
393 #rc_cache.cache_repo.arguments.db = 1
394 #rc_cache.cache_repo.arguments.socket_timeout = 30
394 #rc_cache.cache_repo.arguments.socket_timeout = 30
395 ; more Redis options: https://dogpilecache.sqlalchemy.org/en/latest/api.html#redis-backends
395 ; more Redis options: https://dogpilecache.sqlalchemy.org/en/latest/api.html#redis-backends
396 #rc_cache.cache_repo.arguments.distributed_lock = true
396 #rc_cache.cache_repo.arguments.distributed_lock = true
397
397
398 ; auto-renew lock to prevent stale locks, slower but safer. Use only if problems happen
398 ; auto-renew lock to prevent stale locks, slower but safer. Use only if problems happen
399 #rc_cache.cache_repo.arguments.lock_auto_renewal = true
399 #rc_cache.cache_repo.arguments.lock_auto_renewal = true
400
400
401 ; ##############
401 ; ##############
402 ; BEAKER SESSION
402 ; BEAKER SESSION
403 ; ##############
403 ; ##############
404
404
405 ; beaker.session.type is type of storage options for the logged users sessions. Current allowed
405 ; beaker.session.type is type of storage options for the logged users sessions. Current allowed
406 ; types are file, ext:redis, ext:database, ext:memcached, and memory (default if not specified).
406 ; types are file, ext:redis, ext:database, ext:memcached
407 ; Fastest ones are Redis and ext:database
407 ; Fastest ones are ext:redis and ext:database, DO NOT use memory type for session
408 beaker.session.type = file
408 beaker.session.type = file
409 beaker.session.data_dir = %(here)s/data/sessions
409 beaker.session.data_dir = %(here)s/data/sessions
410
410
411 ; Redis based sessions
411 ; Redis based sessions
412 #beaker.session.type = ext:redis
412 #beaker.session.type = ext:redis
413 #beaker.session.url = redis://127.0.0.1:6379/2
413 #beaker.session.url = redis://127.0.0.1:6379/2
414
414
415 ; DB based session, fast, and allows easy management over logged in users
415 ; DB based session, fast, and allows easy management over logged in users
416 #beaker.session.type = ext:database
416 #beaker.session.type = ext:database
417 #beaker.session.table_name = db_session
417 #beaker.session.table_name = db_session
418 #beaker.session.sa.url = postgresql://postgres:secret@localhost/rhodecode
418 #beaker.session.sa.url = postgresql://postgres:secret@localhost/rhodecode
419 #beaker.session.sa.url = mysql://root:secret@127.0.0.1/rhodecode
419 #beaker.session.sa.url = mysql://root:secret@127.0.0.1/rhodecode
420 #beaker.session.sa.pool_recycle = 3600
420 #beaker.session.sa.pool_recycle = 3600
421 #beaker.session.sa.echo = false
421 #beaker.session.sa.echo = false
422
422
423 beaker.session.key = rhodecode
423 beaker.session.key = rhodecode
424 beaker.session.secret = production-rc-uytcxaz
424 beaker.session.secret = production-rc-uytcxaz
425 beaker.session.lock_dir = %(here)s/data/sessions/lock
425 beaker.session.lock_dir = %(here)s/data/sessions/lock
426
426
427 ; Secure encrypted cookie. Requires AES and AES python libraries
427 ; Secure encrypted cookie. Requires AES and AES python libraries
428 ; you must disable beaker.session.secret to use this
428 ; you must disable beaker.session.secret to use this
429 #beaker.session.encrypt_key = key_for_encryption
429 #beaker.session.encrypt_key = key_for_encryption
430 #beaker.session.validate_key = validation_key
430 #beaker.session.validate_key = validation_key
431
431
432 ; Sets session as invalid (also logging out user) if it haven not been
432 ; Sets session as invalid (also logging out user) if it haven not been
433 ; accessed for given amount of time in seconds
433 ; accessed for given amount of time in seconds
434 beaker.session.timeout = 2592000
434 beaker.session.timeout = 2592000
435 beaker.session.httponly = true
435 beaker.session.httponly = true
436
436
437 ; Path to use for the cookie. Set to prefix if you use prefix middleware
437 ; Path to use for the cookie. Set to prefix if you use prefix middleware
438 #beaker.session.cookie_path = /custom_prefix
438 #beaker.session.cookie_path = /custom_prefix
439
439
440 ; Set https secure cookie
440 ; Set https secure cookie
441 beaker.session.secure = false
441 beaker.session.secure = false
442
442
443 ; default cookie expiration time in seconds, set to `true` to set expire
443 ; default cookie expiration time in seconds, set to `true` to set expire
444 ; at browser close
444 ; at browser close
445 #beaker.session.cookie_expires = 3600
445 #beaker.session.cookie_expires = 3600
446
446
447 ; #############################
447 ; #############################
448 ; SEARCH INDEXING CONFIGURATION
448 ; SEARCH INDEXING CONFIGURATION
449 ; #############################
449 ; #############################
450
450
451 ; Full text search indexer is available in rhodecode-tools under
451 ; Full text search indexer is available in rhodecode-tools under
452 ; `rhodecode-tools index` command
452 ; `rhodecode-tools index` command
453
453
454 ; WHOOSH Backend, doesn't require additional services to run
454 ; WHOOSH Backend, doesn't require additional services to run
455 ; it works good with few dozen repos
455 ; it works good with few dozen repos
456 search.module = rhodecode.lib.index.whoosh
456 search.module = rhodecode.lib.index.whoosh
457 search.location = %(here)s/data/index
457 search.location = %(here)s/data/index
458
458
459 ; ####################
459 ; ####################
460 ; CHANNELSTREAM CONFIG
460 ; CHANNELSTREAM CONFIG
461 ; ####################
461 ; ####################
462
462
463 ; channelstream enables persistent connections and live notification
463 ; channelstream enables persistent connections and live notification
464 ; in the system. It's also used by the chat system
464 ; in the system. It's also used by the chat system
465
465
466 channelstream.enabled = false
466 channelstream.enabled = false
467
467
468 ; server address for channelstream server on the backend
468 ; server address for channelstream server on the backend
469 channelstream.server = 127.0.0.1:9800
469 channelstream.server = 127.0.0.1:9800
470
470
471 ; location of the channelstream server from outside world
471 ; location of the channelstream server from outside world
472 ; use ws:// for http or wss:// for https. This address needs to be handled
472 ; use ws:// for http or wss:// for https. This address needs to be handled
473 ; by external HTTP server such as Nginx or Apache
473 ; by external HTTP server such as Nginx or Apache
474 ; see Nginx/Apache configuration examples in our docs
474 ; see Nginx/Apache configuration examples in our docs
475 channelstream.ws_url = ws://rhodecode.yourserver.com/_channelstream
475 channelstream.ws_url = ws://rhodecode.yourserver.com/_channelstream
476 channelstream.secret = secret
476 channelstream.secret = secret
477 channelstream.history.location = %(here)s/channelstream_history
477 channelstream.history.location = %(here)s/channelstream_history
478
478
479 ; Internal application path that Javascript uses to connect into.
479 ; Internal application path that Javascript uses to connect into.
480 ; If you use proxy-prefix the prefix should be added before /_channelstream
480 ; If you use proxy-prefix the prefix should be added before /_channelstream
481 channelstream.proxy_path = /_channelstream
481 channelstream.proxy_path = /_channelstream
482
482
483
483
484 ; ##############################
484 ; ##############################
485 ; MAIN RHODECODE DATABASE CONFIG
485 ; MAIN RHODECODE DATABASE CONFIG
486 ; ##############################
486 ; ##############################
487
487
488 #sqlalchemy.db1.url = sqlite:///%(here)s/rhodecode.db?timeout=30
488 #sqlalchemy.db1.url = sqlite:///%(here)s/rhodecode.db?timeout=30
489 #sqlalchemy.db1.url = postgresql://postgres:qweqwe@localhost/rhodecode
489 #sqlalchemy.db1.url = postgresql://postgres:qweqwe@localhost/rhodecode
490 #sqlalchemy.db1.url = mysql://root:qweqwe@localhost/rhodecode?charset=utf8
490 #sqlalchemy.db1.url = mysql://root:qweqwe@localhost/rhodecode?charset=utf8
491 ; pymysql is an alternative driver for MySQL, use in case of problems with default one
491 ; pymysql is an alternative driver for MySQL, use in case of problems with default one
492 #sqlalchemy.db1.url = mysql+pymysql://root:qweqwe@localhost/rhodecode
492 #sqlalchemy.db1.url = mysql+pymysql://root:qweqwe@localhost/rhodecode
493
493
494 sqlalchemy.db1.url = postgresql://postgres:qweqwe@localhost/rhodecode
494 sqlalchemy.db1.url = postgresql://postgres:qweqwe@localhost/rhodecode
495
495
496 ; see sqlalchemy docs for other advanced settings
496 ; see sqlalchemy docs for other advanced settings
497 ; print the sql statements to output
497 ; print the sql statements to output
498 sqlalchemy.db1.echo = false
498 sqlalchemy.db1.echo = false
499
499
500 ; recycle the connections after this amount of seconds
500 ; recycle the connections after this amount of seconds
501 sqlalchemy.db1.pool_recycle = 3600
501 sqlalchemy.db1.pool_recycle = 3600
502
502
503 ; the number of connections to keep open inside the connection pool.
503 ; the number of connections to keep open inside the connection pool.
504 ; 0 indicates no limit
504 ; 0 indicates no limit
505 ; the general calculus with gevent is:
505 ; the general calculus with gevent is:
506 ; if your system allows 500 concurrent greenlets (max_connections) that all do database access,
506 ; if your system allows 500 concurrent greenlets (max_connections) that all do database access,
507 ; then increase pool size + max overflow so that they add up to 500.
507 ; then increase pool size + max overflow so that they add up to 500.
508 #sqlalchemy.db1.pool_size = 5
508 #sqlalchemy.db1.pool_size = 5
509
509
510 ; The number of connections to allow in connection pool "overflow", that is
510 ; The number of connections to allow in connection pool "overflow", that is
511 ; connections that can be opened above and beyond the pool_size setting,
511 ; connections that can be opened above and beyond the pool_size setting,
512 ; which defaults to five.
512 ; which defaults to five.
513 #sqlalchemy.db1.max_overflow = 10
513 #sqlalchemy.db1.max_overflow = 10
514
514
515 ; Connection check ping, used to detect broken database connections
515 ; Connection check ping, used to detect broken database connections
516 ; could be enabled to better handle cases if MySQL has gone away errors
516 ; could be enabled to better handle cases if MySQL has gone away errors
517 #sqlalchemy.db1.ping_connection = true
517 #sqlalchemy.db1.ping_connection = true
518
518
519 ; ##########
519 ; ##########
520 ; VCS CONFIG
520 ; VCS CONFIG
521 ; ##########
521 ; ##########
522 vcs.server.enable = true
522 vcs.server.enable = true
523 vcs.server = localhost:9900
523 vcs.server = localhost:9900
524
524
525 ; Web server connectivity protocol, responsible for web based VCS operations
525 ; Web server connectivity protocol, responsible for web based VCS operations
526 ; Available protocols are:
526 ; Available protocols are:
527 ; `http` - use http-rpc backend (default)
527 ; `http` - use http-rpc backend (default)
528 vcs.server.protocol = http
528 vcs.server.protocol = http
529
529
530 ; Push/Pull operations protocol, available options are:
530 ; Push/Pull operations protocol, available options are:
531 ; `http` - use http-rpc backend (default)
531 ; `http` - use http-rpc backend (default)
532 vcs.scm_app_implementation = http
532 vcs.scm_app_implementation = http
533
533
534 ; Push/Pull operations hooks protocol, available options are:
534 ; Push/Pull operations hooks protocol, available options are:
535 ; `http` - use http-rpc backend (default)
535 ; `http` - use http-rpc backend (default)
536 vcs.hooks.protocol = http
536 vcs.hooks.protocol = http
537
537
538 ; Host on which this instance is listening for hooks. vcsserver will call this host to pull/push hooks so it should be
538 ; Host on which this instance is listening for hooks. vcsserver will call this host to pull/push hooks so it should be
539 ; accessible via network.
539 ; accessible via network.
540 ; Use vcs.hooks.host = "*" to bind to current hostname (for Docker)
540 ; Use vcs.hooks.host = "*" to bind to current hostname (for Docker)
541 vcs.hooks.host = *
541 vcs.hooks.host = *
542
542
543 ; Start VCSServer with this instance as a subprocess, useful for development
543 ; Start VCSServer with this instance as a subprocess, useful for development
544 vcs.start_server = false
544 vcs.start_server = false
545
545
546 ; List of enabled VCS backends, available options are:
546 ; List of enabled VCS backends, available options are:
547 ; `hg` - mercurial
547 ; `hg` - mercurial
548 ; `git` - git
548 ; `git` - git
549 ; `svn` - subversion
549 ; `svn` - subversion
550 vcs.backends = hg, git, svn
550 vcs.backends = hg, git, svn
551
551
552 ; Wait this number of seconds before killing connection to the vcsserver
552 ; Wait this number of seconds before killing connection to the vcsserver
553 vcs.connection_timeout = 3600
553 vcs.connection_timeout = 3600
554
554
555 ; Compatibility version when creating SVN repositories. Defaults to newest version when commented out.
555 ; Compatibility version when creating SVN repositories. Defaults to newest version when commented out.
556 ; Set a numeric version for your current SVN e.g 1.8, or 1.12
556 ; Set a numeric version for your current SVN e.g 1.8, or 1.12
557 ; Legacy available options are: pre-1.4-compatible, pre-1.5-compatible, pre-1.6-compatible, pre-1.8-compatible, pre-1.9-compatible
557 ; Legacy available options are: pre-1.4-compatible, pre-1.5-compatible, pre-1.6-compatible, pre-1.8-compatible, pre-1.9-compatible
558 #vcs.svn.compatible_version = 1.8
558 #vcs.svn.compatible_version = 1.8
559
559
560 ; Cache flag to cache vcsserver remote calls locally
560 ; Cache flag to cache vcsserver remote calls locally
561 ; It uses cache_region `cache_repo`
561 ; It uses cache_region `cache_repo`
562 vcs.methods.cache = true
562 vcs.methods.cache = true
563
563
564 ; ####################################################
564 ; ####################################################
565 ; Subversion proxy support (mod_dav_svn)
565 ; Subversion proxy support (mod_dav_svn)
566 ; Maps RhodeCode repo groups into SVN paths for Apache
566 ; Maps RhodeCode repo groups into SVN paths for Apache
567 ; ####################################################
567 ; ####################################################
568
568
569 ; Enable or disable the config file generation.
569 ; Enable or disable the config file generation.
570 svn.proxy.generate_config = false
570 svn.proxy.generate_config = false
571
571
572 ; Generate config file with `SVNListParentPath` set to `On`.
572 ; Generate config file with `SVNListParentPath` set to `On`.
573 svn.proxy.list_parent_path = true
573 svn.proxy.list_parent_path = true
574
574
575 ; Set location and file name of generated config file.
575 ; Set location and file name of generated config file.
576 svn.proxy.config_file_path = %(here)s/mod_dav_svn.conf
576 svn.proxy.config_file_path = %(here)s/mod_dav_svn.conf
577
577
578 ; alternative mod_dav config template. This needs to be a valid mako template
578 ; alternative mod_dav config template. This needs to be a valid mako template
579 ; Example template can be found in the source code:
579 ; Example template can be found in the source code:
580 ; rhodecode/apps/svn_support/templates/mod-dav-svn.conf.mako
580 ; rhodecode/apps/svn_support/templates/mod-dav-svn.conf.mako
581 #svn.proxy.config_template = ~/.rccontrol/enterprise-1/custom_svn_conf.mako
581 #svn.proxy.config_template = ~/.rccontrol/enterprise-1/custom_svn_conf.mako
582
582
583 ; Used as a prefix to the `Location` block in the generated config file.
583 ; Used as a prefix to the `Location` block in the generated config file.
584 ; In most cases it should be set to `/`.
584 ; In most cases it should be set to `/`.
585 svn.proxy.location_root = /
585 svn.proxy.location_root = /
586
586
587 ; Command to reload the mod dav svn configuration on change.
587 ; Command to reload the mod dav svn configuration on change.
588 ; Example: `/etc/init.d/apache2 reload` or /home/USER/apache_reload.sh
588 ; Example: `/etc/init.d/apache2 reload` or /home/USER/apache_reload.sh
589 ; Make sure user who runs RhodeCode process is allowed to reload Apache
589 ; Make sure user who runs RhodeCode process is allowed to reload Apache
590 #svn.proxy.reload_cmd = /etc/init.d/apache2 reload
590 #svn.proxy.reload_cmd = /etc/init.d/apache2 reload
591
591
592 ; If the timeout expires before the reload command finishes, the command will
592 ; If the timeout expires before the reload command finishes, the command will
593 ; be killed. Setting it to zero means no timeout. Defaults to 10 seconds.
593 ; be killed. Setting it to zero means no timeout. Defaults to 10 seconds.
594 #svn.proxy.reload_timeout = 10
594 #svn.proxy.reload_timeout = 10
595
595
596 ; ####################
596 ; ####################
597 ; SSH Support Settings
597 ; SSH Support Settings
598 ; ####################
598 ; ####################
599
599
600 ; Defines if a custom authorized_keys file should be created and written on
600 ; Defines if a custom authorized_keys file should be created and written on
601 ; any change user ssh keys. Setting this to false also disables possibility
601 ; any change user ssh keys. Setting this to false also disables possibility
602 ; of adding SSH keys by users from web interface. Super admins can still
602 ; of adding SSH keys by users from web interface. Super admins can still
603 ; manage SSH Keys.
603 ; manage SSH Keys.
604 ssh.generate_authorized_keyfile = false
604 ssh.generate_authorized_keyfile = false
605
605
606 ; Options for ssh, default is `no-pty,no-port-forwarding,no-X11-forwarding,no-agent-forwarding`
606 ; Options for ssh, default is `no-pty,no-port-forwarding,no-X11-forwarding,no-agent-forwarding`
607 # ssh.authorized_keys_ssh_opts =
607 # ssh.authorized_keys_ssh_opts =
608
608
609 ; Path to the authorized_keys file where the generate entries are placed.
609 ; Path to the authorized_keys file where the generate entries are placed.
610 ; It is possible to have multiple key files specified in `sshd_config` e.g.
610 ; It is possible to have multiple key files specified in `sshd_config` e.g.
611 ; AuthorizedKeysFile %h/.ssh/authorized_keys %h/.ssh/authorized_keys_rhodecode
611 ; AuthorizedKeysFile %h/.ssh/authorized_keys %h/.ssh/authorized_keys_rhodecode
612 ssh.authorized_keys_file_path = ~/.ssh/authorized_keys_rhodecode
612 ssh.authorized_keys_file_path = ~/.ssh/authorized_keys_rhodecode
613
613
614 ; Command to execute the SSH wrapper. The binary is available in the
614 ; Command to execute the SSH wrapper. The binary is available in the
615 ; RhodeCode installation directory.
615 ; RhodeCode installation directory.
616 ; e.g ~/.rccontrol/community-1/profile/bin/rc-ssh-wrapper
616 ; e.g ~/.rccontrol/community-1/profile/bin/rc-ssh-wrapper
617 ssh.wrapper_cmd = ~/.rccontrol/community-1/rc-ssh-wrapper
617 ssh.wrapper_cmd = ~/.rccontrol/community-1/rc-ssh-wrapper
618
618
619 ; Allow shell when executing the ssh-wrapper command
619 ; Allow shell when executing the ssh-wrapper command
620 ssh.wrapper_cmd_allow_shell = false
620 ssh.wrapper_cmd_allow_shell = false
621
621
622 ; Enables logging, and detailed output send back to the client during SSH
622 ; Enables logging, and detailed output send back to the client during SSH
623 ; operations. Useful for debugging, shouldn't be used in production.
623 ; operations. Useful for debugging, shouldn't be used in production.
624 ssh.enable_debug_logging = false
624 ssh.enable_debug_logging = false
625
625
626 ; Paths to binary executable, by default they are the names, but we can
626 ; Paths to binary executable, by default they are the names, but we can
627 ; override them if we want to use a custom one
627 ; override them if we want to use a custom one
628 ssh.executable.hg = ~/.rccontrol/vcsserver-1/profile/bin/hg
628 ssh.executable.hg = ~/.rccontrol/vcsserver-1/profile/bin/hg
629 ssh.executable.git = ~/.rccontrol/vcsserver-1/profile/bin/git
629 ssh.executable.git = ~/.rccontrol/vcsserver-1/profile/bin/git
630 ssh.executable.svn = ~/.rccontrol/vcsserver-1/profile/bin/svnserve
630 ssh.executable.svn = ~/.rccontrol/vcsserver-1/profile/bin/svnserve
631
631
632 ; Enables SSH key generator web interface. Disabling this still allows users
632 ; Enables SSH key generator web interface. Disabling this still allows users
633 ; to add their own keys.
633 ; to add their own keys.
634 ssh.enable_ui_key_generator = true
634 ssh.enable_ui_key_generator = true
635
635
636
636
637 ; #################
637 ; #################
638 ; APPENLIGHT CONFIG
638 ; APPENLIGHT CONFIG
639 ; #################
639 ; #################
640
640
641 ; Appenlight is tailored to work with RhodeCode, see
641 ; Appenlight is tailored to work with RhodeCode, see
642 ; http://appenlight.rhodecode.com for details how to obtain an account
642 ; http://appenlight.rhodecode.com for details how to obtain an account
643
643
644 ; Appenlight integration enabled
644 ; Appenlight integration enabled
645 #appenlight = false
645 #appenlight = false
646
646
647 #appenlight.server_url = https://api.appenlight.com
647 #appenlight.server_url = https://api.appenlight.com
648 #appenlight.api_key = YOUR_API_KEY
648 #appenlight.api_key = YOUR_API_KEY
649 #appenlight.transport_config = https://api.appenlight.com?threaded=1&timeout=5
649 #appenlight.transport_config = https://api.appenlight.com?threaded=1&timeout=5
650
650
651 ; used for JS client
651 ; used for JS client
652 #appenlight.api_public_key = YOUR_API_PUBLIC_KEY
652 #appenlight.api_public_key = YOUR_API_PUBLIC_KEY
653
653
654 ; TWEAK AMOUNT OF INFO SENT HERE
654 ; TWEAK AMOUNT OF INFO SENT HERE
655
655
656 ; enables 404 error logging (default False)
656 ; enables 404 error logging (default False)
657 #appenlight.report_404 = false
657 #appenlight.report_404 = false
658
658
659 ; time in seconds after request is considered being slow (default 1)
659 ; time in seconds after request is considered being slow (default 1)
660 #appenlight.slow_request_time = 1
660 #appenlight.slow_request_time = 1
661
661
662 ; record slow requests in application
662 ; record slow requests in application
663 ; (needs to be enabled for slow datastore recording and time tracking)
663 ; (needs to be enabled for slow datastore recording and time tracking)
664 #appenlight.slow_requests = true
664 #appenlight.slow_requests = true
665
665
666 ; enable hooking to application loggers
666 ; enable hooking to application loggers
667 #appenlight.logging = true
667 #appenlight.logging = true
668
668
669 ; minimum log level for log capture
669 ; minimum log level for log capture
670 #ppenlight.logging.level = WARNING
670 #ppenlight.logging.level = WARNING
671
671
672 ; send logs only from erroneous/slow requests
672 ; send logs only from erroneous/slow requests
673 ; (saves API quota for intensive logging)
673 ; (saves API quota for intensive logging)
674 #appenlight.logging_on_error = false
674 #appenlight.logging_on_error = false
675
675
676 ; list of additional keywords that should be grabbed from environ object
676 ; list of additional keywords that should be grabbed from environ object
677 ; can be string with comma separated list of words in lowercase
677 ; can be string with comma separated list of words in lowercase
678 ; (by default client will always send following info:
678 ; (by default client will always send following info:
679 ; 'REMOTE_USER', 'REMOTE_ADDR', 'SERVER_NAME', 'CONTENT_TYPE' + all keys that
679 ; 'REMOTE_USER', 'REMOTE_ADDR', 'SERVER_NAME', 'CONTENT_TYPE' + all keys that
680 ; start with HTTP* this list be extended with additional keywords here
680 ; start with HTTP* this list be extended with additional keywords here
681 #appenlight.environ_keys_whitelist =
681 #appenlight.environ_keys_whitelist =
682
682
683 ; list of keywords that should be blanked from request object
683 ; list of keywords that should be blanked from request object
684 ; can be string with comma separated list of words in lowercase
684 ; can be string with comma separated list of words in lowercase
685 ; (by default client will always blank keys that contain following words
685 ; (by default client will always blank keys that contain following words
686 ; 'password', 'passwd', 'pwd', 'auth_tkt', 'secret', 'csrf'
686 ; 'password', 'passwd', 'pwd', 'auth_tkt', 'secret', 'csrf'
687 ; this list be extended with additional keywords set here
687 ; this list be extended with additional keywords set here
688 #appenlight.request_keys_blacklist =
688 #appenlight.request_keys_blacklist =
689
689
690 ; list of namespaces that should be ignores when gathering log entries
690 ; list of namespaces that should be ignores when gathering log entries
691 ; can be string with comma separated list of namespaces
691 ; can be string with comma separated list of namespaces
692 ; (by default the client ignores own entries: appenlight_client.client)
692 ; (by default the client ignores own entries: appenlight_client.client)
693 #appenlight.log_namespace_blacklist =
693 #appenlight.log_namespace_blacklist =
694
694
695 ; Statsd client config, this is used to send metrics to statsd
695 ; Statsd client config, this is used to send metrics to statsd
696 ; We recommend setting statsd_exported and scrape them using Prometheus
696 ; We recommend setting statsd_exported and scrape them using Prometheus
697 #statsd.enabled = false
697 #statsd.enabled = false
698 #statsd.statsd_host = 0.0.0.0
698 #statsd.statsd_host = 0.0.0.0
699 #statsd.statsd_port = 8125
699 #statsd.statsd_port = 8125
700 #statsd.statsd_prefix =
700 #statsd.statsd_prefix =
701 #statsd.statsd_ipv6 = false
701 #statsd.statsd_ipv6 = false
702
702
703 ; configure logging automatically at server startup set to false
703 ; configure logging automatically at server startup set to false
704 ; to use the below custom logging config.
704 ; to use the below custom logging config.
705 ; RC_LOGGING_FORMATTER
705 ; RC_LOGGING_FORMATTER
706 ; RC_LOGGING_LEVEL
706 ; RC_LOGGING_LEVEL
707 ; env variables can control the settings for logging in case of autoconfigure
707 ; env variables can control the settings for logging in case of autoconfigure
708
708
709 #logging.autoconfigure = true
709 #logging.autoconfigure = true
710
710
711 ; specify your own custom logging config file to configure logging
711 ; specify your own custom logging config file to configure logging
712 #logging.logging_conf_file = /path/to/custom_logging.ini
712 #logging.logging_conf_file = /path/to/custom_logging.ini
713
713
714 ; Dummy marker to add new entries after.
714 ; Dummy marker to add new entries after.
715 ; Add any custom entries below. Please don't remove this marker.
715 ; Add any custom entries below. Please don't remove this marker.
716 custom.conf = 1
716 custom.conf = 1
717
717
718
718
719 ; #####################
719 ; #####################
720 ; LOGGING CONFIGURATION
720 ; LOGGING CONFIGURATION
721 ; #####################
721 ; #####################
722
722
723 [loggers]
723 [loggers]
724 keys = root, sqlalchemy, beaker, celery, rhodecode, ssh_wrapper
724 keys = root, sqlalchemy, beaker, celery, rhodecode, ssh_wrapper
725
725
726 [handlers]
726 [handlers]
727 keys = console, console_sql
727 keys = console, console_sql
728
728
729 [formatters]
729 [formatters]
730 keys = generic, json, color_formatter, color_formatter_sql
730 keys = generic, json, color_formatter, color_formatter_sql
731
731
732 ; #######
732 ; #######
733 ; LOGGERS
733 ; LOGGERS
734 ; #######
734 ; #######
735 [logger_root]
735 [logger_root]
736 level = NOTSET
736 level = NOTSET
737 handlers = console
737 handlers = console
738
738
739 [logger_sqlalchemy]
739 [logger_sqlalchemy]
740 level = INFO
740 level = INFO
741 handlers = console_sql
741 handlers = console_sql
742 qualname = sqlalchemy.engine
742 qualname = sqlalchemy.engine
743 propagate = 0
743 propagate = 0
744
744
745 [logger_beaker]
745 [logger_beaker]
746 level = DEBUG
746 level = DEBUG
747 handlers =
747 handlers =
748 qualname = beaker.container
748 qualname = beaker.container
749 propagate = 1
749 propagate = 1
750
750
751 [logger_rhodecode]
751 [logger_rhodecode]
752 level = DEBUG
752 level = DEBUG
753 handlers =
753 handlers =
754 qualname = rhodecode
754 qualname = rhodecode
755 propagate = 1
755 propagate = 1
756
756
757 [logger_ssh_wrapper]
757 [logger_ssh_wrapper]
758 level = DEBUG
758 level = DEBUG
759 handlers =
759 handlers =
760 qualname = ssh_wrapper
760 qualname = ssh_wrapper
761 propagate = 1
761 propagate = 1
762
762
763 [logger_celery]
763 [logger_celery]
764 level = DEBUG
764 level = DEBUG
765 handlers =
765 handlers =
766 qualname = celery
766 qualname = celery
767
767
768
768
769 ; ########
769 ; ########
770 ; HANDLERS
770 ; HANDLERS
771 ; ########
771 ; ########
772
772
773 [handler_console]
773 [handler_console]
774 class = StreamHandler
774 class = StreamHandler
775 args = (sys.stderr, )
775 args = (sys.stderr, )
776 level = INFO
776 level = INFO
777 ; To enable JSON formatted logs replace 'generic/color_formatter' with 'json'
777 ; To enable JSON formatted logs replace 'generic/color_formatter' with 'json'
778 ; This allows sending properly formatted logs to grafana loki or elasticsearch
778 ; This allows sending properly formatted logs to grafana loki or elasticsearch
779 formatter = generic
779 formatter = generic
780
780
781 [handler_console_sql]
781 [handler_console_sql]
782 ; "level = DEBUG" logs SQL queries and results.
782 ; "level = DEBUG" logs SQL queries and results.
783 ; "level = INFO" logs SQL queries.
783 ; "level = INFO" logs SQL queries.
784 ; "level = WARN" logs neither. (Recommended for production systems.)
784 ; "level = WARN" logs neither. (Recommended for production systems.)
785 class = StreamHandler
785 class = StreamHandler
786 args = (sys.stderr, )
786 args = (sys.stderr, )
787 level = WARN
787 level = WARN
788 ; To enable JSON formatted logs replace 'generic/color_formatter_sql' with 'json'
788 ; To enable JSON formatted logs replace 'generic/color_formatter_sql' with 'json'
789 ; This allows sending properly formatted logs to grafana loki or elasticsearch
789 ; This allows sending properly formatted logs to grafana loki or elasticsearch
790 formatter = generic
790 formatter = generic
791
791
792 ; ##########
792 ; ##########
793 ; FORMATTERS
793 ; FORMATTERS
794 ; ##########
794 ; ##########
795
795
796 [formatter_generic]
796 [formatter_generic]
797 class = rhodecode.lib.logging_formatter.ExceptionAwareFormatter
797 class = rhodecode.lib.logging_formatter.ExceptionAwareFormatter
798 format = %(asctime)s.%(msecs)03d [%(process)d] %(levelname)-5.5s [%(name)s] %(message)s
798 format = %(asctime)s.%(msecs)03d [%(process)d] %(levelname)-5.5s [%(name)s] %(message)s
799 datefmt = %Y-%m-%d %H:%M:%S
799 datefmt = %Y-%m-%d %H:%M:%S
800
800
801 [formatter_color_formatter]
801 [formatter_color_formatter]
802 class = rhodecode.lib.logging_formatter.ColorFormatter
802 class = rhodecode.lib.logging_formatter.ColorFormatter
803 format = %(asctime)s.%(msecs)03d [%(process)d] %(levelname)-5.5s [%(name)s] %(message)s
803 format = %(asctime)s.%(msecs)03d [%(process)d] %(levelname)-5.5s [%(name)s] %(message)s
804 datefmt = %Y-%m-%d %H:%M:%S
804 datefmt = %Y-%m-%d %H:%M:%S
805
805
806 [formatter_color_formatter_sql]
806 [formatter_color_formatter_sql]
807 class = rhodecode.lib.logging_formatter.ColorFormatterSql
807 class = rhodecode.lib.logging_formatter.ColorFormatterSql
808 format = %(asctime)s.%(msecs)03d [%(process)d] %(levelname)-5.5s [%(name)s] %(message)s
808 format = %(asctime)s.%(msecs)03d [%(process)d] %(levelname)-5.5s [%(name)s] %(message)s
809 datefmt = %Y-%m-%d %H:%M:%S
809 datefmt = %Y-%m-%d %H:%M:%S
810
810
811 [formatter_json]
811 [formatter_json]
812 format = %(timestamp)s %(levelname)s %(name)s %(message)s %(req_id)s
812 format = %(timestamp)s %(levelname)s %(name)s %(message)s %(req_id)s
813 class = rhodecode.lib._vendor.jsonlogger.JsonFormatter
813 class = rhodecode.lib._vendor.jsonlogger.JsonFormatter
General Comments 0
You need to be logged in to leave comments. Login now