-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathsample.env
More file actions
40 lines (27 loc) · 1.54 KB
/
sample.env
File metadata and controls
40 lines (27 loc) · 1.54 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# # # API Server Settings # # #
# Port where to expose the server (default=5000)
API_PORT=5000
# Host where to bind the server (0.0.0.0 to bind all) (default=0.0.0.0)
API_HOST=0.0.0.0
# # # API Docs Settings # # #
# App Title, as shown in generated documentation (default="{{ cookiecutter.app_name }}")
API_DOCS_TITLE="{{ cookiecutter.app_name }}"
# App Description, as shown in generated documentation (default=nothing)
#API_DOCS_DESCRIPTION="FastAPI project"
# App Version, as shown in generated documentation (default="version")
#API_DOCS_VERSION="0.0.1"
{% if cookiecutter.advanced_docs == "yes" -%}
# Custom logo URL to show in generated ReDoc documentation (default=nothing)
#API_DOCS_CUSTOM_LOGO=""
# If a static path is set, external dependencies used for OpenAPI/ReDoc documentation will be self-hosted instead of loaded from external CDN servers. (default=nothing)
# The path must be a local accessible directory, absolute or relative. The files required for each documentation platform are:
# - Swagger (OpenAPI): "swagger-ui.bundle.js", "swagger-ui.css", "favicon.ico"
# - ReDoc: "redoc.standalone.js", "favicon.ico"
# The files can be downloaded from: https://fastapi.tiangolo.com/advanced/extending-openapi/#download-the-files
#API_DOCS_STATIC_PATH="static"
{% endif %}
# # # Request Logging Settings # # #
# Minimal log level for request logs. One of: TRACE, DEBUG, INFO, WARNING, ERROR (default=DEBUG)
REQUEST_LOG_LEVEL=TRACE
# If enabled, request logs will be output as JSON, useful for persistence (default=no)
REQUEST_LOG_SERIALIZE=no