r-universe-org / help

Support and bug tracker for R-universe
https://docs.r-universe.dev/
8 stars 2 forks source link

Tweak nginx http2 settings #438

Open jeroen opened 1 week ago

jeroen commented 1 week ago

It seems like we get http2 from nginx only if we use --http2-prior-knowledge and not via upgrading with --http2 so:

curl -v --http2-prior-knowledge -H "host: ropensci.r-universe.dev" http://localhost

We should change it such that --http2 also works.

jeroen commented 1 week ago

Hmm perhaps this is expected because we connect to localhost without https? https://stackoverflow.com/a/61784861/318752

jeroen commented 1 week ago

How to trick curl into local https connections:

curl --http2 -vik --resolve ropensci.r-universe.dev:443:127.0.0.1 https://ropensci.r-universe.dev

This way we do get http2, so I think all is OK.