2024-05-10 23:15:29 +08:00
|
|
|
# Django
|
2024-08-30 15:46:30 +08:00
|
|
|
# Use https://djecrety.ir/ for generation
|
2024-05-10 23:15:29 +08:00
|
|
|
SECRET_KEY = ''
|
|
|
|
|
|
|
|
# Production Switches
|
|
|
|
BACKEND_DEBUG = 'True'
|
|
|
|
|
|
|
|
# Seed Data Credentials
|
2024-09-01 16:47:33 +08:00
|
|
|
# Username and emails can be found in seed_data.json
|
2024-05-10 23:15:29 +08:00
|
|
|
SEED_DATA = 'True'
|
|
|
|
SEED_DATA_PASSWORD = '12345'
|
2024-09-01 16:47:33 +08:00
|
|
|
SEED_DATA_ADMIN_PASSWORD = ''
|
2024-05-10 23:15:29 +08:00
|
|
|
|
|
|
|
# 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
|
2024-08-30 15:46:30 +08:00
|
|
|
# Have different credentials set on dev, staging, and prod
|
2024-05-10 23:15:29 +08:00
|
|
|
DB_DATABASE = 'drf-template'
|
|
|
|
DB_USERNAME = 'root'
|
|
|
|
DB_PASSWORD = ''
|
|
|
|
DB_HOST = 'postgres'
|
|
|
|
DB_PORT = '5432'
|
|
|
|
DB_SSL_MODE = 'disable'
|
2024-09-04 12:46:16 +08:00
|
|
|
DB_DISABLE_SERVER_SIDE_CURSORS = 'False' # If you're using an external connection bouncer (eg. PgBouncer), set this to True
|
2024-05-10 23:15:29 +08:00
|
|
|
|
|
|
|
# Redis
|
2024-08-30 15:46:30 +08:00
|
|
|
# Used for DB cache and Celery broker
|
2024-05-10 23:15:29 +08:00
|
|
|
REDIS_HOST = 'redis'
|
|
|
|
REDIS_PORT = '6379'
|
|
|
|
|
|
|
|
# Celery
|
|
|
|
CELERY_BROKER = 'redis://redis:6379/0'
|
|
|
|
CELERY_RESULT_BACKEND = 'redis://redis:6379/0'
|
2024-08-30 19:28:24 +08:00
|
|
|
CELERY_FLOWER_PORT = 5555
|
2024-05-10 23:15:29 +08:00
|
|
|
|
|
|
|
# Stripe
|
|
|
|
STRIPE_SECRET_KEY = ''
|
|
|
|
STRIPE_SECRET_WEBHOOK = ''
|
|
|
|
|
2024-08-30 15:46:30 +08:00
|
|
|
USE_VAULT = 'False'
|
|
|
|
SERVE_MEDIA = 'False'
|
2024-08-30 16:52:15 +08:00
|
|
|
BACKEND_ADDRESS = 'localhost'
|
|
|
|
BACKEND_PORT = 8000
|
|
|
|
FRONTEND_ADDRESS = 'localhost'
|
2024-08-30 19:28:24 +08:00
|
|
|
FRONTEND_PORT = 4200 # Set this to 443 in production (HTTPS)
|
2024-05-10 23:15:29 +08:00
|
|
|
USE_HTTPS = 'False'
|
2024-08-30 15:46:30 +08:00
|
|
|
TIMEZONE = 'Asia/Manila'
|
|
|
|
|
|
|
|
# Cloud Storage
|
|
|
|
# No need to set these if you're not using S3
|
|
|
|
CLOUD_BUCKET = ''
|
|
|
|
MEDIA_CONTAINER = ''
|
|
|
|
STATIC_CONTAINER = ''
|
2024-05-10 23:15:29 +08:00
|
|
|
|
|
|
|
# Proxy (For Selenium)
|
|
|
|
USE_PROXY = 'False'
|
2024-08-30 15:46:30 +08:00
|
|
|
# IP-Whitelisted Proxy Address
|
2024-05-10 23:15:29 +08:00
|
|
|
PROXY_IP_WHITELIST = 'proxy-here.com:12345'
|
2024-08-30 15:46:30 +08:00
|
|
|
# Username/Password Proxy Address
|
2024-05-10 23:15:29 +08:00
|
|
|
PROXY_USER_AUTH = 'username:password@proxy-here.com:12345'
|
|
|
|
|
|
|
|
# CAPTCHA
|
|
|
|
CAPTCHA_TESTING = 'True'
|