111 lines
4.0 KiB
Bash
111 lines
4.0 KiB
Bash
# Core Room - Environment Configuration
|
|
# This configuration is shared across all services in the room
|
|
|
|
# =============================================================================
|
|
# DEPLOYMENT CONFIG
|
|
# =============================================================================
|
|
# Unique identifier for this deployment (used for container/network names)
|
|
DEPLOYMENT_NAME=core_room
|
|
|
|
# Room identifier (logical grouping of services)
|
|
ROOM_NAME=core_room
|
|
|
|
# Network name for Docker services
|
|
NETWORK_NAME=core_room_network
|
|
|
|
# =============================================================================
|
|
# DOMAINS (Local Development)
|
|
# =============================================================================
|
|
# Domain for the managed application (e.g., amar)
|
|
MANAGED_DOMAIN=amar.local.com
|
|
|
|
# Domain for soleprint management interface
|
|
SOLEPRINT_DOMAIN=soleprint.local.com
|
|
|
|
# =============================================================================
|
|
# PORTS (Local Development)
|
|
# =============================================================================
|
|
# Managed app ports
|
|
BACKEND_PORT=8000
|
|
FRONTEND_PORT=3000
|
|
|
|
# Soleprint ecosystem ports
|
|
SOLEPRINT_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_room 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_room specific - managed app)
|
|
# =============================================================================
|
|
BACKEND_PATH=../../amar_django_back
|
|
FRONTEND_PATH=../../amar_frontend
|
|
DOCKERFILE_BACKEND=../def/core_room/amar/Dockerfile.backend
|
|
DOCKERFILE_FRONTEND=../def/core_room/amar/Dockerfile.frontend
|
|
|
|
# Database seed data
|
|
INIT_DB_SEED=test
|