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 :
10
- [{ name : auth-v1-open, strip_path: true, paths: [/auth/v1/verify] }],
8
+ url : ' http://localhost:9999/verify' ,
9
+ routes : [{ name: auth-v1-open, strip_path: true, paths: [/auth/v1/verify] }],
11
10
plugins : [{ name: cors }],
12
11
}
13
12
- {
14
13
name : auth-v1-open-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
- ],
14
+ url : ' http://localhost:9999/callback' ,
15
+ routes : [{ name: auth-v1-open-callback, strip_path: true, paths: [/auth/v1/callback] }],
24
16
plugins : [{ name: cors }],
25
17
}
26
18
- {
27
19
name : auth-v1-open-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
- ],
20
+ url : ' http://localhost:9999/authorize' ,
21
+ routes : [{ name: auth-v1-open-authorize, strip_path: true, paths: [/auth/v1/authorize] }],
37
22
plugins : [{ name: cors }],
38
23
}
39
24
- {
40
25
name : auth-v1-open-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
- ],
26
+ url : ' http://localhost:9999/sso/saml/' ,
27
+ routes : [{ name: auth-v1-open-saml, strip_path: true, paths: [/auth/v1/sso/saml/] }],
50
28
plugins : [{ name: cors }],
51
29
}
52
30
- {
53
31
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
- ],
32
+ url : ' http://localhost:9999/.well-known/' ,
33
+ routes : [{ name: auth-v1-open-well-known, strip_path: true, paths: [/auth/v1/.well-known/] }],
63
34
plugins : [{ name: cors }],
64
35
}
65
36
- {
66
37
name : auth-v1,
67
- url : " http://localhost:9999/" ,
38
+ url : ' http://localhost:9999/' ,
68
39
routes : [{ name: auth-v1, strip_path: true, paths: [/auth/v1/] }],
69
- plugins :
70
- [
71
- { name: cors },
72
- { name: key-auth, config: { hide_credentials: false } },
73
- ],
40
+ plugins : [{ name: cors }, { name: key-auth, config: { hide_credentials: false } }],
74
41
}
75
42
- {
76
43
name : rest-v1-admin,
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
- ],
44
+ url : ' http://localhost:3001/' ,
45
+ routes : [{ name: rest-admin-v1, strip_path: true, paths: [/rest-admin/v1/] }],
46
+ plugins : [{ name: cors }, { name: key-auth, config: { hide_credentials: true } }],
85
47
}
86
48
- {
87
49
name : rest-v1,
88
- url : " http://localhost:3000/" ,
50
+ url : ' http://localhost:3000/' ,
89
51
routes : [{ name: rest-v1, strip_path: true, paths: [/rest/v1/] }],
90
- plugins :
91
- [
92
- { name: cors },
93
- { name: key-auth, config: { hide_credentials: true } },
94
- ],
52
+ plugins : [{ name: cors }, { name: key-auth, config: { hide_credentials: true } }],
95
53
}
96
54
- {
97
55
name : graphql-v1,
98
- url : " http://localhost:3000/rpc/graphql" ,
56
+ url : ' http://localhost:3000/rpc/graphql' ,
99
57
routes : [{ name: graphql-v1, strip_path: true, paths: [/graphql/v1] }],
100
58
plugins :
101
59
[
@@ -109,57 +67,28 @@ services:
109
67
}
110
68
- {
111
69
name : admin-v1,
112
- url : " https://localhost:8085/" ,
70
+ url : ' https://localhost:8085/' ,
113
71
routes : [{ name: admin-v1, strip_path: true, paths: [/admin/v1/] }],
114
- plugins :
115
- [
116
- { name: cors },
117
- { name: key-auth, config: { hide_credentials: false } },
118
- ],
72
+ plugins : [{ name: cors }, { name: key-auth, config: { hide_credentials: false } }],
119
73
}
120
74
- {
121
75
name : admin-v1-user-routes,
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
- ],
76
+ url : ' https://localhost:8085/privileged' ,
77
+ routes : [{ name: admin-v1-user-routes, strip_path: true, paths: [/customer/v1/privileged] }],
78
+ plugins : [{ name: cors }, { name: basic-auth, config: { hide_credentials: false } }],
136
79
}
137
80
- {
138
81
name : admin-v1-metrics,
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
- ],
82
+ url : ' https://localhost:8085/metrics/aggregated' ,
83
+ routes : [{ name: admin-v1-metrics, strip_path: true, paths: [/supabase-internal/metrics] }],
84
+ plugins : [{ name: cors }, { name: ip-restriction, config: { allow: [10.0.0.0/8] } }],
153
85
}
154
86
consumers :
155
87
- { username: anon-key, keyauth_credentials: [{ key: anon_key }] }
156
88
- { username: service_role-key, keyauth_credentials: [{ key: service_key }] }
157
- - {
158
- username : supabase-admin-key,
159
- keyauth_credentials : [{ key: supabase_admin_key }],
160
- }
89
+ - { username: supabase-admin-key, keyauth_credentials: [{ key: supabase_admin_key }] }
161
90
basicauth_credentials :
162
91
- consumer : service_role-key
163
- username : " service_role"
92
+ username : ' service_role'
164
93
password : service_key
165
94
plugins : []
0 commit comments