development.ini.base 11KB

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