mirror of
https://github.com/ramvignesh-b/pi-ku.git
synced 2026-05-04 08:56:52 +00:00
feat: configure SMTP email settings using environment variables
This commit is contained in:
@@ -15,6 +15,8 @@ CORS_ALLOWED_ORIGINS=http://localhost:5173,http://127.0.0.1:5173
|
||||
EMAIL_HOST=localhost
|
||||
EMAIL_PORT=1025
|
||||
FROM_EMAIL=Pi Ku <no-reply@piku.app>
|
||||
EMAIL_HOST_USER=root
|
||||
EMAIL_HOST_PASSWORD=password123
|
||||
|
||||
# FRONTEND
|
||||
VITE_API_URL=http://localhost:8000
|
||||
|
||||
@@ -119,6 +119,12 @@ SIMPLE_JWT = {
|
||||
|
||||
# Email config
|
||||
EMAIL_BACKEND = "django.core.mail.backends.smtp.EmailBackend"
|
||||
EMAIL_HOST = env("EMAIL_HOST")
|
||||
EMAIL_PORT = env("EMAIL_PORT")
|
||||
EMAIL_USE_TLS = not DEBUG # false for local, true for production
|
||||
EMAIL_USE_SSL = False # since we enforce TLS
|
||||
EMAIL_HOST_USER = env("EMAIL_HOST_USER")
|
||||
EMAIL_HOST_PASSWORD = env("EMAIL_HOST_PASSWORD")
|
||||
FROM_EMAIL = env("FROM_EMAIL")
|
||||
|
||||
FRONTEND_URL = env("FRONTEND_URL")
|
||||
|
||||
Reference in New Issue
Block a user