github.com/Redstoneguy129/cli@v0.0.0-20230211220159-15dca4e91917/internal/start/templates/kong_config (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://supabase_auth_{{ .ProjectId }}: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://supabase_auth_{{ .ProjectId }}: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://supabase_auth_{{ .ProjectId }}: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://supabase_auth_{{ .ProjectId }}:9999/
    36      routes:
    37        - name: auth-v1-all
    38          strip_path: true
    39          paths:
    40            - /auth/v1/
    41      plugins:
    42        - name: cors
    43        - name: key-auth
    44          config:
    45            hide_credentials: false
    46    - name: rest-v1
    47      _comment: "PostgREST: /rest/v1/* -> http://rest:3000/*"
    48      url: http://supabase_rest_{{ .ProjectId }}:3000/
    49      routes:
    50        - name: rest-v1-all
    51          strip_path: true
    52          paths:
    53            - /rest/v1/
    54      plugins:
    55        - name: cors
    56        - name: key-auth
    57          config:
    58            hide_credentials: true
    59    - name: graphql-v1
    60      _comment: "PostgREST: /graphql/v1 -> http://rest:3000/rpc/graphql"
    61      url: http://supabase_rest_{{ .ProjectId }}:3000/rpc/graphql
    62      routes:
    63        - name: graphql-v1-all
    64          strip_path: true
    65          paths:
    66            - /graphql/v1
    67      plugins:
    68        - name: cors
    69        - name: key-auth
    70          config:
    71            hide_credentials: true
    72        - name: request-transformer
    73          config:
    74            add:
    75              headers:
    76                - "Content-Profile: graphql_public"
    77    - name: realtime-v1
    78      _comment: "Realtime: /realtime/v1/* -> ws://realtime:4000/socket/*"
    79      url: http://realtime-dev.supabase_realtime_{{ .ProjectId }}:4000/socket
    80      routes:
    81        - name: realtime-v1-all
    82          strip_path: true
    83          paths:
    84            - /realtime/v1/
    85      plugins:
    86        - name: cors
    87        - name: key-auth
    88          config:
    89            hide_credentials: false
    90    - name: storage-v1
    91      _comment: "Storage: /storage/v1/* -> http://storage-api:5000/*"
    92      url: http://supabase_storage_{{ .ProjectId }}:5000/
    93      routes:
    94        - name: storage-v1-all
    95          strip_path: true
    96          paths:
    97            - /storage/v1/
    98      plugins:
    99        - name: cors
   100    - name: pg-meta
   101      _comment: "pg-meta: /pg/* -> http://pg-meta:8080/*"
   102      url: http://supabase_pg_meta_{{ .ProjectId }}:8080/
   103      routes:
   104        - name: pg-meta-all
   105          strip_path: true
   106          paths:
   107            - /pg/
   108    - name: functions-v1
   109      _comment: "Functions: /functions/v1/* -> http://deno-relay:8081/*"
   110      url: http://supabase_deno_relay_{{ .ProjectId }}:8081/
   111      routes:
   112        - name: functions-v1-all
   113          strip_path: true
   114          paths:
   115            - /functions/v1/
   116  consumers:
   117    - username: anon
   118      keyauth_credentials:
   119        - key: {{ .AnonKey }}
   120    - username: service_role
   121      keyauth_credentials:
   122        - key: {{ .ServiceRoleKey }}