comparison development.ini @ 6576:b4c27fe6438c

TurboGears2 migration: update ini files for error email settings Error emails are now handled by backlash, which is configured through TurboGears2's ErrorReporter. ErrorReporter expects different configuration key names than Pylons did, moreover under a new 'trace_errors' namespace. Since some of the email-related settings are shared between application and error emails, we cannot just rename the existing settings (it would be very odd to have application settings under a 'trace_errors' namespace). Requiring the user to duplicate its settings is also undesirable. Instead, use 'get' to populate the trace_errors namespace based on the existing settings we already had. Unfortunately, 'get' expects the setting to be actually present, so we need to provide an out-of-the-box value for the error-related email settings or there will be an error at startup. We use empty values because there is no realistic default value we can provide.
author Thomas De Schampheleire <thomas.de.schampheleire@gmail.com>
date Tue, 04 Apr 2017 22:23:20 +0200
parents fc6b1b0e1096
children 5b3568c99cc3
comparison
equal deleted inserted replaced
6575:9eae297d3d5b 6576:b4c27fe6438c
42 ## Default: 42 ## Default:
43 #email_to = 43 #email_to =
44 ## Examples: 44 ## Examples:
45 #email_to = admin@example.com 45 #email_to = admin@example.com
46 #email_to = admin@example.com another_admin@example.com 46 #email_to = admin@example.com another_admin@example.com
47 email_to =
47 48
48 ## 'From' header for error emails. You can optionally add a name. 49 ## 'From' header for error emails. You can optionally add a name.
49 ## Default: 50 ## Default: (none)
50 #error_email_from = pylons@yourapp.com
51 ## Examples: 51 ## Examples:
52 #error_email_from = Kallithea Errors <kallithea-noreply@example.com> 52 #error_email_from = Kallithea Errors <kallithea-noreply@example.com>
53 #error_email_from = paste_error@example.com 53 #error_email_from = kallithea_errors@example.com
54 error_email_from =
54 55
55 ## SMTP server settings 56 ## SMTP server settings
56 ## If specifying credentials, make sure to use secure connections. 57 ## If specifying credentials, make sure to use secure connections.
57 ## Default: Send unencrypted unauthenticated mails to the specified smtp_server. 58 ## Default: Send unencrypted unauthenticated mails to the specified smtp_server.
58 ## For "SSL", use smtp_use_ssl = true and smtp_port = 465. 59 ## For "SSL", use smtp_use_ssl = true and smtp_port = 465.
59 ## For "STARTTLS", use smtp_use_tls = true and smtp_port = 587. 60 ## For "STARTTLS", use smtp_use_tls = true and smtp_port = 587.
60 #smtp_server = smtp.example.com 61 smtp_server =
61 #smtp_username = 62 #smtp_username =
62 #smtp_password = 63 #smtp_password =
63 #smtp_port = 25 64 smtp_port =
64 #smtp_use_ssl = false 65 #smtp_use_ssl = false
65 #smtp_use_tls = false 66 #smtp_use_tls = false
66 67
67 [server:main] 68 [server:main]
68 ## Gearbox default web server ## 69 ## Gearbox default web server ##
389 390
390 ############################ 391 ############################
391 ## ERROR HANDLING SYSTEMS ## 392 ## ERROR HANDLING SYSTEMS ##
392 ############################ 393 ############################
393 394
395 # Propagate email settings to ErrorReporter of TurboGears2
396 # You do not normally need to change these lines
397 get trace_errors.error_email = email_to
398 get trace_errors.smtp_server = smtp_server
399 get trace_errors.smtp_port = smtp_port
400 get trace_errors.from_address = error_email_from
401
394 #################### 402 ####################
395 ### [appenlight] ### 403 ### [appenlight] ###
396 #################### 404 ####################
397 405
398 ## AppEnlight is tailored to work with Kallithea, see 406 ## AppEnlight is tailored to work with Kallithea, see