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