Files
graphql-engine/community/learn/graphql-tutorials/manifests/caddy-config.yaml
Anon Ray a21f6cd648 introduce v1/graphql (fix #1368) (#2064)
Changes compared to `/v1alpha1/graphql`

* Changed all graphql responses in **/v1/graphql** endpoint to be 200. All graphql clients expect responses to be HTTP 200. Non-200 responses are considered transport layer errors. 

* Errors in http and websocket layer are now consistent and have similar structure.
2019-05-10 11:35:10 +05:30

52 lines
1.1 KiB
YAML

apiVersion: v1
kind: ConfigMap
metadata:
name: caddy-config
namespace: default
data:
Caddyfile: |
learn.hasura.io {
redir 301 {
/graphql/react/boilerplate.zip https://storage.googleapis.com/graphql-engine-cdn.hasura.io/learn-hasura/react-boilerplate/boilerplate.zip
}
redir 301 {
/graphql/react/ /graphql/react/introduction
}
redir 302 {
if {path} is /
/ /graphql/react/introduction
}
# proxy / homepage
proxy /graphql/console hasura/console {
without /graphql/console
}
proxy /graphql/v1/graphql hasura/v1/graphql {
without /graphql/v1/graphql
websocket
}
proxy /graphql/v1/query hasura/v1/query {
without /graphql/v1/query
}
proxy /graphql/v1/version hasura/v1/version {
without /graphql/v1/version
}
proxy /graphql/graphiql graphiql {
without /graphql/graphiql
}
proxy /graphql/react react-apollo
proxy /graphql hasura/v1/graphql {
without /graphql
websocket
}
}