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