-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
32 lines (23 loc) · 745 Bytes
/
.env.example
File metadata and controls
32 lines (23 loc) · 745 Bytes
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
APP_TITLE="FastAPI BoilerPlate"
APP_VERSION="0.1.0"
APP_DESCRIPTION="Your Markdown description here"
DEBUG=True
SECRET_KEY=kNXUOXme8Dk4P2hF^*pwTA*Q5$Uu3gkBJ9^0R@LF0^!T9FTu91
# CORS - Optional Variables
USE_CORS_MIDDLEWARE=False
# CORS_ALLOW_ORIGINS='["*", "ANOTHER_ORIGIN"]'
# CORS_ALLOW_METHODS='["*"]'
# CORS_ALLOW_HEADERS='["*"]'
# CORS_ALLOW_CREDENTIALS=True
USE_HTTPS_REDIRECT_MIDDLEWARE=False
ALLOWED_HOSTS='["*"]'
# Database / ORM
DATABASE_URL='postgres://user:password@host:port/database'
TORTOISE_MODELS_MODULES='["models"],'
TORTOISE_GENERATE_SCHEMAS=True
TORTOISE_ADD_EXCEPTION_HANDLERS=True
TORTOISE_USE_TIMEZONE=True
# JWT
JWT_ACCESS_TOKEN_MINUTES_LIFESPAN=15
JWT_ALGORITHM="HS256"
ROUTER_MODULES='["auth.interfaces.http"]'