With proxy_pass
in nginx I can use either:
proxy_pass http://backend; proxy_pass https://backend;
the question is: What protocols can I use? In particular I'd like to use HTTP-2 over cleartext (h2c). Is this possible? Is there a list of protocols I can use with proxy_pass
?
2 Answers
Answers 1
Only http and https are permitted, as specified in the docs. Nginx does not support http2 when acting as a proxy.
Instead, you can use nghttp2 which does support http2 over cleartext (with the option proto=ht
to the --backend
argument).
Answers 2
According to the source it only allows http
and https
protocols.
0 comments:
Post a Comment