Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions base/api/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ spec:
metadata:
labels:
app: api
# Changed with Hasura's POST hook mode: the same apply rolls the api onto
# the current image, which serves POST /hasura.
annotations:
5stack.gg/hasura-hook-mode: post
spec:
serviceAccountName: server-creator
dnsConfig:
Expand Down
5 changes: 5 additions & 0 deletions base/hasura/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,11 @@ spec:
value: "true"
- name: HASURA_GRAPHQL_AUTH_HOOK
value: "http://api:5585/hasura"
# POST mode passes the client's Origin and Content-Type to the hook.
- name: HASURA_GRAPHQL_AUTH_HOOK_MODE
value: "POST"
- name: HASURA_GRAPHQL_AUTH_HOOK_SEND_REQUEST_BODY
value: "false"
- name: HASURA_GRAPHQL_EVENT_HOOK
value: "http://api:5585/hasura/events"
- name: HASURA_GRAPHQL_ACTIONS_HOOK
Expand Down
Loading