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/user-guide/configuration.md
+92-90Lines changed: 92 additions & 90 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,100 +8,102 @@ The application is configurable via environment variables.
8
8
9
9
: STAC API URL
10
10
11
-
**Type:** HTTP(S) URL
12
-
**Required:** Yes
13
-
**Example:** `https://your-stac-api.com/stac`
11
+
- **Type:** HTTP(S) URL
12
+
- **Required:** Yes
13
+
- **Example:** `https://your-stac-api.com/stac`
14
14
15
15
### `WAIT_FOR_UPSTREAM`
16
16
17
17
: Wait for upstream API to become available before starting proxy
18
18
19
-
**Type:** boolean
20
-
**Required:** No, defaults to `true`
21
-
**Example:** `false`, `1`, `True`
19
+
- **Type:** boolean
20
+
- **Required:** No, defaults to `true`
21
+
- **Example:** `false`, `1`, `True`
22
22
23
23
### `CHECK_CONFORMANCE`
24
24
25
25
: Ensure upstream API conforms to required conformance classes before starting proxy
26
26
27
-
**Type:** boolean
28
-
**Required:** No, defaults to `true`
29
-
**Example:** `false`, `1`, `True`
27
+
- **Type:** boolean
28
+
- **Required:** No, defaults to `true`
29
+
- **Example:** `false`, `1`, `True`
30
30
31
31
### `ENABLE_COMPRESSION`
32
32
33
33
: Enable response compression
34
34
35
-
**Type:** boolean
36
-
**Required:** No, defaults to `true`
37
-
**Example:** `false`, `1`, `True`
35
+
- **Type:** boolean
36
+
- **Required:** No, defaults to `true`
37
+
- **Example:** `false`, `1`, `True`
38
38
39
39
### `HEALTHZ_PREFIX`
40
40
41
41
: Path prefix for health check endpoints
42
42
43
-
**Type:** string
44
-
**Required:** No, defaults to `/healthz`
45
-
**Example:** `''` (disabled)
43
+
- **Type:** string
44
+
- **Required:** No, defaults to `/healthz`
45
+
- **Example:** `''` (disabled)
46
46
47
47
### `OVERRIDE_HOST`
48
48
49
-
: Override the host header for the upstream API
49
+
: Override the host header before forwarding requests to the upstream API.
50
+
51
+
- **Type:** boolean
52
+
- **Required:** No, defaults to `true`
53
+
- **Example:** `false`, `1`, `True`
50
54
51
-
**Type:** boolean
52
-
**Required:** No, defaults to `true`
53
-
**Example:** `false`, `1`, `True`
54
55
55
56
### `ROOT_PATH`
56
57
57
58
: Path prefix for the proxy API
58
59
59
-
**Type:** string
60
-
**Required:** No, defaults to `''` (root path)
61
-
**Example:** `/api/v1`
62
-
**Note:** This is independent of the upstream API's path. The proxy will handle removing this prefix from incoming requests and adding it to outgoing links.
60
+
- **Type:** string
61
+
- **Required:** No, defaults to `''` (root path)
62
+
- **Example:** `/api/v1`
63
+
64
+
> [!NOTE]
65
+
> This is independent of the upstream API's path. The proxy will handle removing this prefix from incoming requests and adding it to outgoing links.
**Note:** A comma-separated list of the intended recipient(s) of the JWT. At least one audience value must match the `aud` (audience) claim present in the incoming JWT. If undefined, the API will not impose a check on the `aud` claim
: Endpoints explicitly marked as requiring authentication and possibly scopes
102
104
103
-
**Type:** JSON object mapping regex patterns to HTTP methods OR tuples of an HTTP method and string representing required scopes
104
-
**Required:** No, defaults to the following:
105
+
- **Type:** JSON object mapping regex patterns to HTTP methods OR tuples of an HTTP method and string representing required scopes
106
+
- **Required:** No, defaults to the following:
105
107
```json
106
108
{
107
109
"^/collections$": ["POST"],
@@ -116,8 +118,8 @@ The application is configurable via environment variables.
116
118
117
119
: Endpoints explicitly marked as not requiring authentication, used when `DEFAULT_PUBLIC == False`
118
120
119
-
**Type:** JSON object mapping regex patterns to HTTP methods
120
-
**Required:** No, defaults to the following:
121
+
- **Type:** JSON object mapping regex patterns to HTTP methods
122
+
- **Required:** No, defaults to the following:
121
123
```json
122
124
{
123
125
"^/$": ["GET"],
@@ -133,122 +135,122 @@ The application is configurable via environment variables.
133
135
134
136
: Enable authentication extension in STAC API responses
135
137
136
-
**Type:** boolean
137
-
**Required:** No, defaults to `true`
138
-
**Example:** `false`, `1`, `True`
138
+
- **Type:** boolean
139
+
- **Required:** No, defaults to `true`
140
+
- **Example:** `false`, `1`, `True`
139
141
140
142
## OpenAPI / Swagger UI
141
143
142
144
### `OPENAPI_SPEC_ENDPOINT`
143
145
144
146
: Path of OpenAPI specification, used for augmenting spec response with auth configuration
145
147
146
-
**Type:** string or null
147
-
**Required:** No, defaults to `/api`
148
-
**Example:** `''` (disabled)
148
+
- **Type:** string or null
149
+
- **Required:** No, defaults to `/api`
150
+
- **Example:** `''` (disabled)
149
151
150
152
### `OPENAPI_AUTH_SCHEME_NAME`
151
153
152
154
: Name of the auth scheme to use in the OpenAPI spec
153
155
154
-
**Type:** string
155
-
**Required:** No, defaults to `oidcAuth`
156
-
**Example:** `jwtAuth`
156
+
- **Type:** string
157
+
- **Required:** No, defaults to `oidcAuth`
158
+
- **Example:** `jwtAuth`
157
159
158
160
### `OPENAPI_AUTH_SCHEME_OVERRIDE`
159
161
160
162
: Override for the auth scheme in the OpenAPI spec
161
163
162
-
**Type:** JSON object
163
-
**Required:** No, defaults to `null` (disabled)
164
-
**Example:**
165
-
```json
166
-
{
167
-
"type": "http",
168
-
"scheme": "bearer",
169
-
"bearerFormat": "JWT",
170
-
"description": "Paste your raw JWT here. This API uses Bearer token authorization.\n"
171
-
}
172
-
```
164
+
- **Type:** JSON object
165
+
- **Required:** No, defaults to `null` (disabled)
166
+
- **Example:**
167
+
```json
168
+
{
169
+
"type": "http",
170
+
"scheme": "bearer",
171
+
"bearerFormat": "JWT",
172
+
"description": "Paste your raw JWT here. This API uses Bearer token authorization.\n"
173
+
}
174
+
```
173
175
174
176
### `SWAGGER_UI_ENDPOINT`
175
177
176
178
: Path of Swagger UI, used to indicate that a custom Swagger UI should be hosted, typically useful when providing accompanying `SWAGGER_UI_INIT_OAUTH` arguments
177
179
178
-
**Type:** string or null
179
-
**Required:** No, defaults to `/api.html`
180
-
**Example:** `''` (disabled)
180
+
- **Type:** string or null
181
+
- **Required:** No, defaults to `/api.html`
182
+
- **Example:** `''` (disabled)
181
183
182
184
### `SWAGGER_UI_INIT_OAUTH`
183
185
184
186
: Initialization options for the [Swagger UI OAuth2 configuration](https://swagger.io/docs/open-source-tools/swagger-ui/usage/oauth2/) on custom Swagger UI
0 commit comments