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