Skip to content

Commit ad47dda

Browse files
committed
docs(user-guide): formatting
1 parent 6718991 commit ad47dda

File tree

1 file changed

+53
-53
lines changed

1 file changed

+53
-53
lines changed

docs/user-guide/configuration.md

Lines changed: 53 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -8,57 +8,57 @@ The application is configurable via environment variables.
88

99
: STAC API URL
1010

11-
**Type:** HTTP(S) URL
12-
**Required:** Yes
11+
**Type:** HTTP(S) URL
12+
**Required:** Yes
1313
**Example:** `https://your-stac-api.com/stac`
1414

1515
### `WAIT_FOR_UPSTREAM`
1616

1717
: Wait for upstream API to become available before starting proxy
1818

19-
**Type:** boolean
20-
**Required:** No, defaults to `true`
19+
**Type:** boolean
20+
**Required:** No, defaults to `true`
2121
**Example:** `false`, `1`, `True`
2222

2323
### `CHECK_CONFORMANCE`
2424

2525
: Ensure upstream API conforms to required conformance classes before starting proxy
2626

27-
**Type:** boolean
28-
**Required:** No, defaults to `true`
27+
**Type:** boolean
28+
**Required:** No, defaults to `true`
2929
**Example:** `false`, `1`, `True`
3030

3131
### `ENABLE_COMPRESSION`
3232

3333
: Enable response compression
3434

35-
**Type:** boolean
36-
**Required:** No, defaults to `true`
35+
**Type:** boolean
36+
**Required:** No, defaults to `true`
3737
**Example:** `false`, `1`, `True`
3838

3939
### `HEALTHZ_PREFIX`
4040

4141
: Path prefix for health check endpoints
4242

43-
**Type:** string
44-
**Required:** No, defaults to `/healthz`
43+
**Type:** string
44+
**Required:** No, defaults to `/healthz`
4545
**Example:** `''` (disabled)
4646

4747
### `OVERRIDE_HOST`
4848

4949
: Override the host header for the upstream API
5050

51-
**Type:** boolean
52-
**Required:** No, defaults to `true`
51+
**Type:** boolean
52+
**Required:** No, defaults to `true`
5353
**Example:** `false`, `1`, `True`
5454

5555
### `ROOT_PATH`
5656

5757
: Path prefix for the proxy API
5858

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`
6262
**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.
6363

6464
## Authentication
@@ -67,16 +67,16 @@ The application is configurable via environment variables.
6767

6868
: OpenID Connect discovery document URL
6969

70-
**Type:** HTTP(S) URL
71-
**Required:** Yes
70+
**Type:** HTTP(S) URL
71+
**Required:** Yes
7272
**Example:** `https://auth.example.com/.well-known/openid-configuration`
7373

7474
### `OIDC_DISCOVERY_INTERNAL_URL`
7575

7676
: Internal network OpenID Connect discovery document URL
7777

78-
**Type:** HTTP(S) URL
79-
**Required:** No, defaults to the value of `OIDC_DISCOVERY_URL`
78+
**Type:** HTTP(S) URL
79+
**Required:** No, defaults to the value of `OIDC_DISCOVERY_URL`
8080
**Example:** `http://auth/.well-known/openid-configuration`
8181

8282
### `ALLOWED_JWT_AUDIENCES`
@@ -86,22 +86,22 @@ The application is configurable via environment variables.
8686
**Type:** string
8787
**Required:** No
8888
**Example:** `https://auth.example.audience.1.net,https://auth.example.audience.2.net`
89-
**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
89+
**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
9090

9191

9292
### `DEFAULT_PUBLIC`
9393

9494
: Default access policy for endpoints
9595

96-
**Type:** boolean
97-
**Required:** No, defaults to `false`
96+
**Type:** boolean
97+
**Required:** No, defaults to `false`
9898
**Example:** `false`, `1`, `True`
9999

100100
### `PRIVATE_ENDPOINTS`
101101

102102
: Endpoints explicitly marked as requiring authentication and possibly scopes
103103

