mirror of
https://github.com/lemeow125/DRF_Template.git
synced 2025-09-18 05:29:37 +08:00
Move to uv/pyproject and overhaul project structure
This commit is contained in:
commit
fbb76f8196
26 changed files with 1981 additions and 0 deletions
34
.env.sample
Normal file
34
.env.sample
Normal file
|
@ -0,0 +1,34 @@
|
|||
# # BACKEND
|
||||
# API Secret Key
|
||||
BACKEND_SECRET_KEY="REPLACE-ME"
|
||||
|
||||
# API Debug
|
||||
BACKEND_DEBUG="True"
|
||||
BACKEND_TIMEZONE="Asia/Manila"
|
||||
|
||||
# Allowed API CORS origins (comma-separated, e.g., https://example.com,http://localhost:3000)
|
||||
BACKEND_CORS_ORIGINS="http://localhost:3000,http://localhost:8000"
|
||||
|
||||
# Allowed API hosts (comma-separated, e.g., example.com,localhost,10.0.10.8)
|
||||
BACKEND_ALLOWED_HOSTS="localhost"
|
||||
|
||||
# Use timezone-aware datetimes or fall back to UTC
|
||||
BACKEND_USE_TZ="True"
|
||||
|
||||
# API JWT Authentication
|
||||
BACKEND_ACCESS_TOKEN_LIFETIME_MINUTES="240"
|
||||
BACKEND_REFRESH_TOKEN_LIFETIME_DAYS="3"
|
||||
|
||||
# SMTP
|
||||
BACKEND_SMTP_HOST="inbucket"
|
||||
BACKEND_SMTP_PORT="587"
|
||||
BACKEND_SMTP_USE_TLS="False"
|
||||
BACKEND_SMTP_AUTH_USERNAME="inbucket"
|
||||
BACKEND_SMTP_AUTH_PASSWORD="inbucket"
|
||||
BACKEND_SMTP_FROM_ADDRESS="admin@test.com"
|
||||
|
||||
# docker-compose.yml
|
||||
BACKEND_PORT=8000
|
||||
|
||||
# Override OpenAPI schema.yml on startup
|
||||
BACKEND_OVERWRITE_OPENAPI_SCHEMA="False"
|
Loading…
Add table
Add a link
Reference in a new issue