mirror of
https://github.com/narrrl/holy-flavor-rater.git
synced 2026-11-03 16:41:27 +01:00
updated tls email
This commit is contained in:
1 parent
de7ad2f072
commit
967378bdb5
2 files changed
+8
No files matched your search
@@ -1,4 +1,9 @@
|
|||||||
# --- App Hosting ---
|
# --- 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.
|
# A comma-separated list of domains that can access the backend API.
|
||||||
# Example: CORS_ALLOWED_ORIGINS=http://localhost:5173,https://holy.narl.io
|
# Example: CORS_ALLOWED_ORIGINS=http://localhost:5173,https://holy.narl.io
|
||||||
CORS_ALLOWED_ORIGINS=http://localhost:5173,http://127.0.0.1:5173
|
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) ---
|
# --- Optional (defaults are usually fine) ---
|
||||||
# EMAIL_USE_TLS=true
|
# EMAIL_USE_TLS=true
|
||||||
|
# For providers like Gmail using port 465, you might need to set this to true
|
||||||
|
# EMAIL_USE_SSL=true
|
||||||
@@ -156,6 +156,7 @@ import os
|
|||||||
EMAIL_HOST = os.environ.get('EMAIL_HOST')
|
EMAIL_HOST = os.environ.get('EMAIL_HOST')
|
||||||
EMAIL_PORT = int(os.environ.get('EMAIL_PORT', 587))
|
EMAIL_PORT = int(os.environ.get('EMAIL_PORT', 587))
|
||||||
EMAIL_USE_TLS = os.environ.get('EMAIL_USE_TLS', 'true').lower() == 'true'
|
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_USER = os.environ.get('EMAIL_HOST_USER')
|
||||||
EMAIL_HOST_PASSWORD = os.environ.get('EMAIL_HOST_PASSWORD')
|
EMAIL_HOST_PASSWORD = os.environ.get('EMAIL_HOST_PASSWORD')
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user