updates
This commit is contained in:
47
.env.production
Normal file
47
.env.production
Normal file
@@ -0,0 +1,47 @@
|
||||
# Production Environment Configuration for Docker
|
||||
# Django Settings
|
||||
SECRET_KEY=ks68*5@of1l&4rn1imsqdk9$khcya!&a#jtd89f!v^qg1w0&hc
|
||||
DEBUG=False
|
||||
ALLOWED_HOSTS=gnxsoft.com,www.gnxsoft.com,localhost,127.0.0.1,backend
|
||||
|
||||
# Database (SQLite for simplicity, or use PostgreSQL)
|
||||
DATABASE_URL=postgresql://gnx:*4WfmDsfvNszbB3ozaQj0M#i@postgres:5432/gnxdb
|
||||
|
||||
# Admin IP Restriction
|
||||
ADMIN_ALLOWED_IPS=193.194.155.249
|
||||
|
||||
# Internal API Key (for nginx to backend communication)
|
||||
INTERNAL_API_KEY=your-generated-key-here
|
||||
PRODUCTION_ORIGINS=https://gnxsoft.com,https://www.gnxsoft.com
|
||||
CSRF_TRUSTED_ORIGINS=https://gnxsoft.com,https://www.gnxsoft.com
|
||||
|
||||
# Email Configuration
|
||||
EMAIL_BACKEND=django.core.mail.backends.smtp.EmailBackend
|
||||
EMAIL_HOST=mail.gnxsoft.com
|
||||
EMAIL_PORT=587
|
||||
EMAIL_USE_TLS=True
|
||||
EMAIL_USE_SSL=False
|
||||
EMAIL_HOST_USER=support@gnxsoft.com
|
||||
EMAIL_HOST_PASSWORD=P4eli240453.
|
||||
DEFAULT_FROM_EMAIL=support@gnxsoft.com
|
||||
COMPANY_EMAIL=support@gnxsoft.com
|
||||
SUPPORT_EMAIL=support@gnxsoft.com
|
||||
|
||||
# Site URL
|
||||
SITE_URL=https://gnxsoft.com
|
||||
|
||||
# Security Settings
|
||||
SECURE_SSL_REDIRECT=True
|
||||
SECURE_HSTS_SECONDS=31536000
|
||||
SECURE_HSTS_INCLUDE_SUBDOMAINS=True
|
||||
SECURE_HSTS_PRELOAD=True
|
||||
|
||||
# CORS Settings
|
||||
CORS_ALLOWED_ORIGINS=https://gnxsoft.com,https://www.gnxsoft.com
|
||||
|
||||
# PostgreSQL Database Configuration (Recommended for Production)
|
||||
POSTGRES_DB=gnxdb
|
||||
POSTGRES_USER=gnx
|
||||
POSTGRES_PASSWORD=*4WfmDsfvNszbB3ozaQj0M#i
|
||||
# Update DATABASE_URL to use PostgreSQL (uncomment the line below and comment SQLite)
|
||||
# DATABASE_URL=postgresql://gnxuser:change-this-password-in-production@postgres:5432/gnxdb
|
||||
Reference in New Issue
Block a user