sentry.conf.py 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. # flake8: noqa
  2. from sentry.conf.server import *
  3. import os
  4. import getpass
  5. SENTRY_APIDOCS_REDIS_PORT = 12355
  6. SENTRY_APIDOCS_WEB_PORT = 12356
  7. SENTRY_URL_PREFIX = 'https://sentry.io'
  8. # Unsupported here
  9. SENTRY_SINGLE_ORGANIZATION = False
  10. DEBUG = True
  11. CONF_ROOT = os.path.dirname(__file__)
  12. DATABASES = {
  13. 'default': {
  14. 'ENGINE': 'django.db.backends.sqlite3',
  15. 'NAME': '/tmp/sentry_apidocs.db',
  16. }
  17. }
  18. SENTRY_USE_BIG_INTS = True
  19. SENTRY_CACHE = 'sentry.cache.redis.RedisCache'
  20. CELERY_ALWAYS_EAGER = True
  21. BROKER_URL = 'redis://localhost:%s' % SENTRY_APIDOCS_REDIS_PORT
  22. SENTRY_RATELIMITER = 'sentry.ratelimits.redis.RedisRateLimiter'
  23. SENTRY_BUFFER = 'sentry.buffer.redis.RedisBuffer'
  24. SENTRY_QUOTAS = 'sentry.quotas.redis.RedisQuota'
  25. SENTRY_TSDB = 'sentry.tsdb.redis.RedisTSDB'
  26. LOGIN_REDIRECT_URL = SENTRY_URL_PREFIX + '/'
  27. SENTRY_WEB_HOST = '127.0.0.1'
  28. SENTRY_WEB_PORT = SENTRY_APIDOCS_WEB_PORT
  29. SENTRY_WEB_OPTIONS = {
  30. 'workers': 2,
  31. 'limit_request_line': 0,
  32. 'secure_scheme_headers': {'X-FORWARDED-PROTO': 'https'},
  33. }
  34. SENTRY_OPTIONS.update({
  35. 'redis.clusters': {
  36. 'default': {
  37. 'hosts': {i: {'port': SENTRY_APIDOCS_REDIS_PORT} for i in range(0, 4)},
  38. },
  39. },
  40. 'system.secret-key': 'super secret secret key',
  41. 'system.admin-email': 'admin@sentry.io',
  42. 'system.url-prefix': SENTRY_URL_PREFIX,
  43. 'mail.backend': 'django.core.mail.backends.smtp.EmailBackend',
  44. 'mail.host': 'localhost',
  45. 'mail.password': '',
  46. 'mail.username': '',
  47. 'mail.port': 25,
  48. 'mail.use-tls': False,
  49. 'mail.from': 'sentry@sentry.io',
  50. 'filestore.backend': 'filesystem',
  51. 'filestore.options': {'location': '/tmp/sentry-files'},
  52. })
  53. # Enable feature flags so sample responses generate.
  54. SENTRY_FEATURES['projects:servicehooks'] = True