forked from Unbot2313/go-streaming-service
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
42 lines (35 loc) · 1.08 KB
/
Copy path.env.example
File metadata and controls
42 lines (35 loc) · 1.08 KB
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
PORT=3003
JWT_SECRET_KEY=your_secret_key
LOCAL_STORAGE_PATH=./static/videos
# CORS (comma-separated origins)
CORS_ALLOWED_ORIGINS=http://localhost:3000
# PostgreSQL
POSTGRES_HOST=localhost
POSTGRES_PORT=5432
POSTGRES_USER=postgres
POSTGRES_PASSWORD=postgres
POSTGRES_DB=streaming_db
# Storage (s3 o minio)
STORAGE_TYPE=minio
# AWS S3 (producción)
AWS_REGION=us-east-1
AWS_BUCKET_NAME=my-bucket
AWS_ACCESS_KEY_ID=your_access_key
AWS_SECRET_ACCESS_KEY=your_secret_key
# MinIO (desarrollo local)
MINIO_ENDPOINT=localhost:9000
MINIO_BUCKET_NAME=streaming-videos
MINIO_ACCESS_KEY=minioadmin
MINIO_SECRET_KEY=minioadmin
# RabbitMQ
RABBITMQ_HOST=localhost
RABBITMQ_PORT=5672
RABBITMQ_USER=guest
RABBITMQ_PASSWORD=guest
RABBITMQ_VIDEO_QUEUE=video_processing
RABBITMQ_THUMBNAIL_QUEUE=thumbnail_generation
# Grafana (solo usado en docker-compose.yml, no afecta la app Go)
# Prometheus no requiere autenticación. Accede a /metrics por la red interna de Docker.
# En producción, bloquear /metrics desde tráfico externo con un reverse proxy (nginx).
GRAFANA_ADMIN_USER=admin
GRAFANA_ADMIN_PASSWORD=admin