initial commit
This commit is contained in:
60
.env.sample
Normal file
60
.env.sample
Normal file
@@ -0,0 +1,60 @@
|
||||
# Gunicorn
|
||||
GUNICORN_WORKERS=3
|
||||
GUNICORN_THREADS=2
|
||||
GUNICORN_TIMEOUT=120
|
||||
|
||||
# Django
|
||||
DJANGO_SETTINGS_MODULE=config.settings.production
|
||||
SECRET_KEY=replace-me
|
||||
DEBUG=False
|
||||
ALLOWED_HOSTS=api-host.example
|
||||
DJANGO_HOST=https://api-host.example
|
||||
|
||||
# Database
|
||||
DB_ENGINE=django.db.backends.postgresql
|
||||
DB_NAME=app
|
||||
DB_USER=app
|
||||
DB_PASSWORD=change-me
|
||||
DB_HOST=db
|
||||
DB_PORT=5432
|
||||
|
||||
# Redis / Celery
|
||||
REDIS_PASSWORD=change-me
|
||||
REDIS_URL=redis://:change-me@redis:6379/0
|
||||
CELERY_BROKER_URL=redis://:change-me@redis:6379/0
|
||||
CELERY_RESULT_BACKEND=redis://:change-me@redis:6379/1
|
||||
|
||||
# Email
|
||||
EMAIL_BACKEND=django.core.mail.backends.smtp.EmailBackend
|
||||
EMAIL_HOST=smtp.example.com
|
||||
EMAIL_PORT=587
|
||||
EMAIL_USE_TLS=True
|
||||
EMAIL_HOST_USER=smtp-user
|
||||
EMAIL_HOST_PASSWORD=smtp-password
|
||||
DEFAULT_FROM_EMAIL=noreply@example.com
|
||||
|
||||
# JWT
|
||||
JWT_SECRET_KEY=replace-me
|
||||
JWT_ALGORITHM=HS256
|
||||
JWT_ACCESS_TOKEN_LIFETIME=3600
|
||||
JWT_REFRESH_TOKEN_LIFETIME=86400
|
||||
|
||||
# Frontend integration
|
||||
CORS_ALLOWED_ORIGINS=https://frontend-host.example
|
||||
FRONTEND_ROOT=https://frontend-host.example
|
||||
FRONTEND_PASSWORD_RESET_PAGE=https://frontend-host.example/reset-password
|
||||
FRONTEND_CALLBACK_URL=https://frontend-host.example/payments/result
|
||||
|
||||
# ZarinPal
|
||||
ZARINPAL_MERCHANT_ID=merchant-id
|
||||
ZARINPAL_USE_SANDBOX=False
|
||||
ZARINPAL_CALLBACK_URL=https://api-host.example/api/payments/callback
|
||||
|
||||
# Optional test overrides
|
||||
TEST_DB_ENGINE=django.db.backends.sqlite3
|
||||
TEST_DB_NAME=db.test.sqlite3
|
||||
TEST_DB_USER=
|
||||
TEST_DB_PASSWORD=
|
||||
TEST_DB_HOST=
|
||||
TEST_DB_PORT=
|
||||
|
||||
Reference in New Issue
Block a user