You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/README.md
+33-8Lines changed: 33 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,7 @@
6
6
|----|----|-----------|--------|
7
7
|[**cors**](#cors)|`object`|Configuration for CORS (Cross-Origin Resource Sharing).<br/>Default: `{"allow_any_origin":false,"allow_credentials":false,"enabled":false,"policies":[]}`<br/>|yes|
8
8
|[**csrf**](#csrf)|`object`|Configuration for CSRF prevention.<br/>Default: `{"enabled":false,"required_headers":[]}`<br/>||
9
+
|[**graphiql**](#graphiql)|`object`|Configuration for the GraphiQL interface.<br/>Default: `{"enabled":true}`<br/>||
9
10
|[**headers**](#headers)|`object`|Configuration for the headers.<br/>Default: `{}`<br/>||
10
11
|[**http**](#http)|`object`|Configuration for the HTTP server/listener.<br/>Default: `{"host":"0.0.0.0","port":4000}`<br/>||
11
12
|[**jwt**](#jwt)|`object`, `null`|Configuration for JWT authentication plugin.<br/>|yes|
@@ -36,6 +37,8 @@ csrf:
36
37
enabled: true
37
38
required_headers:
38
39
- x-csrf-token
40
+
graphiql:
41
+
enabled: true
39
42
headers:
40
43
all:
41
44
request:
@@ -328,6 +331,26 @@ A valid HTTP header name, according to RFC 7230.
|**enabled**|`boolean`|Enables/disables the GraphiQL interface. By default, the GraphiQL interface is enabled.<br/><br/>You can override this setting by setting the `GRAPHIQL_ENABLED` environment variable to `true` or `false`.<br/>Default: `true`<br/>||
345
+
346
+
**Additional Properties:** not allowed
347
+
**Example**
348
+
349
+
```yaml
350
+
enabled: true
351
+
352
+
```
353
+
331
354
<a name="headers"></a>
332
355
## headers: object
333
356
@@ -1304,8 +1327,8 @@ Configuration for the HTTP server/listener.
1304
1327
1305
1328
|Name|Type|Description|Required|
1306
1329
|----|----|-----------|--------|
1307
-
|**host**|`string`|The host address to bind the HTTP server to.<br/>Default: `"0.0.0.0"`<br/>||
1308
-
|**port**|`integer`|The port to bind the HTTP server to.<br/><br/>If you are running the router inside a Docker container, please ensure that the port is exposed correctly using `-p <host_port>:<container_port>` flag.<br/>Default: `4000`<br/>Format: `"uint16"`<br/>Minimum: `0`<br/>Maximum: `65535`<br/>||
1330
+
|**host**|`string`|The host address to bind the HTTP server to.<br/><br/>Can also be set via the `HOST` environment variable.<br/>Default: `"0.0.0.0"`<br/>||
1331
+
|**port**|`integer`|The port to bind the HTTP server to.<br/><br/>Can also be set via the `PORT` environment variable.<br/><br/>If you are running the router inside a Docker container, please ensure that the port is exposed correctly using `-p <host_port>:<container_port>` flag.<br/>Default: `4000`<br/>Format: `"uint16"`<br/>Minimum: `0`<br/>Maximum: `65535`<br/>||
1309
1332
1310
1333
**Additional Properties:** not allowed
1311
1334
**Example**
@@ -1499,9 +1522,9 @@ The router is configured to be mostly silent (`info`) level, and will print only
|**filter**|`string`, `null`|The filter to apply to log messages.<br/><br/>Can also be set via the `LOG_FILTER` environment variable.<br/>||
1526
+
|**format**|`string`|The format of the log messages.<br/><br/>Can also be set via the `LOG_FORMAT` environment variable.<br/>Default: `"json"`<br/>Enum: `"pretty-tree"`, `"pretty-compact"`, `"json"`<br/>||
1527
+
|**level**|`string`|The level of logging to use.<br/><br/>Can also be set via the `LOG_LEVEL` environment variable.<br/>Default: `"info"`<br/>Enum: `"trace"`, `"debug"`, `"info"`, `"warn"`, `"error"`<br/>||
1505
1528
1506
1529
**Additional Properties:** not allowed
1507
1530
**Example**
@@ -1593,7 +1616,7 @@ The path can be either absolute or relative to the router's working directory.
1593
1616
1594
1617
|Name|Type|Description|Required|
1595
1618
|----|----|-----------|--------|
1596
-
|**path**|`string`|Format: `"path"`<br/>|yes|
1619
+
|**path**|`string`|The path to the supergraph file.<br/><br/>Can also be set using the `SUPERGRAPH_FILE_PATH` environment variable.<br/>Format: `"path"`<br/>|yes|
1597
1620
|[**poll\_interval**](#option1poll_interval)|`object`, `null`|Optional interval at which the file should be polled for changes.<br/>|yes|
@@ -1615,8 +1638,8 @@ Loads a supergraph from Hive Console CDN.
1615
1638
1616
1639
|Name|Type|Description|Required|
1617
1640
|----|----|-----------|--------|
1618
-
|**endpoint**|`string`|The CDN endpoint from Hive Console target.<br/>|yes|
1619
-
|**key**|`string`|The CDN Access Token with from the Hive Console target.<br/>|yes|
1641
+
|**endpoint**|`string`|The CDN endpoint from Hive Console target.<br/><br/>Can also be set using the `HIVE_CDN_ENDPOINT` environment variable.<br/>|yes|
1642
+
|**key**|`string`|The CDN Access Token with from the Hive Console target.<br/><br/>Can also be set using the `HIVE_CDN_KEY` environment variable.<br/>|yes|
1620
1643
|[**poll\_interval**](#option2poll_interval)|`object`|Interval at which the Hive Console should be polled for changes.<br/>Default: `"10s"`<br/>|yes|
1621
1644
|[**retry\_policy**](#option2retry_policy)|`object`|Interval at which the Hive Console should be polled for changes.<br/>Default: `{"max_retries":10}`<br/>|yes|
0 commit comments