feat: www landing page with component listing
This commit is contained in:
parent
7b3942658d
commit
ddef538795
4 changed files with 103 additions and 0 deletions
|
|
@ -6,6 +6,7 @@ services:
|
||||||
network_mode: host
|
network_mode: host
|
||||||
volumes:
|
volumes:
|
||||||
- /opt/nextworkspace/config/zoraxy/:/opt/zoraxy/config/
|
- /opt/nextworkspace/config/zoraxy/:/opt/zoraxy/config/
|
||||||
|
- /opt/nextworkspace/config/zoraxy/www/:/opt/zoraxy/www/
|
||||||
- /opt/nextworkspace/data/zoraxy/:/opt/zoraxy/data/
|
- /opt/nextworkspace/data/zoraxy/:/opt/zoraxy/data/
|
||||||
- /opt/nextworkspace/logs/zoraxy/:/opt/zoraxy/log/
|
- /opt/nextworkspace/logs/zoraxy/:/opt/zoraxy/log/
|
||||||
- /var/run/docker.sock:/var/run/docker.sock
|
- /var/run/docker.sock:/var/run/docker.sock
|
||||||
|
|
@ -13,4 +14,5 @@ services:
|
||||||
- PORT=8000
|
- PORT=8000
|
||||||
- NOAUTH=false
|
- NOAUTH=false
|
||||||
- DOCKER=true
|
- DOCKER=true
|
||||||
|
- WEBROOT=/opt/zoraxy/www/
|
||||||
- TZ=UTC
|
- TZ=UTC
|
||||||
|
|
|
||||||
83
config/www/index.html
Normal file
83
config/www/index.html
Normal file
|
|
@ -0,0 +1,83 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
<title>NextWorkspace — Your Self-Hosted Workspace for Startups</title>
|
||||||
|
<style>
|
||||||
|
* { margin: 0; padding: 0; box-sizing: border-box; }
|
||||||
|
body {
|
||||||
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
||||||
|
background: #f0f2f5;
|
||||||
|
color: #1a1a2e;
|
||||||
|
min-height: 100vh;
|
||||||
|
}
|
||||||
|
header {
|
||||||
|
background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
|
||||||
|
color: #fff;
|
||||||
|
padding: 3rem 2rem;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
header h1 { font-size: 2.5rem; margin-bottom: 0.5rem; }
|
||||||
|
header p { color: #a0aec0; font-size: 1.2rem; }
|
||||||
|
.domain { color: #63b3ed; font-size: 0.9rem; margin-top: 0.5rem; }
|
||||||
|
.container { max-width: 800px; margin: 0 auto; padding: 2rem; }
|
||||||
|
h2 { font-size: 1.5rem; margin: 2rem 0 1rem; color: #2d3748; }
|
||||||
|
ul { list-style: none; padding: 0; }
|
||||||
|
li {
|
||||||
|
background: #fff;
|
||||||
|
border-radius: 8px;
|
||||||
|
padding: 1rem 1.25rem;
|
||||||
|
margin-bottom: 0.75rem;
|
||||||
|
box-shadow: 0 1px 4px rgba(0,0,0,0.06);
|
||||||
|
}
|
||||||
|
li a { color: #1a1a2e; text-decoration: none; font-weight: 600; font-size: 1.05rem; }
|
||||||
|
li a:hover { color: #63b3ed; }
|
||||||
|
li span { color: #718096; font-size: 0.9rem; margin-left: 0.5rem; }
|
||||||
|
.ai-credit {
|
||||||
|
background: #edf2f7;
|
||||||
|
border-radius: 8px;
|
||||||
|
padding: 1.5rem;
|
||||||
|
margin-top: 2rem;
|
||||||
|
text-align: center;
|
||||||
|
font-size: 0.9rem;
|
||||||
|
color: #4a5568;
|
||||||
|
}
|
||||||
|
.ai-credit strong { color: #1a1a2e; }
|
||||||
|
footer {
|
||||||
|
text-align: center;
|
||||||
|
padding: 2rem;
|
||||||
|
color: #a0aec0;
|
||||||
|
font-size: 0.85rem;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<header>
|
||||||
|
<h1>NextWorkspace</h1>
|
||||||
|
<p>Your Self-Hosted Workspace for Startups</p>
|
||||||
|
<div class="domain">nextwks.eu</div>
|
||||||
|
</header>
|
||||||
|
<div class="container">
|
||||||
|
<h2>Components</h2>
|
||||||
|
<ul>
|
||||||
|
<li><a href="https://app.nextwks.eu/home">NextWks Core</a><span>— Launcher & Workspace Hub</span></li>
|
||||||
|
<li><a href="https://app.nextwks.eu/drive">OpenCloud</a><span>— File Storage</span></li>
|
||||||
|
<li><a href="https://app.nextwks.eu/connect">Alps Webmail</a><span>— Email Client</span></li>
|
||||||
|
<li><a href="https://app.nextwks.eu/office">Euro Office</a><span>— Collaborative Suite</span></li>
|
||||||
|
<li><a href="https://app.nextwks.eu/enterprise">ERPNext</a><span>— Enterprise ERP</span></li>
|
||||||
|
<li><a href="https://app.nextwks.eu/chat">Element Web</a><span>— Matrix Chat</span></li>
|
||||||
|
<li><a href="https://app.nextwks.eu/meet">Jitsi</a><span>— Video Conferencing</span></li>
|
||||||
|
<li><a href="https://app.nextwks.eu/aida">Open WebUI</a><span>— AI Chat Frontend</span></li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<div class="ai-credit">
|
||||||
|
<h2>Built with AI</h2>
|
||||||
|
<p>NextWorkspace was developed with assistance from AI coding tools, using <strong>DeepSeek</strong> as the provider and <strong>OpenCode</strong> as the development framework.</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<footer>
|
||||||
|
© 2026 NextWorkspace — nextwks.eu
|
||||||
|
</footer>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
17
deploy.sh
17
deploy.sh
|
|
@ -70,6 +70,7 @@ if [ "$GREENFIELD" = true ]; then
|
||||||
echo "[4/6] Creating target directories..."
|
echo "[4/6] Creating target directories..."
|
||||||
mkdir -p "$TARGET_DIR/config/nextworkspace"
|
mkdir -p "$TARGET_DIR/config/nextworkspace"
|
||||||
mkdir -p "$TARGET_DIR/config/zoraxy/conf/proxy"
|
mkdir -p "$TARGET_DIR/config/zoraxy/conf/proxy"
|
||||||
|
mkdir -p "$TARGET_DIR/config/zoraxy/www"
|
||||||
mkdir -p "$TARGET_DIR/data/zoraxy"
|
mkdir -p "$TARGET_DIR/data/zoraxy"
|
||||||
mkdir -p "$TARGET_DIR/compose"
|
mkdir -p "$TARGET_DIR/compose"
|
||||||
mkdir -p "$TARGET_DIR/logs"
|
mkdir -p "$TARGET_DIR/logs"
|
||||||
|
|
@ -204,6 +205,22 @@ ZORAXY_APP
|
||||||
}
|
}
|
||||||
ZORAXY_DNS
|
ZORAXY_DNS
|
||||||
|
|
||||||
|
# Generate www subdomain config (static site, no upstream)
|
||||||
|
cat > "$TARGET_DIR/config/zoraxy/conf/proxy/www.$DOMAIN.config" <<ZORAXY_WWW
|
||||||
|
{
|
||||||
|
"ProxyType": 1,
|
||||||
|
"RootOrMatchingDomain": "www.$DOMAIN",
|
||||||
|
"ActiveOrigins": [],
|
||||||
|
"Disabled": false,
|
||||||
|
"AuthenticationProvider": {"AuthMethod": 0},
|
||||||
|
"DefaultSiteOption": 1,
|
||||||
|
"DefaultSiteValue": "internal"
|
||||||
|
}
|
||||||
|
ZORAXY_WWW
|
||||||
|
|
||||||
|
# Copy www landing page
|
||||||
|
cp -r config/www/* "$TARGET_DIR/config/zoraxy/www/"
|
||||||
|
|
||||||
# Lock proxy configs so Zoraxy cannot rewrite them (clearing OriginIpOrDomain)
|
# Lock proxy configs so Zoraxy cannot rewrite them (clearing OriginIpOrDomain)
|
||||||
echo "[*] Locking proxy configs (chattr +i)..."
|
echo "[*] Locking proxy configs (chattr +i)..."
|
||||||
chattr -R +i "$TARGET_DIR/config/zoraxy/conf/proxy/" 2>/dev/null || true
|
chattr -R +i "$TARGET_DIR/config/zoraxy/conf/proxy/" 2>/dev/null || true
|
||||||
|
|
|
||||||
|
|
@ -10,6 +10,7 @@ TARGET_DIR="/opt/nextworkspace"
|
||||||
echo "=== NextWorkspace Setup ==="
|
echo "=== NextWorkspace Setup ==="
|
||||||
mkdir -p "$TARGET_DIR/config/nextworkspace"
|
mkdir -p "$TARGET_DIR/config/nextworkspace"
|
||||||
mkdir -p "$TARGET_DIR/config/zoraxy/conf/proxy"
|
mkdir -p "$TARGET_DIR/config/zoraxy/conf/proxy"
|
||||||
|
mkdir -p "$TARGET_DIR/config/zoraxy/www"
|
||||||
mkdir -p "$TARGET_DIR/data/zoraxy"
|
mkdir -p "$TARGET_DIR/data/zoraxy"
|
||||||
mkdir -p "$TARGET_DIR/compose"
|
mkdir -p "$TARGET_DIR/compose"
|
||||||
mkdir -p "$TARGET_DIR/logs"
|
mkdir -p "$TARGET_DIR/logs"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue