warnings.rst 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  1. System Warnings
  2. ===============
  3. Deprecated Settings
  4. -------------------
  5. Beginning with Sentry 8.0 configuration settings have started migrating from
  6. the original ``sentry.conf.py`` over into a new format ``config.yml``. We refer
  7. to the new format as ``SENTRY_OPTIONS``.
  8. For example, ``SENTRY_OPTIONS["system.admin-email"]`` means, put
  9. ``system.admin-email`` into ``config.yml``.
  10. In Sentry 8.3, we have begun deprecating some settings from the old ``sentry.conf.py``
  11. and will soon be only accepting the new values from the new ``config.yml`` file.
  12. Historically, ``SENTRY_CONF`` or ``--config`` was pointed directly to your
  13. ``sentry.conf.py``, such as::
  14. $ SENTRY_CONF=/etc/sentry/sentry.conf.py sentry start
  15. Now, ``SENTRY_CONF`` should be pointed to the parent directory that contains both
  16. the python file and the yaml file. ``sentry init`` will generate the right
  17. structure needed for the future.::
  18. $ SENTRY_CONF=/etc/sentry sentry run web
  19. The following will be a simple mapping of old (``sentry.conf.py``) keys to new
  20. (``config.yml``). Old settings should be completely removed.
  21. General
  22. ~~~~~~~
  23. .. describe:: SENTRY_ADMIN_EMAIL
  24. ::
  25. system.admin-email: 'sentry@example.com'
  26. .. describe:: SENTRY_URL_PREFIX
  27. ::
  28. system.url-prefix: 'http://example.com'
  29. .. describe:: SENTRY_SYSTEM_MAX_EVENTS_PER_MINUTE
  30. ::
  31. system.rate-limit: 10
  32. .. describe:: SECRET_KEY
  33. ::
  34. system.secret-key: 'abc123'
  35. Mail
  36. ~~~~
  37. .. describe:: EMAIL_BACKEND
  38. ::
  39. mail.backend: 'smtp'
  40. .. describe:: EMAIL_HOST
  41. ::
  42. mail.host: 'localhost'
  43. .. describe:: EMAIL_PORT
  44. ::
  45. mail.port: 25
  46. .. describe:: EMAIL_HOST_USER
  47. ::
  48. mail.username: 'sentry'
  49. .. describe:: EMAIL_HOST_PASSWORD
  50. ::
  51. mail.password: 'nobodywillguessthisone'
  52. .. describe:: EMAIL_USE_TLS
  53. ::
  54. mail.use-tls: true
  55. .. describe:: SERVER_EMAIL
  56. ::
  57. mail.from: 'sentry@example.com'
  58. .. describe:: EMAIL_SUBJECT_PREFIX
  59. ::
  60. mail.subject-prefix: '[Sentry] '
  61. .. describe:: SENTRY_ENABLE_EMAIL_REPLIES
  62. ::
  63. mail.enable-replies: true
  64. .. describe:: SENTRY_SMTP_HOSTNAME
  65. ::
  66. mail.reply-hostname: 'inbound.example.com'
  67. .. describe:: MAILGUN_API_KEY
  68. ::
  69. mail.mailgun-api-key: 'abc123'
  70. Redis
  71. ~~~~~
  72. .. describe:: SENTRY_REDIS_OPTIONS
  73. ::
  74. redis.clusters:
  75. default: # cluster name; `default` replaces `SENTRY_REDIS_OPTIONS`
  76. hosts: # options are passed as keyword arguments to `rb.Cluster`
  77. 0:
  78. host: redis-1.example.com
  79. port: 6379
  80. 1:
  81. host: redis-2.example.com
  82. port: 6379