index.rst 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202
  1. Configuration
  2. =============
  3. This document describes additional configuration options available to the Sentry server. If you are looking for documentation for the client, it is maintained in the `Raven <http://github.com/getsentry/raven-python>`_ project.
  4. .. data:: SENTRY_URL_PREFIX
  5. :noindex:
  6. Absolute URL to the sentry root directory. Should not include a trailing slash.
  7. Defaults to ``""``.
  8. ::
  9. SENTRY_URL_PREFIX = 'http://sentry.example.com'
  10. Authentication
  11. --------------
  12. .. data:: SENTRY_ALLOW_REGISTRATION
  13. :noindex:
  14. Should Sentry allow users to create new accounts?
  15. Defaults to ``True`` (can register).
  16. ::
  17. SENTRY_ALLOW_REGISTRATION = False
  18. .. data:: SENTRY_PUBLIC
  19. :noindex:
  20. Should Sentry make all data publicly accessible? This should **only** be
  21. used if you're installing Sentry behind your company's firewall.
  22. Users will still need to have an account to view any data.
  23. Defaults to ``False``.
  24. ::
  25. SENTRY_PUBLIC = True
  26. .. data:: SENTRY_ALLOW_PROJECT_CREATION
  27. :noindex:
  28. Should Sentry allow users without the 'sentry.add_project' permission to
  29. create new projects?
  30. Defaults to ``False`` (require permission).
  31. ::
  32. SENTRY_ALLOW_PROJECT_CREATION = True
  33. .. data:: SENTRY_ALLOW_TEAM_CREATION
  34. :noindex:
  35. Should Sentry allow users without the 'sentry.add_team' permission to
  36. create new teams?
  37. Defaults to ``True`` (require permission).
  38. ::
  39. SENTRY_ALLOW_TEAM_CREATION = False
  40. .. data:: SENTRY_ALLOW_PUBLIC_PROJECTS
  41. :noindex:
  42. Should Sentry allow users without the 'sentry.change_project' permission to
  43. make projects globally public?
  44. Defaults to ``True`` (can set public status).
  45. ::
  46. SENTRY_ALLOW_PUBLIC_PROJECTS = False
  47. .. data:: SENTRY_ALLOW_ORIGIN
  48. :noindex:
  49. If provided, Sentry will set the Access-Control-Allow-Origin header to this
  50. value on /api/store/ responses. In addition, the
  51. Access-Control-Allow-Headers header will be set to 'X-Sentry-Auth'. This
  52. allows JavaScript clients to submit cross-domain error reports.
  53. You can read more about these headers in the `Mozilla developer docs`_.
  54. Defaults to ``None`` (don't add the Access-Control headers)
  55. ::
  56. SENTRY_ALLOW_ORIGIN = "http://foo.example"
  57. .. _Mozilla developer docs: https://developer.mozilla.org/En/HTTP_access_control#Simple_requests
  58. Services
  59. --------
  60. Web Server
  61. ~~~~~~~~~~
  62. The following settings are available for the built-in webserver:
  63. .. data:: SENTRY_WEB_HOST
  64. :noindex:
  65. The hostname which the webserver should bind to.
  66. Defaults to ``localhost``.
  67. ::
  68. SENTRY_WEB_HOST = '0.0.0.0' # bind to all addresses
  69. .. data:: SENTRY_WEB_PORT
  70. :noindex:
  71. The port which the webserver should listen on.
  72. Defaults to ``9000``.
  73. ::
  74. SENTRY_WEB_PORT = 9000
  75. .. data:: SENTRY_WEB_OPTIONS
  76. :noindex:
  77. A dictionary of additional configuration options to pass to gunicorn.
  78. Defaults to ``{}``.
  79. ::
  80. SENTRY_WEB_OPTIONS = {
  81. 'workers': 10,
  82. 'worker_class': 'gevent',
  83. }
  84. .. _config-udp-server:
  85. UDP Server
  86. ~~~~~~~~~~
  87. The following settings are available for the built-in UDP API server:
  88. .. data:: SENTRY_UDP_HOST
  89. :noindex:
  90. The hostname which the udp server should bind to.
  91. Defaults to ``localhost``.
  92. ::
  93. SENTRY_UDP_HOST = '0.0.0.0' # bind to all addresses
  94. .. data:: SENTRY_UDP_PORT
  95. :noindex:
  96. The port which the udp server should listen on.
  97. Defaults to ``9001``.
  98. ::
  99. SENTRY_UDP_PORT = 9001
  100. Data Sampling
  101. -------------
  102. .. data:: SENTRY_SAMPLE_DATA
  103. :noindex:
  104. .. versionadded:: 1.10.0
  105. Controls sampling of data.
  106. Defaults to ``True``.
  107. If this is enabled, data will be sampled in a manner similar to the following:
  108. * 50 messages stores ~50 results
  109. * 1000 messages stores ~400 results
  110. * 10000 messages stores ~900 results
  111. * 100000 messages stores ~1800 results
  112. * 1000000 messages stores ~3600 results
  113. * 10000000 messages stores ~4500 results
  114. ::
  115. SENTRY_SAMPLE_DATA = False