updated tls email

This commit is contained in:
nvrl committed 2026-02-15 21:59:43 +01:00
1 parent de7ad2f072
commit 967378bdb5
2 files changed
+8

No files matched your search

+7
View File
@@ -1,4 +1,9 @@
# --- App Hosting ---
# A comma-separated list of hostnames that the Vite dev server will accept.
# Required if you are accessing the frontend via a custom domain.
# Example: VITE_ALLOWED_HOSTS=holy.narl.io,localhost
VITE_ALLOWED_HOSTS=localhost
# A comma-separated list of domains that can access the backend API.
# Example: CORS_ALLOWED_ORIGINS=http://localhost:5173,https://holy.narl.io
CORS_ALLOWED_ORIGINS=http://localhost:5173,http://127.0.0.1:5173
@@ -22,3 +27,5 @@ EMAIL_HOST_PASSWORD=your-app-password
# --- Optional (defaults are usually fine) ---
# EMAIL_USE_TLS=true
# For providers like Gmail using port 465, you might need to set this to true
# EMAIL_USE_SSL=true
+1
View File
@@ -156,6 +156,7 @@ import os
EMAIL_HOST = os.environ.get('EMAIL_HOST')
EMAIL_PORT = int(os.environ.get('EMAIL_PORT', 587))
EMAIL_USE_TLS = os.environ.get('EMAIL_USE_TLS', 'true').lower() == 'true'
EMAIL_USE_SSL = os.environ.get('EMAIL_USE_SSL', 'false').lower() == 'true'
EMAIL_HOST_USER = os.environ.get('EMAIL_HOST_USER')
EMAIL_HOST_PASSWORD = os.environ.get('EMAIL_HOST_PASSWORD')