Skip to content

Commit

Permalink
feat(traefik): add traefik-plugin-disable-graphql-introspection
Browse files Browse the repository at this point in the history
  • Loading branch information
hongbo-miao committed May 12, 2022
1 parent 1920f9b commit 2165826
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions kubernetes/manifests/hasura/traefik-configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ metadata:
namespace: hm-hasura
data:
traefik.yaml: |
pilot:
token: 44e5b50c-cfa9-4ff7-ab74-2c90fb8ec89f
entryPoints:
hasura-graphql-engine-entrypoint:
address: :16022
Expand All @@ -25,6 +27,11 @@ data:
- 1.2
- 5.0
ping: {}
experimental:
plugins:
traefik-plugin-disable-graphql-introspection:
moduleName: "github.com/Hongbo-Miao/traefik-plugin-disable-graphql-introspection"
version: "v0.1.0"
dynamic_conf.yaml: |
http:
Expand All @@ -36,6 +43,7 @@ data:
rule: Host(`localhost`)
middlewares:
- test-ratelimit
- my-traefik-plugin-disable-graphql-introspection
hasura-metric-adapter-router:
service: hasura-metric-adapter-service
rule: Host(`localhost`) && PathPrefix(`/metrics`)
Expand All @@ -56,3 +64,7 @@ data:
rateLimit:
average: 100
burst: 50
my-traefik-plugin-disable-graphql-introspection:
plugin:
traefik-plugin-disable-graphql-introspection:
GraphQLPath: /v1/graphql

0 comments on commit 2165826

Please sign in to comment.