Skip to content
This repository has been archived by the owner on Mar 24, 2024. It is now read-only.

Commit

Permalink
Add env variables doc
Browse files Browse the repository at this point in the history
  • Loading branch information
lsbardel committed Feb 9, 2020
1 parent f8bf848 commit 06c6fcf
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
18 changes: 18 additions & 0 deletions docs/env.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
.. _aio-openapi-env:


======================
Environment Variables
======================

Several environment variables can be configured at application level

* **BAD_DATA_MESSAGE** (Invalid data format), message displayed when data is not in valid format (not JSON for example)
* **ERROR_500_MESSSAGE** (Internal Server Error), message displayed when things go wrong
* **DBPOOL_MIN_SIZE** (10), minimum number of connection in postgres connection pool
* **DBPOOL_MAX_SIZE** (10), maximum number of connections in postgres connection pool
* **MICRO_SERVICE_PORT** (8080), default port when running the `serve` command
* **MICRO_SERVICE_HOST** (0.0.0.0), default host when running the `serve` command
* **MAX_PAGINATION_LIMIT** (100), maximum number of objects displayed at once
* **DEF_PAGINATION_LIMIT** (50), default value of pagination
* **SPEC_ROUTE** (/spec), path of OpenAPI spec doc (JSON)
1 change: 1 addition & 0 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ Contents
:maxdepth: 2

reference
env
glossary


Expand Down

0 comments on commit 06c6fcf

Please sign in to comment.