development.ini.old 8.5KB

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