mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-10-26 00:36:34 +02:00
- Updated .gitignore to include additional sensitive files and directories. - Added python-dotenv to requirements for loading environment variables. - Modified settings.py to load environment variables for sensitive configurations, including SECRET_KEY, DEBUG, and database credentials. - Implemented secure .env file generation during installation to avoid hardcoding sensitive information. - Introduced fallback method for settings update if environment generation fails.
37 lines
944 B
Plaintext
37 lines
944 B
Plaintext
# CyberPanel Environment Configuration Template
|
|
# Copy this file to .env and update with your actual values
|
|
# NEVER commit .env to version control!
|
|
|
|
# Django Configuration
|
|
SECRET_KEY=your_very_long_random_secret_key_here_minimum_50_characters
|
|
DEBUG=False
|
|
ALLOWED_HOSTS=localhost,127.0.0.1,yourdomain.com
|
|
|
|
# Database Configuration - CyberPanel Database
|
|
DB_NAME=cyberpanel
|
|
DB_USER=cyberpanel
|
|
DB_PASSWORD=your_secure_cyberpanel_db_password_here
|
|
DB_HOST=localhost
|
|
DB_PORT=3306
|
|
|
|
# Root Database Configuration - MySQL Root Access
|
|
ROOT_DB_NAME=mysql
|
|
ROOT_DB_USER=root
|
|
ROOT_DB_PASSWORD=your_secure_mysql_root_password_here
|
|
ROOT_DB_HOST=localhost
|
|
ROOT_DB_PORT=3306
|
|
|
|
# Security Settings
|
|
SECURE_SSL_REDIRECT=False
|
|
SECURE_HSTS_SECONDS=0
|
|
SECURE_HSTS_INCLUDE_SUBDOMAINS=False
|
|
SECURE_HSTS_PRELOAD=False
|
|
SESSION_COOKIE_SECURE=False
|
|
CSRF_COOKIE_SECURE=False
|
|
|
|
# File Upload Settings
|
|
DATA_UPLOAD_MAX_MEMORY_SIZE=2147483648
|
|
|
|
# Logging Configuration
|
|
LOG_LEVEL=INFO
|