30 lines
734 B
Text
30 lines
734 B
Text
# KV-Tube Environment Configuration
|
|
# Copy this file to .env and customize as needed
|
|
|
|
# Server port (default: 8080)
|
|
PORT=8080
|
|
|
|
# Data directory for SQLite database
|
|
KVTUBE_DATA_DIR=./data
|
|
|
|
# Gin mode: debug or release
|
|
GIN_MODE=release
|
|
|
|
# CORS allowed origins (comma-separated, or * for all)
|
|
# Example: CORS_ALLOWED_ORIGINS=http://localhost:3000,https://yourdomain.com
|
|
CORS_ALLOWED_ORIGINS=http://localhost:3000,http://127.0.0.1:3000
|
|
|
|
# Database configuration
|
|
DB_MAX_OPEN_CONNS=25
|
|
DB_MAX_IDLE_CONNS=5
|
|
DB_CONN_MAX_LIFETIME=5m
|
|
|
|
# Cache configuration
|
|
CACHE_TTL=3600
|
|
CACHE_ENABLED=true
|
|
|
|
# HTTP client configuration
|
|
HTTP_CLIENT_TIMEOUT=30s
|
|
|
|
# Security
|
|
# Note: SSRF protection is enabled for video proxy - only YouTube/Google domains allowed
|