kong.yml 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. _format_version: "1.1"
  2. services:
  3. - name: auth-v1-open
  4. url: http://supabase-auth:9999/verify
  5. routes:
  6. - name: auth-v1-open
  7. strip_path: true
  8. paths:
  9. - /auth/v1/verify
  10. plugins:
  11. - name: cors
  12. - name: auth-v1-open-callback
  13. url: http://supabase-auth:9999/callback
  14. routes:
  15. - name: auth-v1-open-callback
  16. strip_path: true
  17. paths:
  18. - /auth/v1/callback
  19. plugins:
  20. - name: cors
  21. - name: auth-v1-open-authorize
  22. url: http://supabase-auth:9999/authorize
  23. routes:
  24. - name: auth-v1-open-authorize
  25. strip_path: true
  26. paths:
  27. - /auth/v1/authorize
  28. plugins:
  29. - name: cors
  30. - name: auth-v1
  31. _comment: "GoTrue: /auth/v1/* -> http://supabase-auth:9999/*"
  32. url: http://supabase-auth:9999
  33. routes:
  34. - name: auth-v1-all
  35. strip_path: true
  36. paths:
  37. - /auth/v1/
  38. plugins:
  39. - name: cors
  40. - name: key-auth
  41. config:
  42. hide_credentials: false
  43. - name: acl
  44. config:
  45. hide_groups_header: true
  46. allow:
  47. - admin
  48. - anon
  49. - name: rest-v1
  50. _comment: "PostgREST: /rest/v1/* -> http://supabase-rest:3000/*"
  51. url: http://supabase-rest:3000/
  52. routes:
  53. - name: rest-v1-all
  54. strip_path: true
  55. paths:
  56. - /rest/v1/
  57. plugins:
  58. - name: cors
  59. - name: key-auth
  60. config:
  61. hide_credentials: false
  62. - name: acl
  63. config:
  64. hide_groups_header: true
  65. allow:
  66. - admin
  67. - anon
  68. - name: realtime-v1
  69. _comment: "Realtime: /realtime/v1/* -> http://supabase-realtime:4000/socket/*"
  70. url: http://supabase-realtime:4000/socket
  71. routes:
  72. - name: realtime-v1-all
  73. strip_path: true
  74. paths:
  75. - /realtime/v1/
  76. plugins:
  77. - name: cors
  78. - name: key-auth
  79. config:
  80. hide_credentials: false
  81. - name: acl
  82. config:
  83. hide_groups_header: true
  84. allow:
  85. - admin
  86. - anon
  87. consumers:
  88. - username: anon
  89. keyauth_credentials:
  90. - key: ${ANON_KEY}
  91. acls:
  92. - group: anon
  93. - username: service_role
  94. keyauth_credentials:
  95. - key: ${SERVICE_ROLE_KEY}
  96. acls:
  97. - group: admin