Spaces:
Running
Running
File size: 2,621 Bytes
ce70692 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 | # .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"
|