development.ini.base 10KB

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