当前位置: 代码迷 >> 综合 >> sentry 环境安装
  详细解决方案

sentry 环境安装

热度:66   发布时间:2023-12-21 16:04:28.0

安装

pip install sentry

 

 

启动

sentry --config=/home/admin/jyp/sentry.conf.py createsuperuser
nohup sentry --config=/home/admin/jyp/sentry.conf.py start &

 

配置

ALLOWED_HOSTS=['*']
DATABASES = {'default': {'ENGINE': 'django.db.backends.mysql','NAME': 'sentry',#'NAME': os.path.join(CONF_ROOT, 'sentry.db'),'USER': 'root','PASSWORD': '','HOST': '10.125.48.147','PORT': '3306',}
}SENTRY_URL_PREFIX=""
SENTRY_ALLOW_REGISTRATION = True
SENTRY_PUBLIC = TrueSENTRY_WEB_HOST = '0.0.0.0'
SENTRY_WEB_PORT = 9000
SENTRY_WEB_OPTIONS = {'workers': 3,  # the number of gunicorn workers'secure_scheme_headers': {'X-FORWARDED-PROTO': 'https'},  # detect HTTPS mode from X-Forwarded-Proto header
}