初始化服务器
安装docker
git clone https://github.com/getsentry/onpremise.git
cd onpremise/sentry
cp config.example.yml config.yml
cp sentry.conf.example.py sentry.conf.py
vim config.yml
mail.host: 'smtp.mxhichina.com'
# mail.port: 465
mail.port: 587
mail.username: 'online-gworld-sentry@linuxnb.com'
mail.password: 'npTASpqG5UzPtrug'
mail.use-tls: true
# The email address to send on behalf of
mail.from: 'online-gworld-sentry@linuxnb.com'
docker-compose run --rm web config generate-secret-key
./install.sh
过程中会要求创建超级账号
修改了配置文件应用到docker镜像中:
修改config.yal
或者
修改sentry.conf.py,比如添加smtp配置:
复制代码
SENTRY_OPTIONS['mail.backend'] = 'smtp'
SENTRY_OPTIONS['mail.host'] = 'smtp.***.com'
SENTRY_OPTIONS['mail.password'] = '*******'
SENTRY_OPTIONS['mail.username'] = 'sentry@**.com'
SENTRY_OPTIONS['mail.port'] = 25
SENTRY_OPTIONS['mail.use-tls'] = False
复制代码
然后
docker-compose down(关闭删除容器)
docker-compose build (重新编译镜像)
docker-compose up -d (运行)
https://www.manongdao.com/article-1854590.html
https://blog.csdn.net/ypgsh/article/details/104414940
https://www.cnblogs.com/guigujun/p/9140310.html
-
« 上一篇:
mac苹果系统怎么设置l2tp
-
debian10切换源
:下一篇 »