From 63a9b8f301076b03582c699539e00d7669fe990d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joakim=20Helle=C5=9Ben?= Date: Mon, 23 Mar 2026 22:14:56 +0100 Subject: [PATCH] Add example environment configuration file --- .env.example | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .env.example diff --git a/.env.example b/.env.example new file mode 100644 index 0000000..779d5af --- /dev/null +++ b/.env.example @@ -0,0 +1,31 @@ +# Django Configuration +# Set to False in production +DEBUG=True + +# Django Secret Key +# Generate a new secret key for production: python -c 'from django.core.management.utils import get_random_secret_key; print(get_random_secret_key())' +DJANGO_SECRET_KEY=your-secret-key-here + +# Email Configuration +# SMTP Host (examples below) +EMAIL_HOST=smtp.gmail.com + +# SMTP Port (common ports: 587 for TLS, 465 for SSL, 25 for unencrypted) +EMAIL_PORT=587 + +# Email credentials +EMAIL_HOST_USER=your-email@gmail.com +EMAIL_HOST_PASSWORD=your-app-password-here + +# Connection security +# Use TLS (True for most providers like Gmail, Outlook) +EMAIL_USE_TLS=True +# Use SSL (False for most providers, True for some older configurations) +EMAIL_USE_SSL=False + +# Connection timeout in seconds +EMAIL_TIMEOUT=10 + +# Redis Configuration +REDIS_URL_CACHE=unix:///var/run/redis/redis.sock?db=2 +REDIS_URL_CELERY=unix:///var/run/redis/redis.sock?db=3