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