104-
**Type:** JSON object mapping regex patterns to HTTP methods OR tuples of an HTTP method and string representing required scopes
104+
**Type:** JSON object mapping regex patterns to HTTP methods OR tuples of an HTTP method and string representing required scopes
105105
**Required:** No, defaults to the following:
106106
```json
107107
{
@@ -117,7 +117,7 @@ The application is configurable via environment variables.
117117

118118
: Endpoints explicitly marked as not requiring authentication, used when `DEFAULT_PUBLIC == False`
119119

120-
**Type:** JSON object mapping regex patterns to HTTP methods
120+
**Type:** JSON object mapping regex patterns to HTTP methods
121121
**Required:** No, defaults to the following:
122122
```json
123123
{
@@ -134,8 +134,8 @@ The application is configurable via environment variables.
134134

135135
: Enable authentication extension in STAC API responses
136136

137-
**Type:** boolean
138-
**Required:** No, defaults to `true`
137+
**Type:** boolean
138+
**Required:** No, defaults to `true`
139139
**Example:** `false`, `1`, `True`
140140

141141
## OpenAPI / Swagger UI
@@ -152,22 +152,22 @@ The application is configurable via environment variables.
152152

153153
: Name of the auth scheme to use in the OpenAPI spec
154154

155-
**Type:** string
156-
**Required:** No, defaults to `oidcAuth`
155+
**Type:** string
156+
**Required:** No, defaults to `oidcAuth`
157157
**Example:** `jwtAuth`
158158

159159
### `OPENAPI_AUTH_SCHEME_OVERRIDE`
160160

161161
: Override for the auth scheme in the OpenAPI spec
162162

163-
**Type:** JSON object
164-
**Required:** No, defaults to `null` (disabled)
165-
**Example:**
163+
**Type:** JSON object
164+
**Required:** No, defaults to `null` (disabled)
165+
**Example:**
166166
```json
167167
{
168-
"type": "http",
169-
"scheme": "bearer",
170-
"bearerFormat": "JWT",
168+
"type": "http",
169+
"scheme": "bearer",
170+
"bearerFormat": "JWT",
171171
"description": "Paste your raw JWT here. This API uses Bearer token authorization.\n"
172172
}
173173
```
@@ -184,8 +184,8 @@ The application is configurable via environment variables.
184184

185185
: Initialization options for the [Swagger UI OAuth2 configuration](https://swagger.io/docs/open-source-tools/swagger-ui/usage/oauth2/) on custom Swagger UI
186186

187-
**Type:** JSON object
188-
**Required:** No, defaults to `null` (disabled)
187+
**Type:** JSON object
188+
**Required:** No, defaults to `null` (disabled)
189189
**Example:** `{"clientId": "stac-auth-proxy", "usePkceWithAuthorizationCodeGrant": true}`
190190

191191
## Filtering
@@ -194,62 +194,62 @@ The application is configurable via environment variables.
194194

195195
: CQL2 expression generator for item-level filtering
196196

197-
**Type:** JSON object with class configuration
198-
**Required:** No, defaults to `null` (disabled)
197+
**Type:** JSON object with class configuration
198+
**Required:** No, defaults to `null` (disabled)
199199
**Example:** `stac_auth_proxy.filters:Opa`, `stac_auth_proxy.filters:Template`, `my_package:OrganizationFilter`
200200

201201
### `ITEMS_FILTER_ARGS`
202202

203203
: Positional arguments for CQL2 expression generator
204204

205-
**Type:** List of positional arguments used to initialize the class
206-
**Required:** No, defaults to `[]`
205+
**Type:** List of positional arguments used to initialize the class
206+
**Required:** No, defaults to `[]`
207207
**Example:** `["org1"]`
208208

209209
### `ITEMS_FILTER_KWARGS`
210210

211211
: Keyword arguments for CQL2 expression generator
212212

213-
**Type:** Dictionary of keyword arguments used to initialize the class
214-
**Required:** No, defaults to `{}`
213+
**Type:** Dictionary of keyword arguments used to initialize the class
214+
**Required:** No, defaults to `{}`
215215
**Example:** `{"field_name": "properties.organization"}`
216216

217217
### `ITEMS_FILTER_PATH`
218218

219219
: Regex pattern used to identify request paths that require the application of the items filter
220220

221-
**Type:** Regex string
222-
**Required:** No, defaults to `^(/collections/([^/]+)/items(/[^/]+)?$|/search$)`
221+
**Type:** Regex string
222+
**Required:** No, defaults to `^(/collections/([^/]+)/items(/[^/]+)?$|/search$)`
223223
**Example:** `^(/collections/([^/]+)/items(/[^/]+)?$|/search$|/custom$)`
224224

225225
### `COLLECTIONS_FILTER_CLS`
226226

227227
: CQL2 expression generator for collection-level filtering
228228

229-
**Type:** JSON object with class configuration
230-
**Required:** No, defaults to `null` (disabled)
229+
**Type:** JSON object with class configuration
230+
**Required:** No, defaults to `null` (disabled)
231231
**Example:** `stac_auth_proxy.filters:Opa`, `stac_auth_proxy.filters:Template`, `my_package:OrganizationFilter`
232232

233233
### `COLLECTIONS_FILTER_ARGS`
234234

235235
: Positional arguments for CQL2 expression generator
236236

237-
**Type:** List of positional arguments used to initialize the class
238-
**Required:** No, defaults to `[]`
237+
**Type:** List of positional arguments used to initialize the class
238+
**Required:** No, defaults to `[]`
239239
**Example:** `["org1"]`
240240

241241
### `COLLECTIONS_FILTER_KWARGS`
242242

243243
: Keyword arguments for CQL2 expression generator
244244

245-
**Type:** Dictionary of keyword arguments used to initialize the class
246-
**Required:** No, defaults to `{}`
245+
**Type:** Dictionary of keyword arguments used to initialize the class
246+
**Required:** No, defaults to `{}`
247247
**Example:** `{"field_name": "properties.organization"}`
248248

249249
### `COLLECTIONS_FILTER_PATH`
250250

251251
: Regex pattern used to identify request paths that require the application of the collections filter
252252

253-
**Type:** Regex string
254-
**Required:** No, defaults to `^/collections(/[^/]+)?$`
255-
**Example:** `^.*?/collections(/[^/]+)?$`
253+
**Type:** Regex string
254+
**Required:** No, defaults to `^/collections(/[^/]+)?$`
255+
**Example:** `^.*?/collections(/[^/]+)?$`

0 commit comments

Comments
 (0)