development.ini.base 10KB

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