Skip to content

Commit 4e86c96

Browse files
committed
chore: fix formatting
1 parent d941644 commit 4e86c96

File tree

1 file changed

+29
-100
lines changed

1 file changed

+29
-100
lines changed
Lines changed: 29 additions & 100 deletions
Original file line numberDiff line numberDiff line change
@@ -1,101 +1,59 @@
11
# ##############################################################################################
22
# Updating this file also requires a corresponding update in worker/src/lib/config-utils/kong.ts
33
# ##############################################################################################
4-
_format_version: "1.1"
4+
_format_version: '1.1'
55
services:
66
- {
77
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] }],
1110
plugins: [{ name: cors }],
1211
}
1312
- {
1413
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] }],
2416
plugins: [{ name: cors }],
2517
}
2618
- {
2719
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] }],
3722
plugins: [{ name: cors }],
3823
}
3924
- {
4025
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/] }],
5028
plugins: [{ name: cors }],
5129
}
5230
- {
5331
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/] }],
6334
plugins: [{ name: cors }],
6435
}
6536
- {
6637
name: auth-v1,
67-
url: "http://localhost:9999/",
38+
url: 'http://localhost:9999/',
6839
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 } }],
7441
}
7542
- {
7643
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 } }],
8547
}
8648
- {
8749
name: rest-v1,
88-
url: "http://localhost:3000/",
50+
url: 'http://localhost:3000/',
8951
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 } }],
9553
}
9654
- {
9755
name: graphql-v1,
98-
url: "http://localhost:3000/rpc/graphql",
56+
url: 'http://localhost:3000/rpc/graphql',
9957
routes: [{ name: graphql-v1, strip_path: true, paths: [/graphql/v1] }],
10058
plugins:
10159
[
@@ -109,57 +67,28 @@ services:
10967
}
11068
- {
11169
name: admin-v1,
112-
url: "https://localhost:8085/",
70+
url: 'https://localhost:8085/',
11371
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 } }],
11973
}
12074
- {
12175
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 } }],
13679
}
13780
- {
13881
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] } }],
15385
}
15486
consumers:
15587
- { username: anon-key, keyauth_credentials: [{ key: anon_key }] }
15688
- { 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 }] }
16190
basicauth_credentials:
16291
- consumer: service_role-key
163-
username: "service_role"
92+
username: 'service_role'
16493
password: service_key
16594
plugins: []

0 commit comments

Comments
 (0)