fixed network issue with multiple managed rooms

This commit is contained in:
buenosairesam
2026-01-27 02:26:03 -03:00
parent dd47f9c66f
commit 8c5deb74e8
12 changed files with 401 additions and 3 deletions

15
cfg/sample/sample/.env Normal file
View File

@@ -0,0 +1,15 @@
# =============================================================================
# Sample Managed App - Environment Configuration
# =============================================================================
# Copy this to cfg/<your-room>/<app-name>/.env and customize
# =============================================================================
# DEPLOYMENT
# =============================================================================
DEPLOYMENT_NAME=sample
NETWORK_NAME=sample_network
# =============================================================================
# PORTS
# =============================================================================
FRONTEND_PORT=3020

View File

@@ -0,0 +1,19 @@
# Sample Mock Frontend
# Simple nginx serving static HTML
#
# For a real app, customize this with your actual services
services:
frontend:
image: nginx:alpine
container_name: ${DEPLOYMENT_NAME}_frontend
volumes:
- ./index.html:/usr/share/nginx/html/index.html:ro
ports:
- "${FRONTEND_PORT}:80"
networks:
- default
networks:
default:
name: ${NETWORK_NAME}

View File

@@ -0,0 +1,35 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Sample App</title>
<style>
body {
font-family: system-ui, -apple-system, sans-serif;
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
margin: 0;
background: #f5f5f5;
}
.container {
text-align: center;
padding: 2rem;
background: white;
border-radius: 8px;
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
h1 { color: #333; }
p { color: #666; }
</style>
</head>
<body>
<div class="container">
<h1>Sample App</h1>
<p>This is a sample managed room for Soleprint.</p>
<p>Replace this with your actual frontend.</p>
</div>
</body>
</html>