0
我目前正在使用新文物來監視我的網絡應用程序。在我的部署腳本中,我有以下幾種:新文物+ gunicorn + https問題
sudo NEW_RELIC_CONFIG_FILE=/<path to app>/app/config/newrelic.ini newrelic-admin run-program gunicorn 'run:run_app' -b 0.0.0.0:8000 -w3 --certfile=/<path to app>/app/config/server.crt --keyfile=/<path to app>/app/config/server.key --access-logfile log/gunicorn.log
這裏的想法是允許https。本地測試時我能得到的HTTPS
sudo gunicorn 'run:run_app' -b 0.0.0.0:5000 -w3 --certfile=app/config/server.crt --keyfile=app/config/server.key --access-logfile gunicorn.log
工作,調試器顯示
[INFO] Listening at: https://0.0.0.0:5000 (4691)
此案在當地
,並
[INFO] Listening at: http://0.0.0.0:8000 (9094)
在服務器上。
我試過了所有我能想到的,並認爲這必定是New Relic中的一個問題,否定了某些東西?