Pārlūkot izejas kodu

Change graphql caddy endpoint, update README

Anuj Bansal 3 gadi atpakaļ
vecāks
revīzija
c5249503a3

+ 4 - 0
devops/infrastructure/query-node/README.md

@@ -66,6 +66,10 @@ After cloning this repo, from this working directory, run these commands:
 
    Run `pulumi up -y` to update the Caddy config
 
+1. You can now access the endpoints using `pulumi stack output endpoint1` or `pulumi stack output endpoint2`
+
+   The GraphQl server is accessible at `https://<ENDPOINT>/server/graphql` and indexer at `https://<ENDPOINT>/indexer/graphql`
+
 1. Access the Kubernetes Cluster using `kubectl`
 
    To access your new Kubernetes cluster using `kubectl`, we need to set up the

+ 2 - 2
devops/infrastructure/query-node/caddy.ts

@@ -63,8 +63,8 @@ export class CaddyServiceDeployment extends pulumi.ComponentResource {
           reverse_proxy query-node:4000
         }
 
-        ${ipAddress}.nip.io/graphql/* {
-          uri strip_prefix /graphql
+        ${ipAddress}.nip.io/server/* {
+          uri strip_prefix /server
           reverse_proxy query-node:8081
         }
         `