Skip to content

Commit

Permalink
feat(realtime): add longpoll route to kong (#2506)
Browse files Browse the repository at this point in the history
realtime: Add longpoll route
  • Loading branch information
filipecabaco authored Sep 20, 2024
1 parent 7ec843d commit cf504ab
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion internal/start/templates/kong.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ services:
headers:
- "Content-Profile: graphql_public"
- name: realtime-v1-ws
_comment: "Realtime: /realtime/v1/* -> ws://realtime:4000/socket/*"
_comment: "Realtime: /realtime/v1/* -> ws://realtime:4000/socket/websocket"
url: http://{{ .RealtimeId }}:4000/socket
protocol: ws
routes:
Expand All @@ -86,6 +86,17 @@ services:
- /realtime/v1/
plugins:
- name: cors
- name: realtime-v1-longpoll
_comment: "Realtime: /realtime/v1/* -> ws://realtime:4000/socket/longpoll"
url: http://{{ .RealtimeId }}:4000/socket
protocol: http
routes:
- name: realtime-v1-longpoll
strip_path: true
paths:
- /realtime/v1/
plugins:
- name: cors
- name: realtime-v1-rest
_comment: "Realtime: /realtime/v1/* -> http://realtime:4000/api/*"
url: http://{{ .RealtimeId }}:4000/api
Expand Down

0 comments on commit cf504ab

Please sign in to comment.