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