- Change frontend port from 80 to 8847 and backend port from 3001 to 9173 in .env.example - Replace nginx stage in frontend Dockerfile with node alpine and serve for static hosting - Remove nginx.conf and related configuration for frontend static serving - Update docker-compose ports and healthcheck URLs to match new port assignments - Adjust server Dockerfile to expose new backend port 9173 and update healthcheck URL - Create non-root user in frontend Dockerfile and run serve command on port 8847 - Update healthcheck commands to use wget on new ports for both frontend and backend
39 lines
1.2 KiB
Plaintext
39 lines
1.2 KiB
Plaintext
# CloudStream Transfer - Environment Variables
|
|
# Copy this file to .env and fill in your values
|
|
|
|
# ======================
|
|
# OAuth Credentials
|
|
# ======================
|
|
|
|
# Microsoft Azure AD OAuth Configuration
|
|
# Get your client ID from: https://portal.azure.com -> Azure Active Directory -> App registrations
|
|
VITE_MS_CLIENT_ID=your_microsoft_client_id_here
|
|
MS_CLIENT_SECRET=your_microsoft_client_secret_here
|
|
|
|
# Google Cloud OAuth Configuration
|
|
# Get your client ID from: https://console.cloud.google.com -> APIs & Services -> Credentials
|
|
VITE_GOOGLE_CLIENT_ID=your_google_client_id_here
|
|
GOOGLE_CLIENT_SECRET=your_google_client_secret_here
|
|
|
|
# ======================
|
|
# URLs & Redirects
|
|
# ======================
|
|
|
|
# For Coolify: Use your domain (e.g., https://cloudstream.yourdomain.com/auth/callback)
|
|
# For local development: http://localhost:5173/auth/callback
|
|
REDIRECT_URI=http://localhost:5173/auth/callback
|
|
|
|
# Optional: Override API URL if backend is on different domain
|
|
# VITE_API_URL=https://api.yourdomain.com
|
|
|
|
# ======================
|
|
# Ports (Coolify will override these)
|
|
# ======================
|
|
FRONTEND_PORT=8847
|
|
BACKEND_PORT=9173
|
|
|
|
# ======================
|
|
# Environment
|
|
# ======================
|
|
NODE_ENV=production
|