development.ini.sample 8.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259
  1. ###
  2. # app configuration
  3. # https://docs.pylonsproject.org/projects/pyramid/en/latest/narr/environment.html
  4. ###
  5. [app:main]
  6. use = egg:tracim_backend
  7. pyramid.reload_templates = true
  8. pyramid.debug_authorization = false
  9. pyramid.debug_notfound = false
  10. pyramid.debug_routematch = false
  11. pyramid.default_locale_name = en
  12. pyramid.includes =
  13. pyramid_debugtoolbar
  14. sqlalchemy.url = sqlite:///%(here)s/tracim.sqlite
  15. retry.attempts = 3
  16. # By default, the toolbar only appears for clients from IP addresses
  17. # '127.0.0.1' and '::1'.
  18. # debugtoolbar.hosts = 127.0.0.1 ::1
  19. ###
  20. # TRACIM SPECIFIC CONF
  21. ###
  22. ### Global
  23. cache_dir = %(here)s/data
  24. # preview generator cache directory
  25. preview_cache_dir = /tmp/tracim/preview/
  26. # file depot storage
  27. depot_storage_name = tracim
  28. depot_storage_dir = %(here)s/depot/
  29. # The following parameters allow to personalize the home page
  30. # They are html ready (you can put html tags they will be interpreted)
  31. website.title = TRACIM
  32. website.title.color = #555
  33. website.home.subtitle = Default login: email: admin@admin.admin (password: admin@admin.admin)
  34. website.home.tag_line = <div class="text-center" style="font-weight: bold;">Collaboration, versionning and traceability</div>
  35. website.home.below_login_form = in case of problem, please contact the administrator.
  36. # Values may be 'all' or 'folders'
  37. website.treeview.content = all
  38. # The following base_url is used for links and icons
  39. # integrated in the email notifcations
  40. website.base_url = http://127.0.0.1:8080
  41. # If config not provided, it will be extracted from website.base_url
  42. website.server_name = 127.0.0.1
  43. # Specifies if the update of comments and attached files is allowed (by the owner only).
  44. # Examples:
  45. # 600 means 10 minutes (ie 600 seconds)
  46. # 3600 means 1 hour (60x60 seconds)
  47. #
  48. # Allowed values:
  49. # -1 means that content update is allowed for ever
  50. # 0 means that content update is not allowed
  51. # x means that content update is allowed for x seconds (with x>0)
  52. content.update.allowed.duration = 3600
  53. # Auth type (internal or ldap)
  54. auth_type = internal
  55. # If auth_type is ldap, uncomment following ldap_* parameters
  56. # LDAP server address
  57. # ldap_url = ldap://localhost:389
  58. # Base dn to make queries
  59. # ldap_base_dn = dc=directory,dc=fsf,dc=org
  60. # Bind dn to identify the search
  61. # ldap_bind_dn = cn=admin,dc=directory,dc=fsf,dc=org
  62. # The bind password
  63. # ldap_bind_pass = toor
  64. # Attribute name of user record who contain user login (email)
  65. # ldap_ldap_naming_attribute = uid
  66. # Matching between ldap attribute and ldap user field (ldap_attr1=user_field1,ldap_attr2=user_field2,...)
  67. # ldap_user_attributes = mail=email
  68. # TLS usage to communicate with your LDAP server
  69. # ldap_tls = False
  70. # If True, LDAP own tracim group managment (not available for now!)
  71. # ldap_group_enabled = False
  72. # User auth token validity in seconds (used to interfaces like web calendars)
  73. user.auth_token.validity = 604800
  74. ### Mail
  75. # Reset password through email related configuration.
  76. # These emails will be sent through SMTP
  77. #
  78. resetpassword.email_sender = email@sender.com
  79. resetpassword.smtp_host = smtp.sender
  80. resetpassword.smtp_port = 25
  81. resetpassword.smtp_login = smtp.login
  82. resetpassword.smtp_passwd = smtp.password
  83. email.notification.activated = False
  84. # email.notification.log_file_path = /tmp/mail-notifications.log
  85. # email notifications can be sent with the user_id added as an identifier
  86. # this way email clients like Thunderbird will be able to distinguish
  87. # notifications generated by a user or another one
  88. email.notification.from.email = noreply+{user_id}@trac.im
  89. email.notification.from.default_label = Tracim Notifications
  90. email.notification.reply_to.email = reply+{content_id}@trac.im
  91. email.notification.references.email = thread+{content_id}@trac.im
  92. email.notification.content_update.template.html = %(here)s/tracim/templates/mail/content_update_body_html.mak
  93. email.notification.content_update.template.text = %(here)s/tracim/templates/mail/content_update_body_text.mak
  94. email.notification.created_account.template.html = %(here)s/tracim/templates/mail/created_account_body_html.mak
  95. email.notification.created_account.template.text = %(here)s/tracim/templates/mail/created_account_body_text.mak
  96. # Note: items between { and } are variable names. Do not remove / rename them
  97. email.notification.content_update.subject = [{website_title}] [{workspace_label}] {content_label} ({content_status_label})
  98. email.notification.created_account.subject = [{website_title}] Created account
  99. # processing_mode may be sync or async
  100. email.notification.processing_mode = sync
  101. email.notification.smtp.server = your_smtp_server
  102. email.notification.smtp.port = 25
  103. email.notification.smtp.user = your_smtp_user
  104. email.notification.smtp.password = your_smtp_password
  105. ## Email sending configuration
  106. # processing_mode may be sync or async,
  107. # with async, please configure redis below
  108. email.processing_mode = sync
  109. # email.async.redis.host = localhost
  110. # email.async.redis.port = 6379
  111. # email.async.redis.db = 0
  112. # Email reply configuration
  113. email.reply.activated = False
  114. email.reply.imap.server = your_imap_server
  115. email.reply.imap.port = 993
  116. email.reply.imap.user = your_imap_user
  117. email.reply.imap.password = your_imap_password
  118. email.reply.imap.folder = INBOX
  119. email.reply.imap.use_ssl = true
  120. email.reply.imap.use_idle = true
  121. # Re-new connection each 10 minutes
  122. email.reply.connection.max_lifetime = 600
  123. # Token for communication between mail fetcher and tracim controller
  124. email.reply.token = mysecuretoken
  125. # Delay in seconds between each check
  126. email.reply.check.heartbeat = 60
  127. email.reply.use_html_parsing = true
  128. email.reply.use_txt_parsing = true
  129. # Lockfile path is required for email_reply feature,
  130. # it's just an empty file use to prevent concurrent access to imap unseen mail
  131. email.reply.lockfile_path = %(here)s/email_fetcher.lock
  132. ### Radical (CalDav server) configuration
  133. # radicale.server.host = 0.0.0.0
  134. # radicale.server.port = 5232
  135. # radicale.server.ssl = false
  136. radicale.server.filesystem.folder = %(here)s/radicale/collections/
  137. # radicale.server.allow_origin = *
  138. # radicale.server.realm_message = Tracim Calendar - Password Required
  139. ## url can be extended like http://127.0.0.1:5232/calendar
  140. ## in this case, you have to create your own proxy behind this url.
  141. ## and update following parameters
  142. # radicale.client.base_url.host = http://127.0.0.1:5232
  143. # radicale.client.base_url.prefix = /
  144. ### WSGIDAV
  145. wsgidav.config_path = %(here)s/wsgidav.conf
  146. ## url can be extended like 127.0.0.1/webdav
  147. ## in this case, you have to create your own proxy behind this url.
  148. ## Do not set http:// prefix.
  149. # wsgidav.client.base_url = 127.0.0.1:<WSGIDAV_PORT>
  150. ###
  151. # wsgi server configuration
  152. ###
  153. [server:main]
  154. use = egg:waitress#main
  155. listen = localhost:6543
  156. [alembic]
  157. # path to migration scripts
  158. script_location = tracim/migration
  159. # template used to generate migration files
  160. # file_template = %%(rev)s_%%(slug)s
  161. # timezone to use when rendering the date
  162. # within the migration file as well as the filename.
  163. # string value is passed to dateutil.tz.gettz()
  164. # leave blank for localtime
  165. # timezone =
  166. # max length of characters to apply to the
  167. # "slug" field
  168. #truncate_slug_length = 40
  169. # set to 'true' to run the environment during
  170. # the 'revision' command, regardless of autogenerate
  171. # revision_environment = false
  172. # set to 'true' to allow .pyc and .pyo files without
  173. # a source .py file to be detected as revisions in the
  174. # versions/ directory
  175. # sourceless = false
  176. # version location specification; this defaults
  177. # to migrate/versions. When using multiple version
  178. # directories, initial revisions must be specified with --version-path
  179. # version_locations = %(here)s/bar %(here)s/bat migrate/versions
  180. # the output encoding used when revision files
  181. # are written from script.py.mako
  182. # output_encoding = utf-8
  183. sqlalchemy.url = sqlite:///%(here)s/tracim.sqlite
  184. ###
  185. # logging configuration
  186. # https://docs.pylonsproject.org/projects/pyramid/en/latest/narr/logging.html
  187. ###
  188. [loggers]
  189. keys = root, tracim, sqlalchemy, alembic
  190. [handlers]
  191. keys = console
  192. [formatters]
  193. keys = generic
  194. [logger_root]
  195. level = INFO
  196. handlers = console
  197. [logger_tracim]
  198. level = DEBUG
  199. handlers =
  200. qualname = tracim
  201. [logger_sqlalchemy]
  202. level = INFO
  203. handlers =
  204. qualname = sqlalchemy.engine
  205. # "level = INFO" logs SQL queries.
  206. # "level = DEBUG" logs SQL queries and results.
  207. # "level = WARN" logs neither. (Recommended for production systems.)
  208. [logger_alembic]
  209. level = INFO
  210. handlers =
  211. qualname = alembic
  212. [handler_console]
  213. class = StreamHandler
  214. args = (sys.stderr,)
  215. level = NOTSET
  216. formatter = generic
  217. [formatter_generic]
  218. format = %(asctime)s %(levelname)-5.5s [%(name)s:%(lineno)s][%(threadName)s] %(message)s
  219. datefmt = %H:%M:%S