You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

103 lines
2.1 KiB

  1. ###
  2. # app configuration
  3. # http://docs.pylonsproject.org/projects/pyramid/en/1.5-branch/narr/environment.html
  4. ###
  5. [app:main]
  6. use = egg:pizzavolus
  7. pyramid.reload_templates = true
  8. pyramid.debug_authorization = false
  9. pyramid.debug_notfound = false
  10. pyramid.debug_routematch = false
  11. pyramid.includes = pyramid_debugtoolbar
  12. sqlalchemy.url = sqlite:///%(here)s/pizzavolus.sqlite
  13. # By default, the toolbar only appears for clients from IP addresses
  14. # '127.0.0.1' and '::1'.
  15. # debugtoolbar.hosts = 127.0.0.1 ::1
  16. # Site name
  17. #app.sitename = PizzaVolus
  18. # Footer text, next to github link
  19. #app.footer_text =
  20. # Default local part regexp
  21. #app.lname_pattern = [a-zA-Z0-9_.-]{3,64}
  22. # Log IP/user-agent for users/addresses
  23. #app.log_user_auth = false
  24. #app.log_address_auth = false
  25. # Log entries displayed on users/addresses pages
  26. #app.user_log_limit = 10
  27. #app.address_log_limit = 5
  28. # Recaptcha site key and secret key, to use hcaptcha on open domains
  29. #app.hcaptcha_site =
  30. #app.hcaptcha_secret =
  31. # Required access level to see logs.
  32. # "address" < "user" < other values (disable log access)
  33. #app.address_log_access = user
  34. #app.user_log_access = user
  35. # URL to use for the webmail link. Not shown if empty.
  36. #app.webmail_link = /rc2/
  37. session.type = file
  38. session.data_dir = %(here)s/.tmp/session_data
  39. session.lock_dir = %(here)s/.tmp/session_lock
  40. session.key = session
  41. [server:main]
  42. use = egg:waitress#main
  43. host = 0.0.0.0
  44. port = 6543
  45. [alembic]
  46. script_location = ./alembic
  47. [loggers]
  48. keys = root, pizzavolus, sqlalchemy
  49. [handlers]
  50. keys = console
  51. [formatters]
  52. keys = generic
  53. [logger_root]
  54. level = INFO
  55. handlers = console
  56. [logger_pizzavolus]
  57. level = DEBUG
  58. handlers =
  59. qualname = pizzavolus
  60. [logger_sqlalchemy]
  61. level = INFO
  62. handlers =
  63. qualname = sqlalchemy.engine
  64. # "level = INFO" logs SQL queries.
  65. # "level = DEBUG" logs SQL queries and results.
  66. # "level = WARN" logs neither. (Recommended for production systems.)
  67. [logger_alembic]
  68. level = INFO
  69. handlers =
  70. qualname = alembic
  71. [handler_console]
  72. class = StreamHandler
  73. args = (sys.stderr,)
  74. level = NOTSET
  75. formatter = generic
  76. [formatter_generic]
  77. format = %(asctime)s %(levelname)-5.5s [%(name)s][%(threadName)s] %(message)s