feat: add environment-specific configuration files

- Add .env.development with development-specific variables
- Add Vite-specific environment files for development and production
- Add Docker environment file for development containers
- Provide proper environment variable defaults for each deployment target
- Enable consistent configuration across different runtime environments
This commit is contained in:
William Valentin
2025-09-08 09:46:00 -07:00
parent 78f5bbd90f
commit 0ad797aeb1
4 changed files with 102 additions and 0 deletions

54
.env.development Normal file
View File

@@ -0,0 +1,54 @@
# DEVELOPMENT Environment Configuration
# Generated automatically from unified configuration
# Generated on: 2025-09-08T16:32:25.385Z
#
# This file was auto-generated. Do not edit manually.
# To make changes, update config/unified.config.ts and regenerate.
APP_NAME=rxminder
APP_VERSION=1.0.0
NODE_ENV=development
APP_BASE_URL=rxminder.192.168.153.243.nip.io
PORT=5173
COUCHDB_URL=http://rxminder-couchdb-service:5984
COUCHDB_USER=admin
COUCHDB_PASSWORD=L7tfqHyg0T4sIYiWK
COUCHDB_DATABASE_NAME=meds_app
USE_MOCK_DB=false
CONTAINER_REGISTRY=gitea-http.taildb3494.ts.net
CONTAINER_REPOSITORY=will/meds
CONTAINER_TAG=latest
DOCKER_IMAGE=gitea-http.taildb3494.ts.net/will/meds:latest
KUBERNETES_NAMESPACE=rxminder-dev
INGRESS_HOST=rxminder.192.168.153.243.nip.io
INGRESS_CLASS=nginx
CERT_MANAGER_ISSUER=letsencrypt-prod
STORAGE_CLASS=longhorn
STORAGE_SIZE=1Gi
ENABLE_EMAIL_VERIFICATION=true
ENABLE_OAUTH=true
ENABLE_ADMIN_INTERFACE=true
ENABLE_MONITORING=false
ENABLE_METRICS=false
DEBUG_MODE=true
LOG_LEVEL=debug
LOG_FORMAT=text
CACHE_TTL=300
REQUEST_TIMEOUT=30000
MAX_CONNECTIONS=100
ENABLE_CORS=true
CORS_ORIGIN=*
FRONTEND_REPLICAS=1
DATABASE_REPLICAS=1
FRONTEND_MEMORY_REQUEST=128Mi
FRONTEND_CPU_REQUEST=50m
FRONTEND_MEMORY_LIMIT=256Mi
FRONTEND_CPU_LIMIT=200m
DATABASE_MEMORY_REQUEST=256Mi
DATABASE_CPU_REQUEST=100m
DATABASE_MEMORY_LIMIT=512Mi
DATABASE_CPU_LIMIT=500m
# Additional environment-specific variables can be added below
# (These will not be overwritten during regeneration)

15
.env.vite.development Normal file
View File

@@ -0,0 +1,15 @@
# Vite environment variables for development
# Generated on: 2025-09-08T16:32:25.392Z
#
# These variables are available in the frontend build process
VITE_APP_NAME=rxminder
VITE_APP_VERSION=1.0.0
VITE_APP_BASE_URL=rxminder.192.168.153.243.nip.io
VITE_COUCHDB_URL=http://rxminder-couchdb-service:5984
VITE_COUCHDB_USER=admin
VITE_COUCHDB_PASSWORD=L7tfqHyg0T4sIYiWK
VITE_ENABLE_EMAIL_VERIFICATION=true
VITE_ENABLE_OAUTH=true
VITE_ENABLE_ADMIN_INTERFACE=true
VITE_DEBUG_MODE=true

15
.env.vite.production Normal file
View File

@@ -0,0 +1,15 @@
# Vite environment variables for production
# Generated on: 2025-09-08T16:25:25.057Z
#
# These variables are available in the frontend build process
VITE_APP_NAME=rxminder
VITE_APP_VERSION=1.0.0
VITE_APP_BASE_URL=rxminder.192.168.153.243.nip.io
VITE_COUCHDB_URL=http://rxminder-couchdb-service:5984
VITE_COUCHDB_USER=admin
VITE_COUCHDB_PASSWORD=L7tfqHyg0T4sIYiWK
VITE_ENABLE_EMAIL_VERIFICATION=true
VITE_ENABLE_OAUTH=true
VITE_ENABLE_ADMIN_INTERFACE=true
VITE_DEBUG_MODE=true

18
docker/.env.development Normal file
View File

@@ -0,0 +1,18 @@
# Docker environment for development
# Generated on: 2025-09-08T16:32:25.391Z
# Container Configuration
DOCKER_IMAGE=gitea-http.taildb3494.ts.net/will/meds:latest
CONTAINER_REGISTRY=gitea-http.taildb3494.ts.net
CONTAINER_REPOSITORY=will/meds
CONTAINER_TAG=latest
# Application Configuration
APP_NAME=rxminder
NODE_ENV=development
PORT=5173
# Database Configuration
COUCHDB_URL=http://rxminder-couchdb-service:5984
COUCHDB_USER=admin
COUCHDB_PASSWORD=L7tfqHyg0T4sIYiWK