Skip to content

Commit 6ce36b6

Browse files
committed
added appendix in the documentation for environment variable settings
1 parent 3172c71 commit 6ce36b6

3 files changed

Lines changed: 43 additions & 2 deletions

File tree

docs/source/appendix/index.rst

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
Appendix
2+
========
3+
4+
Environment variables used by pydggsapi
5+
---------------------------------------
6+
7+
Mandatory
8+
~~~~~~~~~
9+
10+
============================== =========================================== ===============================
11+
Environment variable name Defautl value Description
12+
============================== =========================================== ===============================
13+
DGGS_API_CONFIG No default, mandatory Path to pydggsapi configration
14+
============================== =========================================== ===============================
15+
16+
Optional
17+
~~~~~~~~~
18+
============================== =========================================== ===============================
19+
Environment variable name Defautl value Description
20+
============================== =========================================== ===============================
21+
WORKERS 4 Uvicorn number of workers
22+
BIND 0.0.0.0:8000 Uvicorn binding address
23+
DGGS_PREFIX /dggs-api pydggsapi url prefix
24+
TILES_PREFIX /tiles-api pydggsapi MVT tiles url prefix
25+
API_TITLE University of Tartu, OGC DGGS API v1-pre FastAPI title
26+
API_DESCRIPTION OGC DGGS API FastAPI description
27+
ROOT_PATH None FastAPI root_path
28+
OPENAPI_URL /openapi.json FastAPI openapi path
29+
DOCS_URL /docs FastAPI docs url
30+
SWAGGER_UI_OAUTH2_REDIRECT_URL /docs/oauth2-redirect FastAPI openapi aith redirect url
31+
CORS ["http://localhost"] FastAPI Cross-origin resource sharing
32+
GZIP_ENABLED True FastAPI enable Gzip compression
33+
GZIP_COMPRESS_LEVEL 5 FastAPI Gzip compress level
34+
GZIP_MINIMUM_SIZE 500 FastAPI minimum size for compression
35+
REDOC_URL /redoc
36+
DGGRID_PATH None Path to dggrid executable, only use with IGEO7DGGRSProvider
37+
============================== =========================================== ===============================
38+

docs/source/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,4 @@ OGC API - DGGS specifies an API for accessing data organised according to a Disc
3333
providers/index
3434
pydggsapi demo notebook <example_notebook/pydggsapi_demo_notebook.ipynb>
3535
API endpoints examples <example_notebook/Endpoints_Examples.ipynb>
36+
Appendix <appendix/index>

docs/source/introduction.rst

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ or install the latest updates from GitHub (under the same virtual environment of
4444
DGGS_API_CONFIG=<Path to TinyDB>
4545
DGGRID_PATH=<Path to dggrid executable>
4646
47+
Users can control some pydggsapi settings through environment variables, such as ``DGGS_PREFIX`` to set the pydggsapi prefix for reverse proxy configuration. Users can refer to the :doc:`Appendix </appendix/index>` for more information.
48+
4749
3. Start the server:
4850

4951
.. code-block:: bash
@@ -56,7 +58,7 @@ Docker build
5658

5759
We have now a Dockerfile (thanks to CRIM/https://github.com/fmigneault) that allows you to easily build and run pydggsapi in a containerized environment.
5860

59-
You can build the docker image using the following command:
61+
You can build the docker image using the following command at the repository root diretory:
6062

6163
.. code-block:: bash
6264
@@ -93,7 +95,7 @@ In order to work with IGEO7 (using `DGGRID <https://github.com/sahrk/DGGRID>`_),
9395

9496
.. code-block:: bash
9597
96-
dggs_api_config=<Path to TinyDB>
98+
DGGS_API_CONFIG=<Path to TinyDB>
9799
DGGRID_PATH=<Path to dggrid executable>
98100
99101
4. Start the server:

0 commit comments

Comments
 (0)