@@ -40,44 +40,46 @@ For ``serve`` subcommand these are the flags available
40
40
41
41
.. code-block :: none
42
42
43
- --server-host IP address of network interface that graphql-engine will listen on (default: '*', all interfaces)
43
+ --server-host IP address of network interface that graphql-engine will listen on (default: '*', all interfaces)
44
44
45
- --server-port Port on which graphql-engine should be served (default: 8080)
45
+ --server-port Port on which graphql-engine should be served (default: 8080)
46
46
47
- --access-key Secret access key, required to access this instance.
48
- If specified client needs to send 'X-Hasura-Access-Key'
49
- header
47
+ --access-key Secret access key, required to access this instance.
48
+ If specified client needs to send 'X-Hasura-Access-Key'
49
+ header
50
50
51
- --cors-domain The domain, including sheme and port, to allow CORS for
51
+ --cors-domain The domain, including sheme and port, to allow CORS for
52
52
53
- --disable-cors Disable CORS handling
53
+ --disable-cors Disable CORS handling
54
54
55
- --auth-hook The authentication webhook, required to authenticate
56
- incoming request
55
+ --auth-hook The authentication webhook, required to authenticate
56
+ incoming request
57
57
58
- --auth-hook-mode The authentication webhook mode. GET|POST (default: GET)
58
+ --auth-hook-mode The authentication webhook mode. GET|POST (default: GET)
59
59
60
- --jwt-secret The JSON containing type and the JWK used for
61
- verifying. e.g: `{"type": "HS256", "key":
62
- "<your-hmac-shared-secret>"}`,`{"type": "RS256",
63
- "key": "<your-PEM-RSA-public-key>"}
60
+ --jwt-secret The JSON containing type and the JWK used for
61
+ verifying. e.g: `{"type": "HS256", "key":
62
+ "<your-hmac-shared-secret>"}`,`{"type": "RS256",
63
+ "key": "<your-PEM-RSA-public-key>"}
64
64
65
- --unauthorized-role Unauthorized role, used when access-key is not sent in
66
- access-key only mode or "Authorization" header is absent
67
- in JWT mode
65
+ --unauthorized-role Unauthorized role, used when access-key is not sent in
66
+ access-key only mode or "Authorization" header is absent
67
+ in JWT mode
68
68
69
- -s, --stripes Number of stripes (default: 1)
69
+ -s, --stripes Number of stripes (default: 1)
70
70
71
- -c, --connections Number of connections that need to be opened to Postgres
72
- (default: 50)
71
+ -c, --connections Number of connections that need to be opened to Postgres
72
+ (default: 50)
73
73
74
- --timeout Each connection's idle time before it is closed
75
- (default: 180 sec)
74
+ --timeout Each connection's idle time before it is closed
75
+ (default: 180 sec)
76
76
77
- -i, --tx-iso Transaction isolation. read-commited / repeatable-read /
78
- serializable
77
+ -i, --tx-iso Transaction isolation. read-commited / repeatable-read /
78
+ serializable
79
79
80
- --enable-console Enable API console. It is served at '/' and '/console'
80
+ --enable-console Enable API console. It is served at '/' and '/console'
81
+
82
+ --use-prepared-statements Use prepared statements for SQL queries (default: true)
81
83
82
84
83
85
Default environment variables
@@ -109,38 +111,41 @@ These are the environment variables which are available:
109
111
HASURA_GRAPHQL_PG_CONNECTIONS Number of connections that need to be opened to
110
112
Postgres (default: 50)
111
113
112
- HASURA_GRAPHQL_PG_TIMEOUT Each connection's idle time before it is closed
113
- (default: 180 sec)
114
+ HASURA_GRAPHQL_PG_TIMEOUT Each connection's idle time before it is closed
115
+ (default: 180 sec)
116
+
117
+ HASURA_GRAPHQL_TX_ISOLATION transaction isolation. read-committed /
118
+ repeatable-read / serializable
119
+ (default: read-commited)
120
+ HASURA_GRAPHQL_SERVER_HOST IP address of network interface that graphql-engine will listen on
114
121
115
- HASURA_GRAPHQL_TX_ISOLATION transaction isolation. read-committed /
116
- repeatable-read / serializable
117
- (default: read-commited)
118
- HASURA_GRAPHQL_SERVER_HOST IP address of network interface that graphql-engine will listen on
122
+ HASURA_GRAPHQL_SERVER_PORT Port on which graphql-engine should be served
119
123
120
- HASURA_GRAPHQL_SERVER_PORT Port on which graphql-engine should be served
124
+ HASURA_GRAPHQL_ACCESS_KEY Secret access key, required to access this
125
+ instance. If specified client needs to send
126
+ 'X-Hasura-Access-Key' header
121
127
122
- HASURA_GRAPHQL_ACCESS_KEY Secret access key, required to access this
123
- instance. If specified client needs to send
124
- 'X-Hasura-Access-Key' header
128
+ HASURA_GRAPHQL_AUTH_HOOK The authentication webhook, required to
129
+ authenticate incoming request
125
130
126
- HASURA_GRAPHQL_AUTH_HOOK The authentication webhook, required to
127
- authenticate incoming request
131
+ HASURA_GRAPHQL_AUTH_HOOK_MODE The authentication webhook mode, GET|POST
132
+ (default: GET)
128
133
129
- HASURA_GRAPHQL_AUTH_HOOK_MODE The authentication webhook mode, GET|POST
130
- (default: GET)
134
+ HASURA_GRAPHQL_CORS_DOMAIN The domain, including sheme and port,
135
+ to allow CORS for
131
136
132
- HASURA_GRAPHQL_CORS_DOMAIN The domain, including sheme and port,
133
- to allow CORS for
137
+ HASURA_GRAPHQL_JWT_SECRET The JSON containing type and the JWK used for
138
+ verifying. e.g: `{"type": "HS256", "key":
139
+ "<your-hmac-shared-secret>"}`,`{"type": "RS256",
140
+ "key": "<your-PEM-RSA-public-key>"}
141
+ Enable JWT mode, the value of which is a JSON
134
142
135
- HASURA_GRAPHQL_JWT_SECRET The JSON containing type and the JWK used for
136
- verifying. e.g: `{"type": "HS256", "key":
137
- "<your-hmac-shared-secret>"}`,`{"type": "RS256",
138
- "key": "<your-PEM-RSA-public-key>"}
139
- Enable JWT mode, the value of which is a JSON
143
+ HASURA_GRAPHQL_UNAUTHORIZED_ROLE Unauthorized role, used when access-key is not sent
144
+ in access-key only mode or "Authorization" header
145
+ is absent in JWT mode
140
146
141
- HASURA_GRAPHQL_UNAUTHORIZED_ROLE Unauthorized role, used when access-key is not sent
142
- in access-key only mode or "Authorization" header
143
- is absent in JWT mode
147
+ HASURA_GRAPHQL_ENABLE_CONSOLE Enable API console. It is served at
148
+ '/' and '/console'
144
149
145
- HASURA_GRAPHQL_ENABLE_CONSOLE Enable API console. It is served at
146
- '/' and '/console'
150
+ HASURA_GRAPHQL_USE_PREPARED_STATEMENTS Use prepared statements for SQL queries
151
+ (default: true)
0 commit comments