From 204de3f6fe0dc43ffb3235be31023e8c01e44b33 Mon Sep 17 00:00:00 2001 From: Gustavo Trott Date: Wed, 13 Dec 2023 10:39:34 -0300 Subject: [PATCH] Add nginx rules for Hasura REST api --- bbb-graphql-server/graphql.nginx | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/bbb-graphql-server/graphql.nginx b/bbb-graphql-server/graphql.nginx index 959a1f4552..7787d2b973 100644 --- a/bbb-graphql-server/graphql.nginx +++ b/bbb-graphql-server/graphql.nginx @@ -13,3 +13,11 @@ location /v1/graphql { proxy_set_header Host $host; proxy_pass http://127.0.0.1:8080; #Hasura } + +location /api/rest { + proxy_http_version 1.1; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection "Upgrade"; + proxy_set_header Host $host; + proxy_pass http://127.0.0.1:8080; #Hasura +}