feat: update generated configs and environment files
- Regenerate all environment-specific config files with unified config - Update Vite environment files for all environments (dev/staging/prod) - Update Docker environment files with current configuration - Update Kubernetes config.env files for development and production - Add staging environment configurations and overlays - Ensures all generated files reflect unified configuration system
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
/**
|
||||
* Generated configuration for development
|
||||
* Generated on: 2025-09-08T16:32:25.392Z
|
||||
* Generated on: 2025-09-09T03:27:30.601Z
|
||||
*
|
||||
* This file exports the resolved configuration for the development environment.
|
||||
* It can be imported by other TypeScript files for type-safe configuration access.
|
||||
@@ -22,7 +22,7 @@ export const developmentConfig: UnifiedConfig = {
|
||||
password: 'L7tfqHyg0T4sIYiWK',
|
||||
name: 'meds_app',
|
||||
useMock: false,
|
||||
connectionTimeout: 30000,
|
||||
connectionTimeout: 5000,
|
||||
retryAttempts: 3,
|
||||
},
|
||||
container: {
|
||||
@@ -35,7 +35,7 @@ export const developmentConfig: UnifiedConfig = {
|
||||
namespace: 'rxminder-dev',
|
||||
ingressHost: 'rxminder.192.168.153.243.nip.io',
|
||||
ingressClass: 'nginx',
|
||||
certIssuer: 'letsencrypt-prod',
|
||||
certIssuer: 'selfsigned',
|
||||
storageClass: 'longhorn',
|
||||
storageSize: '1Gi',
|
||||
replicas: {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/**
|
||||
* Generated configuration for production
|
||||
* Generated on: 2025-09-08T16:25:25.058Z
|
||||
* Generated on: 2025-09-09T03:27:30.605Z
|
||||
*
|
||||
* This file exports the resolved configuration for the production environment.
|
||||
* It can be imported by other TypeScript files for type-safe configuration access.
|
||||
@@ -22,8 +22,8 @@ export const productionConfig: UnifiedConfig = {
|
||||
password: 'L7tfqHyg0T4sIYiWK',
|
||||
name: 'meds_app',
|
||||
useMock: false,
|
||||
connectionTimeout: 30000,
|
||||
retryAttempts: 3,
|
||||
connectionTimeout: 10000,
|
||||
retryAttempts: 5,
|
||||
},
|
||||
container: {
|
||||
registry: 'gitea-http.taildb3494.ts.net',
|
||||
@@ -66,7 +66,7 @@ export const productionConfig: UnifiedConfig = {
|
||||
},
|
||||
},
|
||||
auth: {
|
||||
jwtSecret: 'my-production-jwt-secret',
|
||||
jwtSecret: 'your-super-secret-jwt-key-change-in-production',
|
||||
jwtExpiresIn: '1h',
|
||||
refreshTokenExpiresIn: '7d',
|
||||
emailVerificationExpiresIn: '24h',
|
||||
@@ -106,10 +106,10 @@ export const productionConfig: UnifiedConfig = {
|
||||
},
|
||||
performance: {
|
||||
cacheTimeout: 3600,
|
||||
requestTimeout: 30000,
|
||||
requestTimeout: 120000,
|
||||
maxConnections: 200,
|
||||
enableCors: true,
|
||||
corsOrigin: '*',
|
||||
corsOrigin: 'https://rxminder.com',
|
||||
},
|
||||
logging: {
|
||||
level: 'debug',
|
||||
@@ -121,7 +121,7 @@ export const productionConfig: UnifiedConfig = {
|
||||
enableHttps: true,
|
||||
enableHsts: true,
|
||||
enableCsp: true,
|
||||
sessionSecret: 'my-production-session-secret',
|
||||
sessionSecret: 'secure-session-secret-key',
|
||||
rateLimitRequests: 100,
|
||||
rateLimitWindow: 900000,
|
||||
},
|
||||
|
||||
130
config/generated/staging.config.ts
Normal file
130
config/generated/staging.config.ts
Normal file
@@ -0,0 +1,130 @@
|
||||
/**
|
||||
* Generated configuration for staging
|
||||
* Generated on: 2025-09-09T03:27:30.603Z
|
||||
*
|
||||
* This file exports the resolved configuration for the staging environment.
|
||||
* It can be imported by other TypeScript files for type-safe configuration access.
|
||||
*/
|
||||
|
||||
import type { UnifiedConfig } from '../unified.config';
|
||||
|
||||
export const stagingConfig: UnifiedConfig = {
|
||||
app: {
|
||||
name: 'rxminder',
|
||||
version: '1.0.0',
|
||||
environment: 'staging',
|
||||
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-staging',
|
||||
ingressHost: 'rxminder.192.168.153.243.nip.io',
|
||||
ingressClass: 'nginx',
|
||||
certIssuer: 'letsencrypt-staging',
|
||||
storageClass: 'longhorn',
|
||||
storageSize: '1Gi',
|
||||
replicas: {
|
||||
frontend: 2,
|
||||
database: 1,
|
||||
},
|
||||
resources: {
|
||||
frontend: {
|
||||
requests: {
|
||||
memory: '256Mi',
|
||||
cpu: '100m',
|
||||
},
|
||||
limits: {
|
||||
memory: '512Mi',
|
||||
cpu: '500m',
|
||||
},
|
||||
},
|
||||
database: {
|
||||
requests: {
|
||||
memory: '512Mi',
|
||||
cpu: '200m',
|
||||
},
|
||||
limits: {
|
||||
memory: '1Gi',
|
||||
cpu: '1000m',
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
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: true,
|
||||
enableSecurityHeaders: true,
|
||||
debugMode: true,
|
||||
hotReload: false,
|
||||
},
|
||||
performance: {
|
||||
cacheTimeout: 1800,
|
||||
requestTimeout: 60000,
|
||||
maxConnections: 150,
|
||||
enableCors: true,
|
||||
corsOrigin: 'https://staging.rxminder.com',
|
||||
},
|
||||
logging: {
|
||||
level: 'debug',
|
||||
format: 'json',
|
||||
enableTimestamp: true,
|
||||
enableColors: false,
|
||||
},
|
||||
security: {
|
||||
enableHttps: false,
|
||||
enableHsts: false,
|
||||
enableCsp: false,
|
||||
sessionSecret: 'your-session-secret-change-in-production',
|
||||
rateLimitRequests: 100,
|
||||
rateLimitWindow: 900000,
|
||||
},
|
||||
} as const;
|
||||
|
||||
export default stagingConfig;
|
||||
Reference in New Issue
Block a user