development.ini.sample 9.6KB

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