This repository has been archived by the owner on Mar 24, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
19 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -145,6 +145,7 @@ Contents | |
:maxdepth: 2 | ||
|
||
reference | ||
env | ||
glossary | ||
|
||
|
||
|