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