Created via MCP

This commit is contained in:
2026-03-01 20:11:43 +00:00
parent 860c5cbced
commit ae911db777

View File

@@ -0,0 +1,116 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: nginx-mcp-html
namespace: nginx-mcp
data:
index.html: |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Hello from MCP</title>
<style>
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
min-height: 100vh;
display: flex;
align-items: center;
justify-content: center;
color: #fff;
}
.card {
background: rgba(255,255,255,0.08);
backdrop-filter: blur(12px);
border: 1px solid rgba(255,255,255,0.15);
border-radius: 20px;
padding: 60px 80px;
text-align: center;
box-shadow: 0 25px 50px rgba(0,0,0,0.4);
max-width: 600px;
}
.badge {
display: inline-block;
background: linear-gradient(90deg, #667eea, #764ba2);
color: #fff;
font-size: 0.75rem;
font-weight: 700;
letter-spacing: 2px;
text-transform: uppercase;
padding: 6px 18px;
border-radius: 20px;
margin-bottom: 30px;
}
h1 {
font-size: 3rem;
font-weight: 800;
background: linear-gradient(90deg, #a78bfa, #60a5fa);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
margin-bottom: 10px;
}
.subtitle { color: #94a3b8; font-size: 1rem; margin-bottom: 40px; }
.ip-box {
background: rgba(0,0,0,0.35);
border: 1px solid rgba(103,78,167,0.5);
border-radius: 12px;
padding: 20px 30px;
margin-top: 10px;
}
.ip-label {
font-size: 0.7rem;
letter-spacing: 2px;
text-transform: uppercase;
color: #64748b;
margin-bottom: 8px;
}
.ip-value {
font-size: 1.8rem;
font-weight: 700;
font-family: 'Courier New', monospace;
color: #a78bfa;
letter-spacing: 3px;
}
.footer {
margin-top: 40px;
font-size: 0.78rem;
color: #475569;
}
</style>
</head>
<body>
<div class="card">
<div class="badge">🤖 MCP Powered</div>
<h1>Hello from MCP</h1>
<p class="subtitle">Deployed via AI-assisted GitOps pipeline</p>
<div class="ip-box">
<div class="ip-label">Your Internal IP Address</div>
<div class="ip-value" id="ip">Detecting...</div>
</div>
<div class="footer">
nginx-mcp · thedevops.dev · ArgoCD + Traefik
</div>
</div>
<script>
fetch('https://api.ipify.org?format=json')
.then(r => r.json())
.then(d => { document.getElementById('ip').textContent = d.ip; })
.catch(() => {
document.getElementById('ip').textContent = window.location.hostname;
});
</script>
</body>
</html>
nginx.conf: |
server {
listen 80;
server_name _;
root /usr/share/nginx/html;
index index.html;
location / {
try_files $uri $uri/ =404;
}
}