Browse Source

playground caddyfile workaround for graphql playground

Mokhtar Naamani 3 years ago
parent
commit
b9294a2c6f
1 changed files with 5 additions and 0 deletions
  1. 5 0
      devops/aws/templates/Playground-Caddyfile.j2

+ 5 - 0
devops/aws/templates/Playground-Caddyfile.j2

@@ -23,6 +23,11 @@
     reverse_proxy localhost:3334
     reverse_proxy localhost:3334
 }
 }
 
 
+# newer versions of graphql-server seems to expect this url also
+{{ nip_domain }}/@apollographql/* {
+    reverse_proxy localhost:8081
+}
+
 {{ nip_domain }}/query-node/server* {
 {{ nip_domain }}/query-node/server* {
     uri strip_prefix /query-node/server
     uri strip_prefix /query-node/server
     reverse_proxy localhost:8081
     reverse_proxy localhost:8081