hasura / graphql-engine

Blazing fast, instant realtime GraphQL APIs on your DB with fine grained access control, also trigger webhooks on database events.
https://hasura.io
Apache License 2.0
31.19k stars 2.77k forks source link

caddyv2 fails to forward websockets with current docs #4756

Open thebetterjort opened 4 years ago

thebetterjort commented 4 years ago

The current https config file in the docs is not valid for caddyv2. How to make hasura work over https using caddyv2?

localhost  {
  reverse_proxy http://dev.shop.yak:8080 {
}
}

reverse_proxy @websockets dev.shop.yak:8080
tirumaraiselvan commented 4 years ago

Hi @thebetterjort

As per this: https://caddyserver.com/docs/v2-upgrade#proxy

Websocket proxying "just works" in v2; there is no need to "enable" websockets like in v1.

The docs for caddy 2 have also been added in https://github.com/hasura/graphql-engine/pull/4710/