Fix: Rename directory to remove & character causing shell issues
Renamed ebook_backend&admin_panel to ebook_backend_admin_panel The & character was being interpreted by shell as background process operator, causing 'Dockerfile not found' errors in Coolify.
This commit is contained in:
86
ebook_backend_admin_panel/.env.example
Normal file
86
ebook_backend_admin_panel/.env.example
Normal file
@@ -0,0 +1,86 @@
|
||||
# =============================================================================
|
||||
# EBOOK COUPON MANAGEMENT SYSTEM - ENVIRONMENT CONFIGURATION
|
||||
# =============================================================================
|
||||
# Copy this file to .env and update with your actual values
|
||||
# IMPORTANT: Never commit .env file to version control!
|
||||
# =============================================================================
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
# Database Configuration
|
||||
# -----------------------------------------------------------------------------
|
||||
# PostgreSQL connection string
|
||||
DATABASE_URL=postgresql://username:password@host:port/database_name
|
||||
|
||||
# Test database (for running tests)
|
||||
TEST_DATABASE_URL=postgresql://postgres:postgres@localhost:5432/test_ebook_db
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
# Security Configuration
|
||||
# -----------------------------------------------------------------------------
|
||||
# SECRET_KEY: Used for JWT tokens and session encryption
|
||||
# IMPORTANT: Generate a strong random key for production!
|
||||
# Generate with: python -c "import secrets; print(secrets.token_urlsafe(32))"
|
||||
SECRET_KEY=your-super-secret-key-change-this-in-production
|
||||
|
||||
# Debug mode (NEVER set to true in production!)
|
||||
DEBUG=false
|
||||
|
||||
# Environment: development, staging, production
|
||||
ENVIRONMENT=development
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
# Admin Credentials (AUTO-CREATED ON FIRST RUN)
|
||||
# -----------------------------------------------------------------------------
|
||||
# These credentials will be used to create the default admin user
|
||||
# on first startup if no admin exists in the database.
|
||||
#
|
||||
# SECURITY WARNING:
|
||||
# - Change these immediately after first login in production!
|
||||
# - Use strong passwords (12+ characters, mixed case, numbers, symbols)
|
||||
ADMIN_USERNAME=admin
|
||||
ADMIN_PASSWORD=admin123
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
# CORS Configuration
|
||||
# -----------------------------------------------------------------------------
|
||||
# Allowed origins for Cross-Origin Resource Sharing
|
||||
# Comma-separated list
|
||||
CORS_ORIGINS=http://localhost:3000,http://localhost:8000,http://127.0.0.1:8000
|
||||
|
||||
# Trusted Hosts
|
||||
TRUSTED_HOSTS=*
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
# Application Configuration
|
||||
# -----------------------------------------------------------------------------
|
||||
APP_NAME=Ebook Coupon Management System
|
||||
APP_VERSION=1.0.0
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
# Logging Configuration
|
||||
# -----------------------------------------------------------------------------
|
||||
# Log level: DEBUG, INFO, WARNING, ERROR, CRITICAL
|
||||
LOG_LEVEL=INFO
|
||||
|
||||
# Log file paths (relative to admin-backend directory)
|
||||
LOG_FILE=logs/app.log
|
||||
ERROR_LOG_FILE=logs/error.log
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
# File Upload Configuration
|
||||
# -----------------------------------------------------------------------------
|
||||
# Maximum file size in bytes (default: 10MB)
|
||||
MAX_FILE_SIZE=10485760
|
||||
|
||||
# Allowed file types for upload
|
||||
ALLOWED_FILE_TYPES=.xlsx,.xls
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
# Server Configuration
|
||||
# -----------------------------------------------------------------------------
|
||||
# Host to bind to (0.0.0.0 for all interfaces)
|
||||
HOST=0.0.0.0
|
||||
|
||||
# Port to listen on
|
||||
PORT=8000
|
||||
|
||||
Reference in New Issue
Block a user