# EN: Environment variables for iam-service
# VI: Biến môi trường cho iam-service

# Application
PORT=4000
NODE_ENV=development
API_VERSION=v1
SERVICE_NAME=iam-service

# Database
DATABASE_URL=postgresql://user:password@localhost:5432/goodgo_auth?schema=public

# Redis
REDIS_URL=redis://localhost:6379

# JWT Configuration
JWT_SECRET=your-super-secret-jwt-key-change-in-production
JWT_EXPIRES_IN=15m
JWT_REFRESH_SECRET=your-super-secret-refresh-key-change-in-production
JWT_REFRESH_EXPIRES_IN=7d
JWT_ID_SECRET=your-super-secret-id-key-change-in-production
JWT_ID_EXPIRES_IN=1h
JWT_ISSUER=goodgo-auth
JWT_AUDIENCE=goodgo-api

# OIDC Configuration
OIDC_ISSUER=http://localhost:4000

# Social Auth - Google
GOOGLE_CLIENT_ID=your-google-client-id
GOOGLE_CLIENT_SECRET=your-google-client-secret
GOOGLE_REDIRECT_URI=http://localhost:4000/auth/google/callback

# Social Auth - Facebook
FACEBOOK_APP_ID=your-facebook-app-id
FACEBOOK_APP_SECRET=your-facebook-app-secret
FACEBOOK_REDIRECT_URI=http://localhost:4000/auth/facebook/callback

# Social Auth - GitHub
GITHUB_CLIENT_ID=your-github-client-id
GITHUB_CLIENT_SECRET=your-github-client-secret
GITHUB_REDIRECT_URI=http://localhost:4000/auth/github/callback

# CORS
CORS_ORIGIN=http://localhost:3000

# Tracing
TRACING_ENABLED=false
JAEGER_ENDPOINT=

# Encryption
ENCRYPTION_KEY=your-32-character-encryption-key-change-in-production
