- Added `xmlchars` dependency to `pnpm-lock.yaml` for improved XML character handling. - Updated IAM Service audit plan to streamline post-deployment monitoring tasks. - Enhanced Dockerfile to prune development dependencies after build for a leaner production image. - Introduced a new encryption key configuration in the environment example for better security practices. - Refactored multiple service files to improve import organization and maintainability. - Improved error handling in seed scripts to provide more detailed logging on failures. - Updated various controllers and services to ensure consistent import statements and enhance readability. These changes aim to improve the overall functionality, security, and maintainability of the IAM Service.
53 lines
1.4 KiB
Plaintext
53 lines
1.4 KiB
Plaintext
# 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
|