Mercurial > kallithea
diff kallithea/lib/paster_commands/template.ini.mako @ 8358:4869a8bb1237
ini: tweak template configuration for TG's handling of application errors
Mention what was learned while debugging request processing at WSGI/TG level
and the complexity of the TG stack gets in the way.
author | Mads Kiilerich <mads@kiilerich.com> |
---|---|
date | Wed, 22 Apr 2020 20:47:02 +0200 |
parents | 269ba8809002 |
children | 23a70b7b91bf |
line wrap: on
line diff
--- a/kallithea/lib/paster_commands/template.ini.mako Wed Apr 22 20:53:22 2020 +0200 +++ b/kallithea/lib/paster_commands/template.ini.mako Wed Apr 22 20:47:02 2020 +0200 @@ -391,9 +391,21 @@ #session.sa.url = postgresql://postgres:qwe@localhost/kallithea #session.table_name = db_session -<%text>############################</%text> -<%text>## ERROR HANDLING SYSTEMS ##</%text> -<%text>############################</%text> +<%text>####################################</%text> +<%text>### ERROR HANDLING ####</%text> +<%text>####################################</%text> + +<%text>## Show a nice error page for application HTTP errors and exceptions (default true)</%text> +#errorpage.enabled = true + +<%text>## Enable Backlash client-side interactive debugger (default false)</%text> +<%text>## WARNING: *THIS MUST BE false IN PRODUCTION ENVIRONMENTS!!!*</%text> +<%text>## This debug mode will allow all visitors to execute malicious code.</%text> +#debug = false + +<%text>## Enable Backlash server-side error reporting (unless debug mode handles it client-side) (default true)</%text> +#trace_errors.enable = true +<%text>## Errors will be reported by mail if trace_errors.error_email is set.</%text> <%text>## Propagate email settings to ErrorReporter of TurboGears2</%text> <%text>## You do not normally need to change these lines</%text> @@ -481,12 +493,6 @@ sentry.exclude_paths = %endif -<%text>################################################################################</%text> -<%text>## WARNING: *DEBUG MODE MUST BE OFF IN A PRODUCTION ENVIRONMENT* ##</%text> -<%text>## Debug mode will enable the interactive debugging tool, allowing ANYONE to ##</%text> -<%text>## execute malicious code after an exception is raised. ##</%text> -<%text>################################################################################</%text> -debug = false <%text>##################################</%text> <%text>### LOGVIEW CONFIG ###</%text>