development.ini.base 6.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194
  1. #
  2. # tracim - TurboGears 2 development environment configuration
  3. #
  4. # The %(here)s variable will be replaced with the parent directory of this file
  5. #
  6. # This file is for deployment specific config options -- other configuration
  7. # that is always required for the app is done in the config directory,
  8. # and generally should not be modified by end users.
  9. [DEFAULT]
  10. debug = true
  11. # Uncomment and replace with the address which should receive any error reports
  12. #email_to = you@yourdomain.com
  13. smtp_server = localhost
  14. error_email_from = turbogears@localhost
  15. [server:main]
  16. # Below is the HTTP server to be used. See documentation online if you want to use another server
  17. # http://turbogears.readthedocs.org/en/latest/turbogears/gearbox.html#changing-http-server
  18. use = egg:gearbox#cherrypy
  19. # If you want to access to the instance through the network,
  20. # change host value below to 0.0.0.0 or to the IP address
  21. # you want it to manage (this may be usefull if you have several
  22. # network interfaces)
  23. host = 127.0.0.1
  24. port = 8080
  25. [sa_auth]
  26. cookie_secret = 3283411b-1904-4554-b0e1-883863b53080
  27. [app:main]
  28. use = egg:tracim
  29. full_stack = true
  30. # You can set french as default language by uncommenting next line
  31. # lang = fr
  32. cache_dir = %(here)s/data
  33. beaker.session.key = tracim
  34. beaker.session.secret = 3283411b-1904-4554-b0e1-883863b53080
  35. #By default session is store in cookies to avoid the overhead
  36. #of having to manage a session storage. On production you might
  37. #want to switch to a better session storage.
  38. beaker.session.type = cookie
  39. beaker.session.validate_key = 3283411b-1904-4554-b0e1-883863b53080
  40. # Disable template autoreload to boost performances in production
  41. # WARNING: if you want to deploy your application using a zipped egg
  42. # (ie: if your application's setup.py defines zip-safe=True, then you
  43. # MUST put "false" for the production environment because there will
  44. # be no disk and real files to compare time with.
  45. #auto_reload_templates = false
  46. # If you'd like to fine-tune the individual locations of the cache data dirs
  47. # for the Cache data, or the Session saves, un-comment the desired settings
  48. # here:
  49. #beaker.cache.data_dir = %(here)s/data/cache
  50. #beaker.session.data_dir = %(here)s/data/sessions
  51. # pick the form for your database
  52. # %(here) may include a ':' character on Windows environments; this can
  53. # invalidate the URI when specifying a SQLite db via path name
  54. # sqlalchemy.url=postgresql://username:password@hostname:port/databasename
  55. # sqlalchemy.url=mysql://username:password@hostname:port/databasename
  56. sqlalchemy.url = postgresql://tracim_user:tracim_user_password@127.0.0.1:5432/tracim?client_encoding=utf8
  57. #echo shouldn't be used together with the logging module.
  58. sqlalchemy.echo = false
  59. sqlalchemy.echo_pool = false
  60. sqlalchemy.pool_recycle = 3600
  61. # This line ensures that Genshi will render xhtml when sending the
  62. # output. Change to html or xml, as desired.
  63. templating.genshi.method = xhtml
  64. templating.genshi.doctype = html5
  65. # the compiled template dir is a directory that must be readable and writable
  66. # by your webserver. It will be used to store the resulting templates once
  67. # compiled by the TemplateLookup system.
  68. # During development you generally don't need this option since paste's HTTP
  69. # server will have access to you development directories, but in production
  70. # you'll most certainly want to have apache or nginx to write in a directory
  71. # that does not contain any source code in any form for obvious security
  72. # reasons. If disabled, None, False, or not writable, it will fall back
  73. # to an in-memory cache.
  74. templating.mako.compiled_templates_dir = %(here)s/data/templates
  75. # WARNING: *THE LINE BELOW MUST BE UNCOMMENTED ON A PRODUCTION ENVIRONMENT*
  76. # Debug mode will enable the interactive debugging tool, allowing ANYONE to
  77. # execute malicious code after an exception is raised.
  78. # set debug = false
  79. # Logging configuration
  80. # Add additional loggers, handlers, formatters here
  81. # Uses pythons logging config file format
  82. # http://docs.python.org/lib/logging-config-fileformat.html
  83. #turn this setting to "min" if you would like tw to produce minified
  84. #javascript files (if your library supports that)
  85. toscawidgets.framework.resource_variant=debug
  86. # if you want to setup analytics like piwik or google analytics,
  87. # put the JS tracking code in a file and set its path below
  88. #
  89. # js_tracker_path = analytics.js
  90. # Reset password through email related configuration.
  91. # These emails will be sent through SMTP
  92. #
  93. resetpassword.email_sender = email@sender.com
  94. resetpassword.smtp_host = smtp.sender
  95. resetpassword.smtp_port = 25
  96. resetpassword.smtp_login = smtp.login
  97. resetpassword.smtp_passwd = smtp.password
  98. # The following parameters allow to personalize the home page
  99. # They are html ready (you can put html tags they will be interpreted)
  100. website.title = TRACIM
  101. website.title.color = #555
  102. website.home.subtitle = Default login: admin@admin.admin (password: admin@admin.admin)
  103. website.home.tag_line = <div class="text-center" style="font-weight: bold;">Collaboration, versionning and traceability</div>
  104. website.home.below_login_form = in case of problem, please contact the administrator.
  105. # The following base_url is used for links and icons
  106. # integrated in the email notifcations
  107. website.base_url = http://127.0.0.1:8080
  108. email.notification.activated = False
  109. email.notification.from = Tracim Notification <noreply@trac.im>
  110. email.notification.content_update.template.html = ./tracim/templates/mail/content_update_body_html.mak
  111. email.notification.content_update.template.text = ./tracim/templates/mail/content_update_body_text.mak
  112. # Note: items between { and } are variable names. Do not remove / rename them
  113. email.notification.content_update.subject = [{website_title}] [{workspace_label}] {content_label} ({content_status_label})
  114. # processing_mode may be sync or async
  115. email.notification.processing_mode = sync
  116. email.notification.smtp.server = your_smtp_server
  117. email.notification.smtp.port = 25
  118. email.notification.smtp.user = your_smtp_user
  119. email.notification.smtp.password = your_smtp_password
  120. #####
  121. #
  122. # All configuration below is about logging.
  123. #
  124. [loggers]
  125. keys = root, tracim, sqlalchemy, auth
  126. [handlers]
  127. keys = console
  128. [formatters]
  129. keys = generic
  130. # If you create additional loggers, add them as a key to [loggers]
  131. [logger_root]
  132. level = INFO
  133. handlers = console
  134. [logger_tracim]
  135. level = DEBUG
  136. handlers =
  137. qualname = tracim
  138. [logger_sqlalchemy]
  139. level = WARN
  140. handlers =
  141. qualname = sqlalchemy.engine
  142. # "level = INFO" logs SQL queries.
  143. # "level = DEBUG" logs SQL queries and results.
  144. # "level = WARN" logs neither. (Recommended for production systems.)
  145. # A logger for authentication, identification and authorization
  146. # this is repoze.who:
  147. [logger_auth]
  148. level = WARN
  149. handlers =
  150. qualname = auth
  151. # If you create additional handlers, add them as a key to [handlers]
  152. [handler_console]
  153. class = StreamHandler
  154. args = (sys.stderr,)
  155. level = NOTSET
  156. formatter = generic
  157. # If you create additional formatters, add them as a key to [formatters]
  158. [formatter_generic]
  159. format = %(asctime)s,%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s
  160. datefmt = %H:%M:%S