Skip to content

Commit 3a5da15

Browse files
committed
Remove unused trustProxy in the config
1 parent 63de546 commit 3a5da15

File tree

6 files changed

+0
-20
lines changed

6 files changed

+0
-20
lines changed

packages/legacy/cli/src/commands/serve/serve.ts

-2
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,6 @@ export async function serveMesh(
5454
sslCredentials,
5555
endpoint: graphqlPath = '/graphql',
5656
browser = process.env.NODE_ENV?.toLowerCase() !== 'production',
57-
// TODO
58-
// trustProxy = 'loopback',
5957
} = rawServeConfig;
6058

6159
const port = portSelectorFn(

packages/legacy/cli/src/commands/serve/yaml-config.graphql

-5
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,6 @@ type ServeConfig @md {
5858
"""
5959
playgroundTitle: String
6060
"""
61-
Configure Express Proxy Handling
62-
[Learn more](https://expressjs.com/en/guide/behind-proxies.html)
63-
"""
64-
trustProxy: String
65-
"""
6661
Enable and define a limit for [Request Batching](https://github.com/graphql/graphql-over-http/blob/main/rfcs/Batching.md)
6762
"""
6863
batchingLimit: Int

packages/legacy/http/src/index.ts

-2
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,6 @@ export function createMeshHTTPHandler<TServerContext>({
2828
endpoint: graphqlPath = '/graphql',
2929
batchingLimit,
3030
healthCheckEndpoint = '/healthcheck',
31-
// TODO
32-
// trustProxy = 'loopback',
3331
extraParamNames,
3432
} = rawServeConfig;
3533

packages/legacy/types/src/config-schema.json

-4
Original file line numberDiff line numberDiff line change
@@ -162,10 +162,6 @@
162162
"type": "string",
163163
"description": "Title of GraphiQL Playground"
164164
},
165-
"trustProxy": {
166-
"type": "string",
167-
"description": "Configure Express Proxy Handling\n[Learn more](https://expressjs.com/en/guide/behind-proxies.html)"
168-
},
169165
"batchingLimit": {
170166
"type": "integer",
171167
"description": "Enable and define a limit for [Request Batching](https://github.com/graphql/graphql-over-http/blob/main/rfcs/Batching.md)"

packages/legacy/types/src/config.ts

-5
Original file line numberDiff line numberDiff line change
@@ -112,11 +112,6 @@ export interface ServeConfig {
112112
* Title of GraphiQL Playground
113113
*/
114114
playgroundTitle?: string;
115-
/**
116-
* Configure Express Proxy Handling
117-
* [Learn more](https://expressjs.com/en/guide/behind-proxies.html)
118-
*/
119-
trustProxy?: string;
120115
/**
121116
* Enable and define a limit for [Request Batching](https://github.com/graphql/graphql-over-http/blob/main/rfcs/Batching.md)
122117
*/

website/src/generated-markdown/ServeConfig.generated.md

-2
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,6 @@ This feature can be disabled by passing `false` One of:
2626
* `String`
2727
* `Boolean`
2828
* `playgroundTitle` (type: `String`) - Title of GraphiQL Playground
29-
* `trustProxy` (type: `String`) - Configure Express Proxy Handling
30-
[Learn more](https://expressjs.com/en/guide/behind-proxies.html)
3129
* `batchingLimit` (type: `Int`) - Enable and define a limit for [Request Batching](https://github.com/graphql/graphql-over-http/blob/main/rfcs/Batching.md)
3230
* `healthCheckEndpoint` (type: `String`) - Endpoint for [Health Check](https://the-guild.dev/graphql/yoga-server/docs/features/health-check)
3331
* `extraParamNames` (type: `Array of String`) - By default, GraphQL Mesh does not allow parameters in the request body except `query`, `variables`, `extensions`, and `operationName`.

0 commit comments

Comments
 (0)