github.com/supabase/cli@v1.168.1/internal/start/templates/kong.yml (about)

     1  _format_version: "1.1"
     2  services:
     3    - name: auth-v1-open
     4      _comment: "GoTrue: /auth/v1/verify* -> http://auth:9999/verify*"
     5      url: http://{{ .GotrueId }}:9999/verify
     6      routes:
     7        - name: auth-v1-open
     8          strip_path: true
     9          paths:
    10            - /auth/v1/verify
    11      plugins:
    12        - name: cors
    13    - name: auth-v1-open-callback
    14      _comment: "GoTrue: /auth/v1/callback* -> http://auth:9999/callback*"
    15      url: http://{{ .GotrueId }}:9999/callback
    16      routes:
    17        - name: auth-v1-open-callback
    18          strip_path: true
    19          paths:
    20            - /auth/v1/callback
    21      plugins:
    22        - name: cors
    23    - name: auth-v1-open-authorize
    24      _comment: "GoTrue: /auth/v1/authorize* -> http://auth:9999/authorize*"
    25      url: http://{{ .GotrueId }}:9999/authorize
    26      routes:
    27        - name: auth-v1-open-authorize
    28          strip_path: true
    29          paths:
    30            - /auth/v1/authorize
    31      plugins:
    32        - name: cors
    33    - name: auth-v1
    34      _comment: "GoTrue: /auth/v1/* -> http://auth:9999/*"
    35      url: http://{{ .GotrueId }}:9999/
    36      routes:
    37        - name: auth-v1-all
    38          strip_path: true
    39          paths:
    40            - /auth/v1/
    41      plugins:
    42        - name: cors
    43    - name: rest-v1
    44      _comment: "PostgREST: /rest/v1/* -> http://rest:3000/*"
    45      url: http://{{ .RestId }}:3000/
    46      routes:
    47        - name: rest-v1-all
    48          strip_path: true
    49          paths:
    50            - /rest/v1/
    51      plugins:
    52        - name: cors
    53    - name: rest-admin-v1
    54      _comment: "PostgREST: /rest-admin/v1/* -> http://rest:3001/*"
    55      url: http://{{ .RestId }}:3001/
    56      routes:
    57        - name: rest-admin-v1-all
    58          strip_path: true
    59          paths:
    60            - /rest-admin/v1/
    61      plugins:
    62        - name: cors
    63    - name: graphql-v1
    64      _comment: "PostgREST: /graphql/v1 -> http://rest:3000/rpc/graphql"
    65      url: http://{{ .RestId }}:3000/rpc/graphql
    66      routes:
    67        - name: graphql-v1-all
    68          strip_path: true
    69          paths:
    70            - /graphql/v1
    71      plugins:
    72        - name: cors
    73        - name: request-transformer
    74          config:
    75            add:
    76              headers:
    77                - "Content-Profile: graphql_public"
    78    - name: realtime-v1-ws
    79      _comment: "Realtime: /realtime/v1/* -> ws://realtime:4000/socket/*"
    80      url: http://{{ .RealtimeId }}:4000/socket
    81      protocol: ws
    82      routes:
    83        - name: realtime-v1-ws
    84          strip_path: true
    85          paths:
    86            - /realtime/v1/
    87      plugins:
    88        - name: cors
    89    - name: realtime-v1-rest
    90      _comment: "Realtime: /realtime/v1/* -> http://realtime:4000/api/*"
    91      url: http://{{ .RealtimeId }}:4000/api
    92      protocol: http
    93      routes:
    94        - name: realtime-v1-rest
    95          strip_path: true
    96          paths:
    97            - /realtime/v1/api
    98      plugins:
    99        - name: cors
   100  
   101    - name: storage-v1
   102      _comment: "Storage: /storage/v1/* -> http://storage-api:5000/*"
   103      url: http://{{ .StorageId }}:5000/
   104      routes:
   105        - name: storage-v1-all
   106          strip_path: true
   107          paths:
   108            - /storage/v1/
   109      plugins:
   110        - name: cors
   111        - name: request-transformer
   112          config:
   113            add:
   114              headers:
   115                - "Forwarded: host={{ .ApiHost }}:{{ .ApiPort }};proto=http"
   116    - name: pg-meta
   117      _comment: "pg-meta: /pg/* -> http://pg-meta:8080/*"
   118      url: http://{{ .PgmetaId }}:8080/
   119      routes:
   120        - name: pg-meta-all
   121          strip_path: true
   122          paths:
   123            - /pg/
   124    - name: functions-v1
   125      _comment: "Functions: /functions/v1/* -> http://edge-runtime:8081/*"
   126      url: http://{{ .EdgeRuntimeId }}:8081/
   127      routes:
   128        - name: functions-v1-all
   129          strip_path: true
   130          paths:
   131            - /functions/v1/
   132    - name: analytics-v1
   133      _comment: "Analytics: /analytics/v1/* -> http://logflare:4000/*"
   134      url: http://{{ .LogflareId }}:4000/
   135      routes:
   136        - name: analytics-v1-all
   137          strip_path: true
   138          paths:
   139            - /analytics/v1/