我已成功在我的服务器中安装Sentry,我希望使用HTTPS保证安全。为此,我已配置NGINX但是,我一直收到“页面没有正确重定向”错误。我曾尝试过哨兵所提供的官方指南但到目前为止没有运气。这是我的NGINX配置:
server {
listen 443;
ssl on;
server_name sentry.test.co;
ssl_certificate /etc/letsencrypt/live/sentry.test.co/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/sentry.test.co/privkey.pem;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_prefer_server_ciphers on;
ssl_ciphers AES256+EECDH:AES256+EDH:!aNULL;
location / {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_intercept_errors on;
proxy_pass http://localhost:9000;
}
}
server {
listen 80;
server_name sentry.test.co;
return 301 https://sentry.test.co$request_uri;
}
我错过了什么?