我正在尝试在实时服务器中使用 https,但发生代理错误。
const https = require('https');
const fs = require('fs');
const options = {
key: fs.readFileSync('test/fixtures/keys/agent2-key.pem'),
cert: fs.readFileSync('test/fixtures/keys/agent2-cert.pem')
};
https.createServer(options, (req, res) => {
res.writeHead(200);
res.end('hello world\n');
}).listen(8000);
代理错误
代理服务器收到来自上游服务器的无效响应。
代理服务器无法处理请求 GET /play。
原因:从远程服务器读取错误