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/configuration.md
+60-58Lines changed: 60 additions & 58 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,57 +8,57 @@ The application is configurable via environment variables.
8
8
9
9
: STAC API URL
10
10
11
-
**Type:** HTTP(S) URL
12
-
**Required:** Yes
11
+
**Type:** HTTP(S) URL
12
+
**Required:** Yes
13
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`
19
+
**Type:** boolean
20
+
**Required:** No, defaults to `true`
21
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`
27
+
**Type:** boolean
28
+
**Required:** No, defaults to `true`
29
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`
35
+
**Type:** boolean
36
+
**Required:** No, defaults to `true`
37
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`
43
+
**Type:** string
44
+
**Required:** No, defaults to `/healthz`
45
45
**Example:** `''` (disabled)
46
46
47
47
### `OVERRIDE_HOST`
48
48
49
49
: Override the host header for the upstream API
50
50
51
-
**Type:** boolean
52
-
**Required:** No, defaults to `true`
51
+
**Type:** boolean
52
+
**Required:** No, defaults to `true`
53
53
**Example:** `false`, `1`, `True`
54
54
55
55
### `ROOT_PATH`
56
56
57
57
: Path prefix for the proxy API
58
58
59
-
**Type:** string
60
-
**Required:** No, defaults to `''` (root path)
61
-
**Example:** `/api/v1`
59
+
**Type:** string
60
+
**Required:** No, defaults to `''` (root path)
61
+
**Example:** `/api/v1`
62
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.
63
63
64
64
## Authentication
@@ -67,31 +67,31 @@ The application is configurable via environment variables.
: Endpoints explicitly marked as requiring authentication and possibly scopes
93
93
94
-
**Type:** JSON object mapping regex patterns to HTTP methods OR tuples of an HTTP method and string representing required scopes
94
+
**Type:** JSON object mapping regex patterns to HTTP methods OR tuples of an HTTP method and string representing required scopes
95
95
**Required:** No, defaults to the following:
96
96
```json
97
97
{
@@ -107,12 +107,14 @@ The application is configurable via environment variables.
107
107
108
108
: Endpoints explicitly marked as not requiring authentication, used when `DEFAULT_PUBLIC == False`
109
109
110
-
**Type:** JSON object mapping regex patterns to HTTP methods
110
+
**Type:** JSON object mapping regex patterns to HTTP methods
111
111
**Required:** No, defaults to the following:
112
112
```json
113
113
{
114
+
"^/$": ["GET"],
114
115
"^/api.html$": ["GET"],
115
116
"^/api$": ["GET"],
117
+
"^/conformance$": ["GET"],
116
118
"^/docs/oauth2-redirect": ["GET"],
117
119
"^/healthz": ["GET"]
118
120
}
@@ -122,8 +124,8 @@ The application is configurable via environment variables.
122
124
123
125
: Enable authentication extension in STAC API responses
124
126
125
-
**Type:** boolean
126
-
**Required:** No, defaults to `true`
127
+
**Type:** boolean
128
+
**Required:** No, defaults to `true`
127
129
**Example:** `false`, `1`, `True`
128
130
129
131
## OpenAPI / Swagger UI
@@ -132,30 +134,30 @@ The application is configurable via environment variables.
132
134
133
135
: Path of OpenAPI specification, used for augmenting spec response with auth configuration
134
136
135
-
**Type:** string or null
136
-
**Required:** No, defaults to `null` (disabled)
137
-
**Example:** `/api`
137
+
**Type:** string or null
138
+
**Required:** No, defaults to `/api`
139
+
**Example:** `''` (disabled)
138
140
139
141
### `OPENAPI_AUTH_SCHEME_NAME`
140
142
141
143
: Name of the auth scheme to use in the OpenAPI spec
142
144
143
-
**Type:** string
144
-
**Required:** No, defaults to `oidcAuth`
145
+
**Type:** string
146
+
**Required:** No, defaults to `oidcAuth`
145
147
**Example:** `jwtAuth`
146
148
147
149
### `OPENAPI_AUTH_SCHEME_OVERRIDE`
148
150
149
151
: Override for the auth scheme in the OpenAPI spec
150
152
151
-
**Type:** JSON object
152
-
**Required:** No, defaults to `null` (disabled)
153
-
**Example:**
153
+
**Type:** JSON object
154
+
**Required:** No, defaults to `null` (disabled)
155
+
**Example:**
154
156
```json
155
157
{
156
-
"type": "http",
157
-
"scheme": "bearer",
158
-
"bearerFormat": "JWT",
158
+
"type": "http",
159
+
"scheme": "bearer",
160
+
"bearerFormat": "JWT",
159
161
"description": "Paste your raw JWT here. This API uses Bearer token authorization.\n"
160
162
}
161
163
```
@@ -164,16 +166,16 @@ The application is configurable via environment variables.
164
166
165
167
: 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
166
168
167
-
**Type:** string or null
168
-
**Required:** No, defaults to `null` (disabled)
169
-
**Example:** `/api.html`
169
+
**Type:** string or null
170
+
**Required:** No, defaults to `/api.html`
171
+
**Example:** `''` (disabled)
170
172
171
173
### `SWAGGER_UI_INIT_OAUTH`
172
174
173
175
: 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