1
1
# ##############################################################################################
2
2
# Updating this file also requires a corresponding update in worker/src/lib/config-utils/kong.ts
3
3
# ##############################################################################################
4
- _format_version : ' 1.1'
4
+ _format_version : " 1.1"
5
5
services :
6
6
- {
7
7
name : auth-v1-open,
8
- url : ' http://localhost:9999/verify' ,
9
- routes : [{ name: auth-v1-open, strip_path: true, paths: [/auth/v1/verify] }],
8
+ url : " http://localhost:9999/verify" ,
9
+ routes :
10
+ [{ name : auth-v1-open, strip_path: true, paths: [/auth/v1/verify] }],
10
11
plugins : [{ name: cors }],
11
12
}
12
13
- {
13
14
name : auth-v1-open-callback,
14
- url : ' http://localhost:9999/callback' ,
15
- routes : [{ name: auth-v1-open-callback, strip_path: true, paths: [/auth/v1/callback] }],
15
+ url : " http://localhost:9999/callback" ,
16
+ routes :
17
+ [
18
+ {
19
+ name : auth-v1-open-callback,
20
+ strip_path : true,
21
+ paths : [/auth/v1/callback],
22
+ },
23
+ ],
16
24
plugins : [{ name: cors }],
17
25
}
18
26
- {
19
27
name : auth-v1-open-authorize,
20
- url : ' http://localhost:9999/authorize' ,
21
- routes : [{ name: auth-v1-open-authorize, strip_path: true, paths: [/auth/v1/authorize] }],
28
+ url : " http://localhost:9999/authorize" ,
29
+ routes :
30
+ [
31
+ {
32
+ name : auth-v1-open-authorize,
33
+ strip_path : true,
34
+ paths : [/auth/v1/authorize],
35
+ },
36
+ ],
22
37
plugins : [{ name: cors }],
23
38
}
24
39
- {
25
40
name : auth-v1-open-saml,
26
- url : ' http://localhost:9999/sso/saml/' ,
27
- routes : [{ name: auth-v1-open-saml, strip_path: true, paths: [/auth/v1/sso/saml/] }],
41
+ url : " http://localhost:9999/sso/saml/" ,
42
+ routes :
43
+ [
44
+ {
45
+ name : auth-v1-open-saml,
46
+ strip_path : true,
47
+ paths : [/auth/v1/sso/saml/],
48
+ },
49
+ ],
50
+ plugins : [{ name: cors }],
51
+ }
52
+ - {
53
+ name : auth-v1-open-well-known,
54
+ url : " http://localhost:9999/.well-known/" ,
55
+ routes :
56
+ [
57
+ {
58
+ name : auth-v1-open-well-known,
59
+ strip_path : true,
60
+ paths : [/auth/v1/.well-known/],
61
+ },
62
+ ],
28
63
plugins : [{ name: cors }],
29
64
}
30
65
- {
31
66
name : auth-v1,
32
- url : ' http://localhost:9999/' ,
67
+ url : " http://localhost:9999/" ,
33
68
routes : [{ name: auth-v1, strip_path: true, paths: [/auth/v1/] }],
34
- plugins : [{ name: cors }, { name: key-auth, config: { hide_credentials: false } }],
69
+ plugins :
70
+ [
71
+ { name: cors },
72
+ { name: key-auth, config: { hide_credentials: false } },
73
+ ],
35
74
}
36
75
- {
37
76
name : rest-v1-admin,
38
- url : ' http://localhost:3001/' ,
39
- routes : [{ name: rest-admin-v1, strip_path: true, paths: [/rest-admin/v1/] }],
40
- plugins : [{ name: cors }, { name: key-auth, config: { hide_credentials: true } }],
77
+ url : " http://localhost:3001/" ,
78
+ routes :
79
+ [{ name : rest-admin-v1, strip_path: true, paths: [/rest-admin/v1/] }],
80
+ plugins :
81
+ [
82
+ { name: cors },
83
+ { name: key-auth, config: { hide_credentials: true } },
84
+ ],
41
85
}
42
86
- {
43
87
name : rest-v1,
44
- url : ' http://localhost:3000/' ,
88
+ url : " http://localhost:3000/" ,
45
89
routes : [{ name: rest-v1, strip_path: true, paths: [/rest/v1/] }],
46
- plugins : [{ name: cors }, { name: key-auth, config: { hide_credentials: true } }],
90
+ plugins :
91
+ [
92
+ { name: cors },
93
+ { name: key-auth, config: { hide_credentials: true } },
94
+ ],
47
95
}
48
96
- {
49
97
name : graphql-v1,
50
- url : ' http://localhost:3000/rpc/graphql' ,
98
+ url : " http://localhost:3000/rpc/graphql" ,
51
99
routes : [{ name: graphql-v1, strip_path: true, paths: [/graphql/v1] }],
52
100
plugins :
53
101
[
@@ -61,28 +109,57 @@ services:
61
109
}
62
110
- {
63
111
name : admin-v1,
64
- url : ' https://localhost:8085/' ,
112
+ url : " https://localhost:8085/" ,
65
113
routes : [{ name: admin-v1, strip_path: true, paths: [/admin/v1/] }],
66
- plugins : [{ name: cors }, { name: key-auth, config: { hide_credentials: false } }],
114
+ plugins :
115
+ [
116
+ { name: cors },
117
+ { name: key-auth, config: { hide_credentials: false } },
118
+ ],
67
119
}
68
120
- {
69
121
name : admin-v1-user-routes,
70
- url : ' https://localhost:8085/privileged' ,
71
- routes : [{ name: admin-v1-user-routes, strip_path: true, paths: [/customer/v1/privileged] }],
72
- plugins : [{ name: cors }, { name: basic-auth, config: { hide_credentials: false } }],
122
+ url : " https://localhost:8085/privileged" ,
123
+ routes :
124
+ [
125
+ {
126
+ name : admin-v1-user-routes,
127
+ strip_path : true,
128
+ paths : [/customer/v1/privileged],
129
+ },
130
+ ],
131
+ plugins :
132
+ [
133
+ { name: cors },
134
+ { name: basic-auth, config: { hide_credentials: false } },
135
+ ],
73
136
}
74
137
- {
75
138
name : admin-v1-metrics,
76
- url : ' https://localhost:8085/metrics/aggregated' ,
77
- routes : [{ name: admin-v1-metrics, strip_path: true, paths: [/supabase-internal/metrics] }],
78
- plugins : [{ name: cors }, { name: ip-restriction, config: { allow: [10.0.0.0/8] } }],
139
+ url : " https://localhost:8085/metrics/aggregated" ,
140
+ routes :
141
+ [
142
+ {
143
+ name : admin-v1-metrics,
144
+ strip_path : true,
145
+ paths : [/supabase-internal/metrics],
146
+ },
147
+ ],
148
+ plugins :
149
+ [
150
+ { name: cors },
151
+ { name: ip-restriction, config: { allow: [10.0.0.0/8] } },
152
+ ],
79
153
}
80
154
consumers :
81
155
- { username: anon-key, keyauth_credentials: [{ key: anon_key }] }
82
156
- { username: service_role-key, keyauth_credentials: [{ key: service_key }] }
83
- - { username: supabase-admin-key, keyauth_credentials: [{ key: supabase_admin_key }] }
157
+ - {
158
+ username : supabase-admin-key,
159
+ keyauth_credentials : [{ key: supabase_admin_key }],
160
+ }
84
161
basicauth_credentials :
85
162
- consumer : service_role-key
86
- username : ' service_role'
163
+ username : " service_role"
87
164
password : service_key
88
165
plugins : []
0 commit comments