deployment.ini_tmpl 2.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. #
  2. # pod - TurboGears 2 production environment configuration
  3. #
  4. # The %(here)s variable will be replaced with the parent directory of this file
  5. #
  6. [DEFAULT]
  7. # WARGING == If debug is not set to false, you'll get the interactive
  8. # debugger on production, which is a huge security hole.
  9. debug = false
  10. email_to = you@yourdomain.com
  11. smtp_server = localhost
  12. error_email_from = turbogears@localhost
  13. [server:main]
  14. use = egg:gearbox#wsgiref
  15. host = 0.0.0.0
  16. port = 8080
  17. [sa_auth]
  18. cookie_secret = ${app_instance_secret}
  19. [app:main]
  20. use = egg:pod
  21. full_stack = true
  22. cache_dir = %(here)s/data
  23. beaker.session.key = pod
  24. beaker.session.secret = ${app_instance_secret}
  25. app_instance_uuid = ${app_instance_uuid}
  26. # If you'd like to fine-tune the individual locations of the cache data dirs
  27. # for the Cache data, or the Session saves, un-comment the desired settings
  28. # here:
  29. #beaker.cache.data_dir = %(here)s/data/cache
  30. #beaker.session.data_dir = %(here)s/data/sessions
  31. # Specify the database for SQLAlchemy to use via
  32. # turbogears.database
  33. # %(here) may include a ':' character on Windows environments; this can
  34. # invalidate the URI when specifying a SQLite db via path name
  35. sqlalchemy.url = sqlite:///%(here)s/somedb.db
  36. sqlalchemy.echo = False
  37. # This line ensures that Genshi will render xhtml when sending the
  38. # output. Change to html or xml, as desired.
  39. templating.genshi.method = xhtml
  40. # WARNING: *THE LINE BELOW MUST BE UNCOMMENTED ON A PRODUCTION ENVIRONMENT*
  41. # Debug mode will enable the interactive debugging tool, allowing ANYONE to
  42. # execute malicious code after an exception is raised.
  43. #set debug = false
  44. # Logging configuration
  45. # Add additional loggers, handlers, formatters here
  46. # Uses python's logging config file format
  47. # http://docs.python.org/lib/logging-config-fileformat.html
  48. [loggers]
  49. keys = root, pod, sqlalchemy, auth
  50. [handlers]
  51. keys = console
  52. [formatters]
  53. keys = generic
  54. # If you create additional loggers, add them as a key to [loggers]
  55. [logger_root]
  56. level = INFO
  57. handlers = console
  58. [logger_pod]
  59. level = INFO
  60. handlers =
  61. qualname = pod
  62. [logger_sqlalchemy]
  63. level = WARN
  64. handlers =
  65. qualname = sqlalchemy.engine
  66. # "level = INFO" logs SQL queries.
  67. # "level = DEBUG" logs SQL queries and results.
  68. # "level = WARN" logs neither. (Recommended for production systems.)
  69. # A logger for authentication, identification and authorization
  70. # This is repoze.who:
  71. [logger_auth]
  72. level = WARN
  73. handlers =
  74. qualname = auth
  75. # If you create additional handlers, add them as a key to [handlers]
  76. [handler_console]
  77. class = StreamHandler
  78. args = (sys.stderr,)
  79. level = NOTSET
  80. formatter = generic
  81. # If you create additional formatters, add them as a key to [formatters]
  82. [formatter_generic]
  83. format = %(asctime)s,%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s
  84. datefmt = %Y-%m-%d %H:%M:%S