Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

turn off http2 for some route #278

Open
RezaErfani67 opened this issue Feb 24, 2022 · 0 comments
Open

turn off http2 for some route #278

RezaErfani67 opened this issue Feb 24, 2022 · 0 comments

Comments

@RezaErfani67
Copy link

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
    },
});
	
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants