chore: Remove old authentication configs and clean up environment files
Some checks failed
CI/CD Pipeline / Backend Tests (push) Has been cancelled
CI/CD Pipeline / Frontend Tests (push) Has been cancelled
CI/CD Pipeline / Build Docker Images (push) Has been cancelled
CI/CD Pipeline / Security Scan (push) Has been cancelled
CI/CD Pipeline / Deploy to Staging (push) Has been cancelled
CI/CD Pipeline / Deploy to Production (push) Has been cancelled
Some checks failed
CI/CD Pipeline / Backend Tests (push) Has been cancelled
CI/CD Pipeline / Frontend Tests (push) Has been cancelled
CI/CD Pipeline / Build Docker Images (push) Has been cancelled
CI/CD Pipeline / Security Scan (push) Has been cancelled
CI/CD Pipeline / Deploy to Staging (push) Has been cancelled
CI/CD Pipeline / Deploy to Production (push) Has been cancelled
Removed old/unused configuration files: - .env (root) - Old Google OAuth production credentials (not used) - .env.example (root) - Old Google OAuth template (replaced by Auth0) - docker-compose.dev.yml - Old Keycloak setup (replaced by Auth0) - Makefile - Unused build automation Improved environment configuration: - Created frontend/.env.example - Auth0 template for frontend - Updated backend/.env.example: - Fixed port numbers (5433 for postgres, 6380 for redis) - Added clearer Auth0 setup instructions - Matches docker-compose.yml port configuration Current setup: - docker-compose.yml - PostgreSQL & Redis services (in use) - backend/.env - Auth0 credentials (in use, not committed) - frontend/.env - Auth0 credentials (in use, not committed) - *.env.example files - Templates for new developers All old Google OAuth and Keycloak references removed. Application now runs on Auth0 only. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -35,7 +35,8 @@
|
||||
"Bash(dir:*)",
|
||||
"Bash(lsof:*)",
|
||||
"Bash(powershell -Command:*)",
|
||||
"Bash(git rm:*)"
|
||||
"Bash(git rm:*)",
|
||||
"Bash(docker ps:*)"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
26
.env.example
26
.env.example
@@ -1,26 +0,0 @@
|
||||
# VIP Coordinator Environment Configuration
|
||||
# Copy this file to .env and update the values for your deployment
|
||||
|
||||
# Database Configuration
|
||||
DB_PASSWORD=VipCoord2025SecureDB
|
||||
|
||||
# Domain Configuration (Update these for your domain)
|
||||
DOMAIN=your-domain.com
|
||||
VITE_API_URL=https://api.your-domain.com
|
||||
|
||||
# Google OAuth Configuration (Get these from Google Cloud Console)
|
||||
GOOGLE_CLIENT_ID=your-google-client-id.apps.googleusercontent.com
|
||||
GOOGLE_CLIENT_SECRET=your-google-client-secret
|
||||
GOOGLE_REDIRECT_URI=https://api.your-domain.com/auth/google/callback
|
||||
|
||||
# Frontend URL
|
||||
FRONTEND_URL=https://your-domain.com
|
||||
|
||||
# Admin Configuration
|
||||
ADMIN_PASSWORD=ChangeThisSecurePassword
|
||||
|
||||
# Flight API Configuration (Optional)
|
||||
AVIATIONSTACK_API_KEY=your-aviationstack-api-key
|
||||
|
||||
# Port Configuration
|
||||
PORT=3000
|
||||
10
Makefile
10
Makefile
@@ -1,10 +0,0 @@
|
||||
.PHONY: dev build deploy
|
||||
|
||||
dev:
|
||||
docker-compose -f docker-compose.dev.yml up --build
|
||||
|
||||
build:
|
||||
docker-compose -f docker-compose.prod.yml build
|
||||
|
||||
deploy:
|
||||
docker-compose -f docker-compose.prod.yml up -d
|
||||
@@ -8,16 +8,22 @@ FRONTEND_URL=http://localhost:5173
|
||||
# ============================================
|
||||
# Database Configuration
|
||||
# ============================================
|
||||
DATABASE_URL="postgresql://postgres:changeme@localhost:5432/vip_coordinator"
|
||||
# Port 5433 is used to avoid conflicts with local PostgreSQL
|
||||
DATABASE_URL="postgresql://postgres:changeme@localhost:5433/vip_coordinator"
|
||||
|
||||
# ============================================
|
||||
# Redis Configuration (Optional)
|
||||
# ============================================
|
||||
REDIS_URL="redis://localhost:6379"
|
||||
# Port 6380 is used to avoid conflicts with local Redis
|
||||
REDIS_URL="redis://localhost:6380"
|
||||
|
||||
# ============================================
|
||||
# Auth0 Configuration
|
||||
# ============================================
|
||||
# Get these from your Auth0 dashboard:
|
||||
# 1. Create Application (Single Page Application)
|
||||
# 2. Create API
|
||||
# 3. Configure callback URLs: http://localhost:5173/callback
|
||||
AUTH0_DOMAIN="your-tenant.us.auth0.com"
|
||||
AUTH0_AUDIENCE="https://your-api-identifier"
|
||||
AUTH0_ISSUER="https://your-tenant.us.auth0.com/"
|
||||
|
||||
@@ -1,84 +0,0 @@
|
||||
version: '3.8'
|
||||
|
||||
services:
|
||||
|
||||
db:
|
||||
image: postgres:15
|
||||
environment:
|
||||
POSTGRES_DB: vip_coordinator
|
||||
POSTGRES_PASSWORD: changeme
|
||||
volumes:
|
||||
- postgres-data:/var/lib/postgresql/data
|
||||
ports:
|
||||
- 5432:5432
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "pg_isready -U postgres"]
|
||||
interval: 5s
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
|
||||
redis:
|
||||
image: redis:7
|
||||
ports:
|
||||
- 6379:6379
|
||||
|
||||
keycloak:
|
||||
image: quay.io/keycloak/keycloak:24.0
|
||||
environment:
|
||||
KEYCLOAK_ADMIN: admin
|
||||
KEYCLOAK_ADMIN_PASSWORD: admin
|
||||
KC_DB: postgres
|
||||
KC_DB_URL: jdbc:postgresql://db:5432/keycloak
|
||||
KC_DB_USERNAME: postgres
|
||||
KC_DB_PASSWORD: changeme
|
||||
KC_HOSTNAME_STRICT: false
|
||||
KC_HOSTNAME_STRICT_HTTPS: false
|
||||
KC_HTTP_ENABLED: true
|
||||
ports:
|
||||
- 8080:8080
|
||||
command: start-dev
|
||||
depends_on:
|
||||
db:
|
||||
condition: service_healthy
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "curl -f http://localhost:8080/health/ready || exit 1"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 5
|
||||
|
||||
backend:
|
||||
build:
|
||||
context: ./backend
|
||||
target: development
|
||||
environment:
|
||||
DATABASE_URL: postgresql://postgres:changeme@db:5432/vip_coordinator
|
||||
REDIS_URL: redis://redis:6379
|
||||
KEYCLOAK_SERVER_URL: http://keycloak:8080
|
||||
KEYCLOAK_REALM: vip-coordinator
|
||||
KEYCLOAK_CLIENT_ID: vip-coordinator-frontend
|
||||
FRONTEND_URL: http://localhost:5173
|
||||
PORT: 3000
|
||||
NODE_ENV: development
|
||||
ports:
|
||||
- 3000:3000
|
||||
depends_on:
|
||||
- db
|
||||
- redis
|
||||
- keycloak
|
||||
|
||||
frontend:
|
||||
build:
|
||||
context: ./frontend
|
||||
target: development
|
||||
environment:
|
||||
VITE_API_URL: http://localhost:3000/api
|
||||
VITE_KEYCLOAK_URL: http://localhost:8080
|
||||
VITE_KEYCLOAK_REALM: vip-coordinator
|
||||
VITE_KEYCLOAK_CLIENT_ID: vip-coordinator-frontend
|
||||
ports:
|
||||
- 5173:5173
|
||||
depends_on:
|
||||
- backend
|
||||
|
||||
volumes:
|
||||
postgres-data:
|
||||
10
frontend/.env.example
Normal file
10
frontend/.env.example
Normal file
@@ -0,0 +1,10 @@
|
||||
# API Configuration
|
||||
VITE_API_URL=http://localhost:3000/api/v1
|
||||
|
||||
# Auth0 Configuration
|
||||
# Get these from your Auth0 dashboard:
|
||||
# 1. Create Application (Single Page Application)
|
||||
# 2. Use the Domain, Client ID, and API Audience
|
||||
VITE_AUTH0_DOMAIN=your-tenant.us.auth0.com
|
||||
VITE_AUTH0_CLIENT_ID=your-auth0-client-id
|
||||
VITE_AUTH0_AUDIENCE=https://your-api-identifier
|
||||
Reference in New Issue
Block a user