Files
org-social-host/.env.example
Andros Fenollosa 7fa9d364d9 Add enable_cleanup
2025-12-05 10:18:46 +01:00

53 lines
1.5 KiB
Plaintext

# Django Settings
DJANGO_SETTINGS_MODULE=core.settings
DEBUG=true
SECRET_KEY=django-insecure-CHANGE-THIS-IN-PRODUCTION-y315h5v5t^1c^rqqcpk1y&!7+f8%8rj3$3bh2k!xoco8x@a+kr
ALLOWED_HOSTS=localhost,127.0.0.1,django,nginx
SITE_DOMAIN=localhost:8080
# Server Port Configuration
# The port where Nginx will listen for incoming connections
# Change this to your desired port (default: 8080)
NGINX_PORT=8080
# Redis Configuration
REDIS_HOST=redis
REDIS_PORT=6379
REDIS_DB=0
REDIS_CACHE_DB=1
# Huey Configuration
# Number of worker threads for background tasks
HUEY_WORKERS=1
# Host Configuration
# Maximum file size in bytes (default: 5MB = 5242880 bytes)
MAX_FILE_SIZE=5242880
# TTL for inactive files in days (default: 30)
# Files not updated within this period will be automatically deleted
FILE_TTL_DAYS=30
# Enable automatic cleanup of inactive files (default: true)
# Set to false if you want to disable automatic deletion (recommended for personal use)
ENABLE_CLEANUP=true
# Storage path for social.org files
STORAGE_PATH=/app/storage
# Database Configuration (SQLite by default)
# Uncomment and configure these if you want to use PostgreSQL instead
# DB_NAME=org_social_host
# DB_USER=postgres
# DB_PASSWORD=password
# DB_HOST=postgres
# DB_PORT=5432
# Production Settings
# When deploying to production, uncomment and configure these:
# DEBUG=false
# SECRET_KEY=your-super-secret-production-key-here-min-50-chars
# ALLOWED_HOSTS=yourdomain.com,www.yourdomain.com
# SITE_DOMAIN=yourdomain.com
# NGINX_PORT=80