redbird
redbird copied to clipboard
turn off http2 for some route
hi how can i turn off http2 for some route... i write below code but not work...
var resolver1 = function(host, url, req) {
if(url.indexOf('video')>-1){
this.opts.ssl.http2=false;
return {
url:"https://localhost:3002"
,opts:{ssl:{http2:false}}
}
}
}
resolver1.priority = 100;
var proxy = require('redbird')({
resolvers: [resolver1 ],
port: 80,
cluster:4,
xfwd: false ,
//secure:true,
secure:false,
ssl: {
redirect: true,
http2:true
},
});