Skip to content

Commit 6da4a4b

Browse files
committed
update docs
1 parent 5d03d32 commit 6da4a4b

File tree

5 files changed

+20
-4
lines changed

5 files changed

+20
-4
lines changed

.github/workflows/deploy_mkdocs.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ jobs:
4242
titiler.core.utils \
4343
titiler.core.routing \
4444
titiler.core.errors \
45-
titiler.core.resources.enums
45+
titiler.core.resources.enums \
46+
titiler.core.middleware
4647
4748
pdocs as_markdown \
4849
--output_dir docs/src/api \

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,4 +107,4 @@ ENV/
107107

108108
cdk.out/
109109
deployment/k8s/titiler/values-test.yaml
110-
docs/api
110+
docs/src/api/

CONTRIBUTING.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@ $ mkdocs gh-deploy -f docs/mkdocs.yml
5353
titiler.core.utils \
5454
titiler.core.routing \
5555
titiler.core.errors \
56-
titiler.core.resources.enums
56+
titiler.core.resources.enums \
57+
titiler.core.middleware
5758

5859
pdocs as_markdown \
5960
--output_dir docs/src/api \

docs/mkdocs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ nav:
6969
- routing: api/titiler/core/routing.md
7070
- errors: api/titiler/core/errors.md
7171
- enums: api/titiler/core/resources/enums.md
72-
72+
- middleware: api/titiler/core/middleware.md
7373
- titiler.mosaic:
7474
- factory: api/titiler/mosaic/factory.md
7575
- enums: api/titiler/mosaic/resources/enums.md

docs/src/intro.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,20 @@ See default endpoints documentation pages:
2121
* [`/stac` - Spatio Temporal Asset Catalog](endpoints/stac.md)
2222
* [`/tms` - TileMatrixSets](endpoints/tms.md)
2323

24+
#### Settings
25+
26+
The default application can be customized using environment variables defined in `titiler.application.settings.ApiSettings` class. Each variable needs to be prefixed with `TITILER_API_`.
27+
28+
- `NAME` (str): name of the application. Defaults to `titiler`.
29+
- `CORS_ORIGINS` (str, `,` delimited origins): allowed CORS origin. Defaults to `*`.
30+
- `CACHECONTROL` (str): Cache control header to add to responses. Defaults to `"public, max-age=3600"`.
31+
- `ROOT_PATH` (str): path behind proxy.
32+
- `DEBUG` (str): adds `LoggerMiddleware` and `TotalTimeMiddleware` in the middleware stack.
33+
- `DISABLE_COG` (bool): disable `/cog` endpoints.
34+
- `DISABLE_STAC` (bool): disable `/stac` endpoints.
35+
- `DISABLE_MOSAIC` (bool): disable `/mosaic` endpoints.
36+
- `LOWER_CASE_QUERY_PARAMETERS` (bool): transform all query-parameters to lower case (see https://github.com/developmentseed/titiler/pull/321).
37+
2438
## Development
2539

2640
To install and run `Titiler` from sources and for developing the `Titiler` code itself:

0 commit comments

Comments
 (0)