sentry 环境安装

安装

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 = True

SENTRY_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
}

猜你喜欢

转载自san-yun.iteye.com/blog/2109258