development.ini.oloool 8.9KB

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