Skip to content

Latest commit

 

History

History
32 lines (27 loc) · 1.71 KB

backend.md

File metadata and controls

32 lines (27 loc) · 1.71 KB

Environment Variables

General

Name Description
DJANGO_DEBUG Set to True or False
DJANGO_SECRET_KEY Secret used to sign the session, messages, crypography

Reference to: Django Settings Documentation

Database

Name Description
DB_NAME Name of the database to use
DB_HOST URI to MySQL database
DB_PORT Port to use when connecting to database
DB_USER Username to use when connecting to database
DB_PASSWORD Password to use when connecting to database

Google Provider (NextAuth)

Name Description
GOOGLE_CLIENT_ID OAuth 2.0 Client ID
GOOGLE_CLIENT_SECRET OAuth 2.0 Client Secret

Reference to: NextAuth Documentation

JWT Token

Name Description
JWT_SECRET_KEY Secret used to sign JWT Tokens
JWT_ACCESS_TOKEN_EXPIRY_MINS Number of minutes before access token expires
JWT_REFRESH_TOKEN_EXPIRY_DAYS Number of days before refresh token expires