fastapi_django_main_live / .env.example
GitHub Action
🚀 Auto-deploy from GitHub Actions
7cd8277
# Environment Variables Template
# Copy this file to .env and fill in your actual values
# DO NOT commit the .env file to version control
# Database Configuration
postgre_user=your_postgres_username
postgre_pass=your_postgres_password
postgre_host=your_postgres_host
postgre_url=postgresql://user:pass@host/db?sslmode=require
DATABASE_URL=sqlite:///./app.db
DB_HOST=localhost
DB_PORT=5432
DB_NAME=your_database_name
DB_USER=your_username
DB_PASSWORD=your_password
# API Keys
api_key=your_groq_api_key
token=your_groq_token
GROQ_API_KEY=your_groq_api_key
hf_token=your_huggingface_token
# OpenInterpreter Configuration
OPENINTERPRETER_PASSWORD=your_password
openinterpreter_secret=your_secret
# GitHub Configuration (Use Personal Access Token)
github_token=ghp_your_github_personal_access_token
github_user=your_github_username
# LINE Bot Configuration
ChannelAccessToken=your_line_channel_access_token
ChannelSecret=your_line_channel_secret
ChannelID=your_line_channel_id
# Webhook URLs
WEBHOOK_GAS=your_gas_webhook_url
WEBHOOK_URL=your_google_chat_webhook_url
chat_url=your_chat_webhook_url
n8nhook=your_n8n_webhook_url
# AppSheet Configuration
APPSHEET_APPID=your_appsheet_app_id
APPSHEET_KEY=your_appsheet_key
# Gradio Configuration
GRADIO_THEME=huggingface
GRADIO_FLAGGING_MODE=never
GRADIO_ALLOW_FLAGGING=never
GRADIO_CACHE_EXAMPLES=true
GRADIO_SERVER_NAME=0.0.0.0
GRADIO_NUM_PORTS=1
GRADIO_SSR_MODE=True
# Hugging Face Space Configuration
SPACE_HOST=your_space_host
SPACE_ID=your_space_id
SPACE_SUBDOMAIN=your_space_subdomain
SPACE_REPO_NAME=your_repo_name
SPACE_TITLE=your_space_title
SPACE_AUTHOR_NAME=your_author_name
SPACE_CREATOR_USER_ID=your_creator_user_id
# System Configuration
PYTHONUNBUFFERED=1
PYTHONPATH=/home/user/app
TZ=Europe/Paris
ACCELERATOR=cpu
SYSTEM=spaces
TOOL_KIT_DIR=usage
# Google Cloud Service Account Credentials
# Store as separate JSON file and reference path here
GOOGLE_APPLICATION_CREDENTIALS=path/to/your/service-account-key.json
# Alternative: Store JSON content directly in environment variable
GOOGLE_APPLICATION_CREDENTIALS_CONTENT=your_service_account_json_content
# HuggingFace Configuration
HF_DATASETS_TRUST_REMOTE_CODE=0
HF_HUB_ENABLE_HF_TRANSFER=1
# Other Configuration
CPU_CORES=2
MEMORY=16Gi
PERSISTANT_STORAGE_ENABLED=false
TQDM_POSITION=-1
TQDM_MININTERVAL=1
# Django Settings
DJANGO_SECRET_KEY=change-this-to-a-random-secret-key
DJANGO_DEBUG=True
DJANGO_ALLOWED_HOSTS=localhost,127.0.0.1
# FastAPI Settings
FASTAPI_HOST=0.0.0.0
FASTAPI_PORT=8000
FASTAPI_DEBUG=True
# Security
JWT_SECRET_KEY=change-this-to-a-random-jwt-secret
JWT_ALGORITHM=HS256
JWT_ACCESS_TOKEN_EXPIRE_MINUTES=30
# External APIs
API_KEY=your-api-key-here