整合环境变量
This commit is contained in:
40
.env.example
40
.env.example
@@ -1,18 +1,38 @@
|
||||
# --- Server Configuration ---
|
||||
# HTTP Server port
|
||||
PORT=3000
|
||||
# HTTP Server listen address
|
||||
HOST=0.0.0.0
|
||||
|
||||
# AWS S3 / MinIO Configuration
|
||||
AWS_REGION=us-east-1
|
||||
S3_BUCKET_ADDRESS=https://s3.example.com/your_bucket_name
|
||||
|
||||
# For MinIO or other S3-compatible storage
|
||||
S3_ENDPOINT=http://127.0.0.1:9000
|
||||
S3_FORCE_PATH_STYLE=true
|
||||
|
||||
# Application Title
|
||||
# --- Web Interface ---
|
||||
# Web page title displayed to the user
|
||||
APP_TITLE=S3 Media Transcoder
|
||||
|
||||
# Session Cache (Valkey / Redis)
|
||||
# --- Transcoding Engine ---
|
||||
# Path to a customized FFmpeg build (e.g., jellyfin-ffmpeg for hardware acceleration)
|
||||
JELLYFIN_FFMPEG_PATH=/usr/lib/jellyfin-ffmpeg/ffmpeg
|
||||
# Path to a customized FFprobe build
|
||||
JELLYFIN_FFPROBE_PATH=/usr/lib/jellyfin-ffmpeg/ffprobe
|
||||
|
||||
# --- Session Management (Valkey / Redis) ---
|
||||
# Connection string for Valkey/Redis
|
||||
VALKEY_URL=redis://localhost:6379
|
||||
# Database index for Valkey/Redis
|
||||
VALKEY_DB=0
|
||||
# Key prefix inside Valkey/Redis to avoid conflicts with other apps
|
||||
VALKEY_PREFIX=mediaconverter
|
||||
|
||||
# --- Storage Configuration (AWS S3 / MinIO) ---
|
||||
# Full endpoint/domain to your S3 bucket root, or just S3 Bucket Name
|
||||
S3_BUCKET_ADDRESS=https://s3.example.com/your_bucket_name
|
||||
# AWS region for S3 (e.g., us-east-1)
|
||||
AWS_REGION=us-east-1
|
||||
|
||||
# Optional: S3 global credentials. If not specified, web UI login handles authentication.
|
||||
# AWS_ACCESS_KEY_ID=
|
||||
# AWS_SECRET_ACCESS_KEY=
|
||||
|
||||
# Optional: For MinIO or other S3-compatible self-hosted storage
|
||||
S3_ENDPOINT=http://127.0.0.1:9000
|
||||
# Whether to force path-style S3 URLs (usually required for MinIO)
|
||||
S3_FORCE_PATH_STYLE=true
|
||||
|
||||
@@ -10,17 +10,7 @@ module.exports = {
|
||||
watch: false,
|
||||
max_memory_restart: '512M',
|
||||
env: {
|
||||
NODE_ENV: 'production',
|
||||
PORT: 3000,
|
||||
HOST: '0.0.0.0',
|
||||
AWS_REGION: 'us-east-1',
|
||||
S3_BUCKET_ADDRESS: 'https://s3.example.com/your_bucket_name',
|
||||
S3_ENDPOINT: 'http://127.0.0.1:9000',
|
||||
S3_FORCE_PATH_STYLE: 'true',
|
||||
APP_TITLE: 'S3 Media Transcoder',
|
||||
VALKEY_URL: 'redis://localhost:6379',
|
||||
VALKEY_DB: 0,
|
||||
VALKEY_PREFIX: 'mediaconverter'
|
||||
NODE_ENV: 'production'
|
||||
}
|
||||
}
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user