Add nginx rules for Hasura REST api

This commit is contained in:
Gustavo Trott 2023-12-13 10:39:34 -03:00
parent 26921d19dd
commit 204de3f6fe

View File

@ -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
}