Skip to content

Authorization

General

API_TOKEN

Optional, default value: YOUR-API-TOKEN

API token

AUTH_TOKEN

Optional, default value: YOUR-AUTHENTICATION-TOKEN

Authentication token

JWT_SECRET_KEY

Optional, default value: YOUR-JWT-SECRET-KEY

JWT secret key

JWT_SUBJECT

Optional, default value: brick

JWT subject

JWT_TOKEN_PREFIX

Optional, default value: brick

JWT token prefix

JWT_ALGORITHM

Optional, default value: HS256

JWT algorithm

JWT_MIN

Optional, default value: 0

JWT expiration minute

JWT_HOUR

Optional, default value: 0

JWT expiration hour

JWT_DAY

Optional, default value: 14

JWT expiration day

CORS

IS_ALLOWED_CREDENTIALS

Optional, default value: True

CORS allowed credentials

ALLOWED_ORIGINS

Optional, default value: ['http://localhost:3000', 'http://0.0.0.0:3000', 'http://127.0.0.1:3000', 'http://127.0.0.1:3001', 'http://localhost:5173', 'http://0.0.0.0:5173', 'http://127.0.0.1:5173', 'http://127.0.0.1:5174']

ALLOWED_METHODS

Optional, default value: ['*']

ALLOWED_HEADERS

Optional, default value: ['*']

Google OAuth2

OAUTH_GOOGLE_CLIENT_ID

Optional, default value: ``

Google OAuth client id

OAUTH_GOOGLE_CLIENT_SECRET

Optional, default value: ``

Google OAuth client secret