-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcreate-env.sh
More file actions
44 lines (33 loc) · 1.36 KB
/
create-env.sh
File metadata and controls
44 lines (33 loc) · 1.36 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
#!/bin/bash
# Azure 배포를 위한 환경 변수 파일 생성 스크립트
# Usage: ./create-env.sh
echo "🔧 Creating .env file for Azure deployment..."
# .env 파일 생성
cat > .env << EOF
# Database Configuration
MONGO_ROOT_PASSWORD=mongo123
# Google OAuth Configuration (use Google Cloud Console — never commit real values)
GOOGLE_CLIENT_ID=your-google-oauth-client-id.apps.googleusercontent.com
GOOGLE_CLIENT_SECRET=your-google-oauth-client-secret
# JWT Configuration
JWT_SECRET=demo-jwt-secret-1234567890123456789012345678901234567890
# CORS Configuration
CORS_ALLOWED_ORIGINS=http://localhost:3000,http://localhost:5173,https://*.azurestaticapps.net,https://*.vercel.app,https://*.azurecontainerapps.io
# Frontend Configuration
VITE_API_BASE_URL=http://localhost:8080/api
VITE_GOOGLE_CLIENT_ID=your-google-oauth-client-id.apps.googleusercontent.com
VITE_GA_MEASUREMENT_ID=G-XXXXXXXXXX
VITE_USE_BACKEND_API=true
# Google Analytics
GA_MEASUREMENT_ID=G-XXXXXXXXXX
# Azure Configuration
AZURE_SUBSCRIPTION_ID=your_azure_subscription_id
AZURE_RESOURCE_GROUP=portfolio-rg
AZURE_CONTAINER_REGISTRY=portfolioacr
AZURE_CONTAINER_APP_NAME=portfolio-app
# Production URLs
PRODUCTION_DOMAIN=your-domain.com
PRODUCTION_API_URL=https://your-domain.com/api
EOF
echo "✅ .env file created successfully!"
echo "📝 Please review and update the values as needed before deployment."