-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.env.example
More file actions
74 lines (56 loc) · 1.91 KB
/
Copy path.env.example
File metadata and controls
74 lines (56 loc) · 1.91 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
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
# Database Configuration
DB_HOST=localhost
DB_PORT=5432
DB_USER=telescopio
DB_PASSWORD=telescopio
DB_NAME=telescopio
DB_SSLMODE=disable
# Server Configuration
PORT=8080
GIN_MODE=debug
# JWT Configuration
# IMPORTANT: Change this in production! Use a strong random string
# Generate with: openssl rand -base64 32
JWT_SECRET=telescopio-dev-secret-change-in-production
# CORS Configuration
CORS_ALLOW_ORIGINS=http://localhost:3000
CORS_ALLOW_CREDENTIALS=true
# Upload Configuration (Legacy - maintained for backward compatibility)
UPLOAD_DIR=./uploads
MAX_UPLOAD_SIZE=10485760
# Frontend URL (for CORS)
FRONTEND_URL=http://localhost:3000
# ============================================
# STORAGE PROVIDER CONFIGURATION
# ============================================
# Storage provider: "local" or "minio"
STORAGE_PROVIDER=local
# ============================================
# LOCAL STORAGE CONFIGURATION
# ============================================
# Only used when STORAGE_PROVIDER=local
STORAGE_LOCAL_PATH=./uploads
# ============================================
# MINIO STORAGE CONFIGURATION
# ============================================
# Only used when STORAGE_PROVIDER=minio
# MinIO server endpoint (without http/https prefix)
MINIO_ENDPOINT=localhost:9000
# MinIO access credentials
MINIO_ACCESS_KEY=minioadmin
MINIO_SECRET_KEY=minioadmin123
# Bucket name for file storage
MINIO_BUCKET=telescopio
# Use SSL/TLS (true/false)
MINIO_USE_SSL=false
# AWS region (for S3 compatibility)
MINIO_REGION=us-east-1
# ============================================
# GOOGLE OAUTH CONFIGURATION
# ============================================
# Required for Google OAuth token validation
# Get from Google Cloud Console > APIs & Services > Credentials
# Google OAuth Client ID (required for id_token validation)
GOOGLE_CLIENT_ID=
# Google OAuth Client Secret (for authorization code flow, not required for id_token flow)
GOOGLE_CLIENT_SECRET=