Advertisement
Guest User

Untitled

a guest
Apr 19th, 2019
321
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. [app:main]
  2. use = egg:kinto
  3.  
  4. kinto.project_name = Kinto DEV
  5. kinto.cache_backend = kinto.core.cache.postgresql
  6. kinto.cache_url = postgres://[censored]/dbname
  7. kinto.storage_backend = kinto.core.storage.postgresql
  8. kinto.storage_url = postgres://[censored]/dbname
  9. kinto.permission_backend = kinto.core.permission.postgresql
  10. kinto.permission_url = postgres://[censored]/dbname
  11. kinto.http_scheme = https
  12. kinto.http_host = kinto.dev.mozaws.net
  13. kinto.eos =
  14. kinto.experimental_collection_schema_validation = true
  15. kinto.experimental_permissions_endpoint = true
  16.  
  17. pyramid.debug_notfound = false
  18. # kinto.backoff = 10
  19. kinto.userid_hmac_secret = [censored]
  20.  
  21. multiauth.policies = account auth0 basicauth portier
  22. multiauth.policy.fxa.use = kinto_fxa.authentication.FxAOAuthAuthenticationPolicy
  23. multiauth.policy.portier.use = kinto_portier.authentication.PortierOAuthAuthenticationPolicy
  24. kinto.includes =
  25.     kinto.plugins.flush
  26.     kinto.plugins.default_bucket
  27.     kinto.plugins.admin
  28.     kinto.plugins.openid
  29.     kinto.plugins.accounts
  30.     kinto.plugins.history
  31.     kinto_attachment
  32.     kinto_changes
  33.     kinto_portier
  34.  
  35. # Accounts
  36. multiauth.policy.account.use = kinto.plugins.accounts.authentication.AccountsAuthenticationPolicy
  37. kinto.account_create_principals = system.Everyone
  38. kinto.account_write_principals = account:admin
  39.  
  40. # Kinto portier
  41. kinto.portier.broker_url = https://broker.portier.io
  42. kinto.portier.cache_ttl_seconds = 300
  43. kinto.portier.session_ttl_seconds = 86400  # Flushed everyday anyway
  44. kinto.portier.webapp.authorized_domains = *.github.io localhost localhost:* *.mozaws.net
  45.  
  46. # Kinto OpenID
  47. multiauth.policy.auth0.use = kinto.plugins.openid.OpenIDConnectPolicy
  48. multiauth.policy.auth0.issuer = https://auth.mozilla.auth0.com
  49. multiauth.policy.auth0.client_id = [censored]
  50. multiauth.policy.auth0.client_secret = [censored]
  51. multiauth.policy.auth0.userid_field = email
  52.  
  53. # Kinto Pusher
  54. # pusher.app_id = 152225
  55. # pusher.key = 01a9feaaf9ebb120d1a6
  56. # pusher.secret = dcb68f22e7a4a5dc5119
  57.  
  58. # Event configuration for kinto-pusher on record
  59. # kinto.event_listeners = pusher changes
  60. # kinto.event_listeners.pusher.use = kinto_pusher.listener
  61. # kinto.event_listeners.pusher.resources = record
  62. # kinto.event_listeners.pusher.channel = {bucket_id}-{collection_id}-{resource_name}
  63.  
  64. # Kinto attachment
  65. kinto.attachment.base_url =
  66. kinto.attachment.extra.base_url = https://kinto.dev.mozaws.net/attachments/
  67. kinto.attachment.base_path = /home/ubuntu/demo/v1/attachments/
  68. kinto.attachment.extensions = images+audio+video+archives bin json gz
  69.  
  70. kinto.changes.resources = /buckets/blocklists /buckets/main
  71.  
  72.  
  73. [uwsgi]
  74. wsgi-file = app.wsgi
  75. enable-threads = true
  76. socket = /run/uwsgi/kinto-latest.sock
  77. chmod-socket = 666
  78. cheaper-algo = busyness
  79. cheaper = 5
  80. cheaper-initial = 9
  81. workers = 14
  82. cheaper-step = 1
  83. cheaper-overload = 30
  84. cheaper-busyness-verbose = true
  85. master = true
  86. module = kinto
  87. harakiri = 120
  88. uid = ubuntu
  89. gid = ubuntu
  90. virtualenv = /home/ubuntu/venvs/kinto35
  91. lazy = true
  92. lazy-apps = true
  93. single-interpreter = true
  94. buffer-size = 65535
  95. post-buffering = 65535
  96. plugins=python35
  97.  
  98. [server:main]
  99. use = egg:waitress#main
  100. host = 0.0.0.0
  101. port = 8888
  102.  
  103. # Begin logging configuration
  104.  
  105. [loggers]
  106. keys = root, kinto
  107. #, sentry
  108.  
  109. [handlers]
  110. keys = console
  111. #, sentry
  112.  
  113. [formatters]
  114. keys = generic
  115.  
  116. [logger_root]
  117. level = DEBUG
  118. handlers = console
  119. #, sentry
  120.  
  121. [logger_kinto]
  122. level = DEBUG
  123. handlers = console
  124. qualname = kinto
  125.  
  126. [handler_console]
  127. class = StreamHandler
  128. args = (sys.stdout,)
  129. level = INFO
  130. formatter = generic
  131.  
  132. [formatter_generic]
  133. format = %(asctime)s,%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s
  134. datefmt = %H:%M:%S
  135.  
  136. [logger_sentry]
  137. level = WARN
  138. handlers = console
  139. qualname = sentry.errors
  140. propagate = 0
  141.  
  142. # [handler_sentry]
  143. # class = raven.handlers.logging.SentryHandler
  144. # args = ('[censored]',)
  145. # level = WARNING
  146. # formatter = generic
  147.  
  148. # End logging configuration
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement