development.ini.base 9.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252
  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. # Auth type (internal or ldap)
  36. auth_type = internal
  37. # If auth_type is ldap, uncomment following ldap_* parameters
  38. # LDAP server address
  39. # ldap_url = ldap://localhost:389
  40. # Base dn to make queries
  41. # ldap_base_dn = dc=directory,dc=fsf,dc=org
  42. # Bind dn to identify the search
  43. # ldap_bind_dn = cn=admin,dc=directory,dc=fsf,dc=org
  44. # The bind password
  45. # ldap_bind_pass = toor
  46. # Attribute name of user record who contain user login (email)
  47. # ldap_ldap_naming_attribute = uid
  48. # Matching between ldap attribute and ldap user field (ldap_attr1=user_field1,ldap_attr2=user_field2,...)
  49. # ldap_user_attributes = mail=email
  50. # TLS usage to communicate with your LDAP server
  51. # ldap_tls = False
  52. # If True, LDAP own tracim group managment (not available for now!)
  53. # ldap_group_enabled = False
  54. #By default session is store in cookies to avoid the overhead
  55. #of having to manage a session storage. On production you might
  56. #want to switch to a better session storage.
  57. beaker.session.type = cookie
  58. beaker.session.validate_key = 3283411b-1904-4554-b0e1-883863b53080
  59. # Disable template autoreload to boost performances in production
  60. # WARNING: if you want to deploy your application using a zipped egg
  61. # (ie: if your application's setup.py defines zip-safe=True, then you
  62. # MUST put "false" for the production environment because there will
  63. # be no disk and real files to compare time with.
  64. #auto_reload_templates = false
  65. # If you'd like to fine-tune the individual locations of the cache data dirs
  66. # for the Cache data, or the Session saves, un-comment the desired settings
  67. # here:
  68. #beaker.cache.data_dir = %(here)s/data/cache
  69. #beaker.session.data_dir = %(here)s/data/sessions
  70. # pick the form for your database
  71. # %(here) may include a ':' character on Windows environments; this can
  72. # invalidate the URI when specifying a SQLite db via path name
  73. # sqlalchemy.url=postgresql://username:password@hostname:port/databasename
  74. # sqlalchemy.url=mysql://username:password@hostname:port/databasename
  75. # sqlalchemy.url = postgresql://tracim_user:tracim_user_password@127.0.0.1:5432/tracim?client_encoding=utf8
  76. sqlalchemy.url = <replace_database_uri_here>
  77. #echo shouldn't be used together with the logging module.
  78. sqlalchemy.echo = false
  79. sqlalchemy.echo_pool = false
  80. sqlalchemy.pool_recycle = 3600
  81. # This line ensures that Genshi will render xhtml when sending the
  82. # output. Change to html or xml, as desired.
  83. templating.genshi.method = xhtml
  84. templating.genshi.doctype = html5
  85. # the compiled template dir is a directory that must be readable and writable
  86. # by your webserver. It will be used to store the resulting templates once
  87. # compiled by the TemplateLookup system.
  88. # During development you generally don't need this option since paste's HTTP
  89. # server will have access to you development directories, but in production
  90. # you'll most certainly want to have apache or nginx to write in a directory
  91. # that does not contain any source code in any form for obvious security
  92. # reasons. If disabled, None, False, or not writable, it will fall back
  93. # to an in-memory cache.
  94. templating.mako.compiled_templates_dir = %(here)s/data/templates
  95. # WARNING: *THE LINE BELOW MUST BE UNCOMMENTED ON A PRODUCTION ENVIRONMENT*
  96. # Debug mode will enable the interactive debugging tool, allowing ANYONE to
  97. # execute malicious code after an exception is raised.
  98. # set debug = false
  99. # Logging configuration
  100. # Add additional loggers, handlers, formatters here
  101. # Uses pythons logging config file format
  102. # http://docs.python.org/lib/logging-config-fileformat.html
  103. #turn this setting to "min" if you would like tw to produce minified
  104. #javascript files (if your library supports that)
  105. toscawidgets.framework.resource_variant=debug
  106. # if you want to setup analytics like piwik or google analytics,
  107. # put the JS tracking code in a file and set its path below
  108. #
  109. # js_tracker_path = analytics.js
  110. # Reset password through email related configuration.
  111. # These emails will be sent through SMTP
  112. #
  113. resetpassword.email_sender = email@sender.com
  114. resetpassword.smtp_host = smtp.sender
  115. resetpassword.smtp_port = 25
  116. resetpassword.smtp_login = smtp.login
  117. resetpassword.smtp_passwd = smtp.password
  118. # Specifies if the update of comments and attached files is allowed (by the owner only).
  119. # Examples:
  120. # 600 means 10 minutes (ie 600 seconds)
  121. # 3600 means 1 hour (60x60 seconds)
  122. #
  123. # Allowed values:
  124. # -1 means that content update is allowed for ever
  125. # 0 means that content update is not allowed
  126. # x means that content update is allowed for x seconds (with x>0)
  127. content.update.allowed.duration = 3600
  128. # The following parameters allow to personalize the home page
  129. # They are html ready (you can put html tags they will be interpreted)
  130. website.title = TRACIM
  131. website.title.color = #555
  132. website.home.subtitle = Default login: admin@admin.admin (password: admin@admin.admin)
  133. website.home.tag_line = <div class="text-center" style="font-weight: bold;">Collaboration, versionning and traceability</div>
  134. website.home.below_login_form = in case of problem, please contact the administrator.
  135. # Values may be 'all' or 'folders'
  136. website.treeview.content = all
  137. # The following base_url is used for links and icons
  138. # integrated in the email notifcations
  139. website.base_url = http://127.0.0.1:8080
  140. # If config not provided, it will be extracted from website.base_url
  141. website.server_name = 127.0.0.1
  142. email.notification.activated = False
  143. email.notification.from = Tracim Notification <noreply@trac.im>
  144. email.notification.content_update.template.html = ./tracim/templates/mail/content_update_body_html.mak
  145. email.notification.content_update.template.text = ./tracim/templates/mail/content_update_body_text.mak
  146. email.notification.created_account.template.html = ./tracim/templates/mail/created_account_body_html.mak
  147. email.notification.created_account.template.text = ./tracim/templates/mail/created_account_body_text.mak
  148. # Note: items between { and } are variable names. Do not remove / rename them
  149. email.notification.content_update.subject = [{website_title}] [{workspace_label}] {content_label} ({content_status_label})
  150. email.notification.created_account.subject = [{website_title}] Created account
  151. # processing_mode may be sync or async
  152. email.notification.processing_mode = sync
  153. email.notification.smtp.server = your_smtp_server
  154. email.notification.smtp.port = 25
  155. email.notification.smtp.user = your_smtp_user
  156. email.notification.smtp.password = your_smtp_password
  157. ## Radical (CalDav server) configuration
  158. # radicale.server.host = 0.0.0.0
  159. # radicale.server.port = 5232
  160. # radicale.server.ssl = false
  161. # radicale.server.filesystem.folder = ~/.config/radicale/collections
  162. # radicale.server.allow_origin = *
  163. # radicale.server.realm_message = Tracim Calendar - Password Required
  164. ## url can be extended like http://127.0.0.1:5232/calendar
  165. ## in this case, you have to create your own proxy behind this url.
  166. # radicale.client.base_url = http://127.0.0.1:5232
  167. #####
  168. #
  169. # All configuration below is about logging.
  170. #
  171. [loggers]
  172. keys = root, tracim, sqlalchemy, auth
  173. [handlers]
  174. keys = console
  175. [formatters]
  176. keys = generic
  177. # If you create additional loggers, add them as a key to [loggers]
  178. [logger_root]
  179. level = INFO
  180. handlers = console
  181. [logger_tracim]
  182. level = DEBUG
  183. handlers =
  184. qualname = tracim
  185. [logger_sqlalchemy]
  186. level = WARN
  187. handlers =
  188. qualname = sqlalchemy.engine
  189. # "level = INFO" logs SQL queries.
  190. # "level = DEBUG" logs SQL queries and results.
  191. # "level = WARN" logs neither. (Recommended for production systems.)
  192. # A logger for authentication, identification and authorization
  193. # this is repoze.who:
  194. [logger_auth]
  195. level = WARN
  196. handlers =
  197. qualname = auth
  198. # If you create additional handlers, add them as a key to [handlers]
  199. [handler_console]
  200. class = StreamHandler
  201. args = (sys.stderr,)
  202. level = NOTSET
  203. formatter = generic
  204. # If you create additional formatters, add them as a key to [formatters]
  205. [formatter_generic]
  206. format = %(asctime)s,%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s
  207. datefmt = %H:%M:%S