【发布时间】:2020-10-05 18:35:52
【问题描述】:
我正在使用这个烧瓶分析器
https://github.com/muatik/flask-profiler
在本地,它可以与一个简单的烧瓶应用程序一起正常工作,但是,当我在使用 NGINX 作为反向代理的服务器上运行它时,它会工作几分钟然后返回
Segmentation fault (core dumped)
我使用的是默认配置
# You need to declare necessary configuration to initialize
# flask-profiler as follows:
app.config["flask_profiler"] = {
"enabled": app.config["DEBUG"],
"storage": {
"engine": "sqlite"
},
"basicAuth":{
"enabled": True,
"username": "admin",
"password": "admin"
},
"ignore": [
"^/static/.*"
]
}
我 90% 确定这是由反向代理引起的,因为这是唯一发生变化的事情。我找到了这个https://github.com/muatik/flask-profiler/issues/65,但即使设置了正确的路径也没有运气。
【问题讨论】: