# Core Nest - Environment Configuration # This configuration is shared across all services in the nest # ============================================================================= # DEPLOYMENT CONFIG # ============================================================================= # Unique identifier for this deployment (used for container/network names) DEPLOYMENT_NAME=core_nest # Nest identifier (logical grouping of services) NEST_NAME=core_nest # Network name for Docker services NETWORK_NAME=core_nest_network # ============================================================================= # DOMAINS (Local Development) # ============================================================================= # Domain for the managed application (e.g., amar) MANAGED_DOMAIN=amar.local.com # Domain for pawprint management interface PAWPRINT_DOMAIN=pawprint.local.com # ============================================================================= # PORTS (Local Development) # ============================================================================= # Managed app ports BACKEND_PORT=8000 FRONTEND_PORT=3000 # Pawprint ecosystem ports PAWPRINT_PORT=13000 ARTERY_PORT=13001 ALBUM_PORT=13002 WARD_PORT=13003 # ============================================================================= # Ports MANAGED_FRONTEND_PORT=3000 MANAGED_BACKEND_PORT=8000 # Backend location blocks (Django-specific) MANAGED_BACKEND_LOCATIONS=' location /api/ { proxy_pass http://${DEPLOYMENT_NAME}_backend:8000/api/; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; proxy_read_timeout 300; } location /admin/ { proxy_pass http://${DEPLOYMENT_NAME}_backend:8000/admin/; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; } location /static/ { proxy_pass http://${DEPLOYMENT_NAME}_backend:8000/static/; } ' # ============================================================================= # MANAGED DOMAIN CONFIG (AMAR-specific - core_nest context) # ============================================================================= # Complete nginx location blocks for amar MANAGED_LOCATIONS=' location /api/ { proxy_pass http://${DEPLOYMENT_NAME}_backend:8000/api/; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; proxy_read_timeout 300; } location /admin/ { proxy_pass http://${DEPLOYMENT_NAME}_backend:8000/admin/; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; } location /static/ { proxy_pass http://${DEPLOYMENT_NAME}_backend:8000/static/; } location / { proxy_pass http://${DEPLOYMENT_NAME}_frontend:3000; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; proxy_read_timeout 300; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; } ' # ============================================================================= # AMAR PATHS (core_nest specific - managed app) # ============================================================================= BACKEND_PATH=../../amar_django_back FRONTEND_PATH=../../amar_frontend DOCKERFILE_BACKEND=../def/core_nest/amar/Dockerfile.backend DOCKERFILE_FRONTEND=../def/core_nest/amar/Dockerfile.frontend # Database seed data INIT_DB_SEED=test