- Add generated TypeScript configuration exports for all environments - Create development and production Kubernetes overlay directories - Include environment-specific kustomization configurations - Add namespace and resource definitions for proper K8s deployment - Enable environment-specific configuration management
131 lines
3.0 KiB
TypeScript
131 lines
3.0 KiB
TypeScript
/**
|
|
* Generated configuration for development
|
|
* Generated on: 2025-09-08T16:32:25.392Z
|
|
*
|
|
* This file exports the resolved configuration for the development environment.
|
|
* It can be imported by other TypeScript files for type-safe configuration access.
|
|
*/
|
|
|
|
import type { UnifiedConfig } from '../unified.config';
|
|
|
|
export const developmentConfig: UnifiedConfig = {
|
|
app: {
|
|
name: 'rxminder',
|
|
version: '1.0.0',
|
|
environment: 'development',
|
|
baseUrl: 'rxminder.192.168.153.243.nip.io',
|
|
port: 5173,
|
|
},
|
|
database: {
|
|
url: 'http://rxminder-couchdb-service:5984',
|
|
username: 'admin',
|
|
password: 'L7tfqHyg0T4sIYiWK',
|
|
name: 'meds_app',
|
|
useMock: false,
|
|
connectionTimeout: 30000,
|
|
retryAttempts: 3,
|
|
},
|
|
container: {
|
|
registry: 'gitea-http.taildb3494.ts.net',
|
|
repository: 'will/meds',
|
|
tag: 'latest',
|
|
imageUrl: 'gitea-http.taildb3494.ts.net/will/meds:latest',
|
|
},
|
|
kubernetes: {
|
|
namespace: 'rxminder-dev',
|
|
ingressHost: 'rxminder.192.168.153.243.nip.io',
|
|
ingressClass: 'nginx',
|
|
certIssuer: 'letsencrypt-prod',
|
|
storageClass: 'longhorn',
|
|
storageSize: '1Gi',
|
|
replicas: {
|
|
frontend: 1,
|
|
database: 1,
|
|
},
|
|
resources: {
|
|
frontend: {
|
|
requests: {
|
|
memory: '128Mi',
|
|
cpu: '50m',
|
|
},
|
|
limits: {
|
|
memory: '256Mi',
|
|
cpu: '200m',
|
|
},
|
|
},
|
|
database: {
|
|
requests: {
|
|
memory: '256Mi',
|
|
cpu: '100m',
|
|
},
|
|
limits: {
|
|
memory: '512Mi',
|
|
cpu: '500m',
|
|
},
|
|
},
|
|
},
|
|
},
|
|
auth: {
|
|
jwtSecret: 'your-super-secret-jwt-key-change-in-production',
|
|
jwtExpiresIn: '1h',
|
|
refreshTokenExpiresIn: '7d',
|
|
emailVerificationExpiresIn: '24h',
|
|
bcryptRounds: 12,
|
|
},
|
|
email: {
|
|
provider: 'console',
|
|
mailgun: {
|
|
apiKey: 'your-production-mailgun-api-key-here',
|
|
domain: 'your-production-domain.com',
|
|
baseUrl: 'https://api.mailgun.net/v3',
|
|
},
|
|
fromName: 'RxMinder',
|
|
fromEmail: 'noreply@your-production-domain.com',
|
|
},
|
|
oauth: {
|
|
google: {
|
|
clientId: 'your_google_client_id_here',
|
|
clientSecret: '',
|
|
},
|
|
github: {
|
|
clientId: 'your_github_client_id_here',
|
|
clientSecret: '',
|
|
},
|
|
},
|
|
features: {
|
|
enableEmailVerification: true,
|
|
enableOAuth: true,
|
|
enableAdminInterface: true,
|
|
enableMonitoring: false,
|
|
enableMetrics: false,
|
|
enableTracing: false,
|
|
enableRateLimiting: false,
|
|
enableSecurityHeaders: false,
|
|
debugMode: true,
|
|
hotReload: true,
|
|
},
|
|
performance: {
|
|
cacheTimeout: 300,
|
|
requestTimeout: 30000,
|
|
maxConnections: 100,
|
|
enableCors: true,
|
|
corsOrigin: '*',
|
|
},
|
|
logging: {
|
|
level: 'debug',
|
|
format: 'text',
|
|
enableTimestamp: true,
|
|
enableColors: true,
|
|
},
|
|
security: {
|
|
enableHttps: false,
|
|
enableHsts: false,
|
|
enableCsp: false,
|
|
sessionSecret: 'your-session-secret-change-in-production',
|
|
rateLimitRequests: 100,
|
|
rateLimitWindow: 900000,
|
|
},
|
|
} as const;
|
|
|
|
export default developmentConfig;
|