# .env.example # This file serves as a template for your .env file. # Copy this file to a new file named .env and fill in the values. # IMPORTANT: Never commit the .env file to version control. # =========================================== # CORE CONFIGURATION # =========================================== # --- Database Connection --- # The complete Data Source Name (DSN) for your PostgreSQL database. # This works for both local instances and cloud providers like Neon.tech. # Example for Neon: postgresql://user:password@host.eu-central-1.aws.neon.tech/neondb?sslmode=require # Example for local: postgresql://user:password@localhost:5432/mydb # Leave empty or comment out if your app doesn't need database DATABASE_URL="your_database_dsn_here" # --- Application-Level Encryption Keys --- # These keys are used by the application itself to encrypt sensitive data # before it is written to the database. This provides an additional layer # of security for your data. # Comment out both lines if your app doesn't need encryption # The master key must be a 256-bit key (32 bytes). MASTER_ENCRYPTION_KEY="your_256_bit_key_here" # The salt is a unique, persistent value used with the master key. # It should also be a secure, random string. PERSISTENT_ENCRYPTION_SALT="your_unique_salt_here" # =========================================== # LOGGING CONFIGURATION (Optional) # =========================================== # PyFundaments Debug Mode (true/false) PYFUNDAMENTS_DEBUG="true" # Log level: DEBUG, INFO, WARNING, ERROR, CRITICAL LOG_LEVEL="DEBUG" # Store logs in /tmp directory (cleared on restart) LOG_TO_TMP="false" # Enable public logging (disable for production security) ENABLE_PUBLIC_LOGS="true" # =========================================== # APP-SPECIFIC CONFIGURATION EXAMPLES # =========================================== # Uncomment and configure based on your application type # Discord Bot Setup # ================== # Get these from Discord Developer Portal #PUBLIC_KEY="your-discord-public-key" #APPLICATION_ID="your-discord-app-id" #BOT_TOKEN="your-bot-token" #GUILD_ID="your-guild-id" #BOT_VERSION="1.0.1" #ADMIN_USER_IDS="user1,user2,user3" # =========================================== # API Server CONFIGURATION EXAMPLES # =========================================== #Flask server #PORT="7860" # ML/LLM Setup # ============= #MODEL_PATH="/path/to/your/model" #MAX_TOKENS="2048" #TEMPERATURE="0.7" # Web Server Setup # ================ #PORT="8000" #HOST="0.0.0.0" #DEBUG_MODE="false" # API Keys # ======== #OPENAI_API_KEY="your-openai-key" #ANTHROPIC_API_KEY="your-anthropic-key"