mirror of
https://github.com/zhigang1992/graphql-engine.git
synced 2026-05-01 13:24:19 +08:00
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.
52 lines
1.1 KiB
YAML
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
|
|
}
|
|
}
|