mirror of
https://github.com/lemeow125/DRF_Template.git
synced 2025-08-02 17:23:16 +08:00
Overhauled entire project config, added notifications, email templates, optimized stripe subscriptions, redis caching, and webdriver utilities
This commit is contained in:
parent
7cbe8fd720
commit
99dfcef67b
84 changed files with 4300 additions and 867 deletions
60
.env.sample
Normal file
60
.env.sample
Normal file
|
@ -0,0 +1,60 @@
|
|||
# Django
|
||||
### Use https://djecrety.ir/ for generation!
|
||||
SECRET_KEY = ''
|
||||
|
||||
# Production Switches
|
||||
BACKEND_DEBUG = 'True'
|
||||
|
||||
# Superuser Credentials
|
||||
DJANGO_ADMIN_USERNAME = 'admin'
|
||||
DJANGO_ADMIN_EMAIL = 'admin@drf-template.com'
|
||||
DJANGO_ADMIN_PASSWORD = ''
|
||||
|
||||
# Seed Data Credentials
|
||||
SEED_DATA = 'True'
|
||||
SEED_DATA_PASSWORD = '12345'
|
||||
|
||||
# Email Credentials
|
||||
EMAIL_HOST = 'inbucket'
|
||||
EMAIL_HOST_USER = ''
|
||||
EMAIL_HOST_PASSWORD = ''
|
||||
EMAIL_PORT = '1025'
|
||||
EMAIL_USE_TLS = 'False'
|
||||
EMAIL_ADDRESS = 'noreply-testing@drf-template.com'
|
||||
|
||||
# Database
|
||||
### Have different credentials set on dev, staging, and prod!
|
||||
DB_DATABASE = 'drf-template'
|
||||
DB_USERNAME = 'root'
|
||||
DB_PASSWORD = ''
|
||||
DB_HOST = 'postgres'
|
||||
DB_PORT = '5432'
|
||||
DB_SSL_MODE = 'disable'
|
||||
|
||||
# Redis
|
||||
### Used for DB cache and Celery broker
|
||||
REDIS_HOST = 'redis'
|
||||
REDIS_PORT = '6379'
|
||||
|
||||
# Celery
|
||||
CELERY_BROKER = 'redis://redis:6379/0'
|
||||
CELERY_RESULT_BACKEND = 'redis://redis:6379/0'
|
||||
|
||||
# Stripe
|
||||
STRIPE_SECRET_KEY = ''
|
||||
STRIPE_SECRET_WEBHOOK = ''
|
||||
|
||||
BACKEND_DOMAIN = 'localhost:8000'
|
||||
DOMAIN = 'localhost:4200'
|
||||
USE_HTTPS = 'False'
|
||||
DJANGO_PORT = '8000'
|
||||
|
||||
# Proxy (For Selenium)
|
||||
USE_PROXY = 'False'
|
||||
## IP-Whitelisted Proxy Address
|
||||
PROXY_IP_WHITELIST = 'proxy-here.com:12345'
|
||||
## Username/Password Proxy Address
|
||||
PROXY_USER_AUTH = 'username:password@proxy-here.com:12345'
|
||||
|
||||
# CAPTCHA
|
||||
CAPTCHA_TESTING = 'True'
|
Loading…
Add table
Add a link
Reference in a new issue