init proj

This commit is contained in:
2026-02-27 15:45:18 +00:00
commit 7a76c1d9fe
3 changed files with 89 additions and 0 deletions

2
.env Normal file
View File

@@ -0,0 +1,2 @@
DOMAIN_MAIN=gzl.lan64.de
TITLE="Ground Zero Lab"

27
compose.yml Normal file
View File

@@ -0,0 +1,27 @@
services:
webpage:
image: nginx:alpine
container_name: webpage
restart: unless-stopped
environment:
- TITLE=${TITLE}
- DOMAIN_MAIN=${DOMAIN_MAIN}
- NGINX_ENVSUBST_OUTPUT_DIR=/usr/share/nginx/html
volumes:
# Wir mounten das Template - Nginx macht daraus beim Start die echte index.html
- ./html/index.html.template:/etc/nginx/templates/index.html.template:ro
#- ./html/crl.pem:/var/www/html/crl.pem:ro
- ./html/crl.pem:/usr/share/nginx/html/crl.pem:ro
#- ./nginx/crl.conf:/etc/nginx/conf.d/crl.conf:ro
networks:
- proxy
labels:
- "traefik.enable=true"
- "traefik.http.routers.webpage.rule=Host(`${DOMAIN_MAIN}`)"
- "traefik.http.routers.webpage.entrypoints=websecure"
- "traefik.http.routers.webpage.tls.certresolver=myresolver"
- "traefik.http.services.webpage.loadbalancer.server.port=80"
networks:
proxy:
external: true

60
html/index.html.template Normal file
View File

@@ -0,0 +1,60 @@
<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>${TITLE} Dashboard</title>
<style>
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
background: #0f172a;
color: #f1f5f9;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
margin: 0;
}
.container {
background: #1e293b;
padding: 2rem;
border-radius: 1rem;
box-shadow: 0 10px 25px rgba(0,0,0,0.3);
width: 100%;
max-width: 400px;
border: 1px solid #334155;
}
h1 { color: #38bdf8; margin-bottom: 1.5rem; font-size: 1.5rem; }
.links { display: flex; flex-direction: column; gap: 1rem; }
a {
background: #334155;
color: white;
padding: 1rem;
text-decoration: none;
border-radius: 0.5rem;
font-weight: 500;
transition: all 0.2s ease-in-out;
border: 1px solid transparent;
}
a:hover {
background: #38bdf8;
color: #0f172a;
transform: translateY(-2px);
}
.footer { margin-top: 2rem; font-size: 0.8rem; color: #64748b; }
</style>
</head>
<body>
<div class="container">
<h1>${TITLE}</h1>
<div class="links">
<a href="https://cloud.${DOMAIN_MAIN}">📂 Nextcloud Cloud</a>
<a href="https://git.${DOMAIN_MAIN}">💻 Gitea Repository</a>
<a href="https://ai.${DOMAIN_MAIN}">🤖 OpenWebUI AI</a>
</div>
<div class="footer">
Verbundene Domain: ${DOMAIN_MAIN}
</div>
</div>
</body>
</html>