Add reverse proxy masking and Cloudflare panel SSL via DNS-01.

Introduce Caddy-based reverse proxy with decoy site and DPI masking, plus automatic Let's Encrypt certificate issuance for the panel through Cloudflare API without binding port 443.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
test2
2026-07-08 00:41:50 +03:00
co-authored by Cursor
commit 7ef408afe7
46 changed files with 19886 additions and 0 deletions
+34
View File
@@ -0,0 +1,34 @@
services:
revproxy:
image: caddy:2-alpine
container_name: amnezia-revproxy
restart: unless-stopped
ports:
- "80:80"
- "443:443"
- "443:443/udp"
volumes:
- ./Caddyfile:/etc/caddy/Caddyfile:ro
- ./site:/srv/site:ro
- caddy_data:/data
- caddy_config:/config
networks:
- amnezia-dns-net
cap_drop:
- ALL
cap_add:
- NET_BIND_SERVICE
security_opt:
- no-new-privileges:true
ulimits:
nofile:
soft: 65536
hard: 65536
volumes:
caddy_data:
caddy_config:
networks:
amnezia-dns-net:
external: true
+94
View File
@@ -0,0 +1,94 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="Cloud infrastructure and managed services for modern teams.">
<meta name="robots" content="index, follow">
<title>{{SITE_TITLE}}</title>
<link rel="stylesheet" href="/style.css">
<link rel="icon" href="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><text y='.9em' font-size='90'>☁</text></svg>">
</head>
<body>
<header class="header">
<div class="container header-inner">
<div class="logo">{{SITE_TITLE}}</div>
<nav class="nav">
<a href="#services">Services</a>
<a href="#about">About</a>
<a href="#contact">Contact</a>
</nav>
</div>
</header>
<main>
<section class="hero">
<div class="container">
<p class="hero-badge">Trusted by teams worldwide</p>
<h1>Reliable cloud infrastructure<br>for your business</h1>
<p class="hero-lead">We deliver secure hosting, CDN acceleration, and 24/7 monitoring — so you can focus on building products.</p>
<div class="hero-actions">
<a class="btn btn-primary" href="#contact">Get started</a>
<a class="btn btn-secondary" href="#services">Learn more</a>
</div>
</div>
</section>
<section id="services" class="section">
<div class="container">
<h2>Our services</h2>
<div class="grid">
<article class="card">
<div class="card-icon">🚀</div>
<h3>Managed hosting</h3>
<p>High-availability clusters with automatic failover and daily backups.</p>
</article>
<article class="card">
<div class="card-icon">🔒</div>
<h3>Security</h3>
<p>TLS everywhere, WAF protection, and compliance-ready infrastructure.</p>
</article>
<article class="card">
<div class="card-icon">📊</div>
<h3>Analytics</h3>
<p>Real-time metrics, uptime dashboards, and actionable alerts.</p>
</article>
</div>
</div>
</section>
<section id="about" class="section section-muted">
<div class="container about">
<div>
<h2>Built for uptime</h2>
<p>Since 2018 we have operated edge nodes across multiple regions. Our platform is designed for low latency, horizontal scaling, and predictable billing.</p>
<ul class="checklist">
<li>99.9% SLA on production workloads</li>
<li>ISO 27001 aligned practices</li>
<li>Human support, not ticket bots</li>
</ul>
</div>
<div class="stats">
<div><strong>40+</strong><span>Regions</span></div>
<div><strong>2M+</strong><span>Requests/day</span></div>
<div><strong>12ms</strong><span>Avg latency</span></div>
</div>
</div>
</section>
<section id="contact" class="section">
<div class="container contact">
<h2>Contact us</h2>
<p>hello@{{SITE_DOMAIN}}</p>
<p class="muted">Business hours: MonFri, 9:0018:00 UTC</p>
</div>
</section>
</main>
<footer class="footer">
<div class="container">
<p>&copy; 2026 {{SITE_TITLE}}. All rights reserved.</p>
</div>
</footer>
</body>
</html>
+167
View File
@@ -0,0 +1,167 @@
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
--bg: #0b1220;
--surface: #111827;
--text: #e5e7eb;
--muted: #9ca3af;
--accent: #3b82f6;
--accent-hover: #2563eb;
--border: rgba(255,255,255,0.08);
}
html { scroll-behavior: smooth; }
body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
background: var(--bg);
color: var(--text);
line-height: 1.6;
}
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.header {
position: sticky;
top: 0;
z-index: 10;
background: rgba(11, 18, 32, 0.85);
backdrop-filter: blur(12px);
border-bottom: 1px solid var(--border);
}
.header-inner {
display: flex;
align-items: center;
justify-content: space-between;
height: 64px;
}
.logo { font-weight: 700; font-size: 1.1rem; letter-spacing: -0.02em; }
.nav { display: flex; gap: 24px; }
.nav a { color: var(--muted); text-decoration: none; font-size: 0.95rem; transition: color 0.2s; }
.nav a:hover { color: var(--text); }
.hero {
padding: 96px 0 80px;
background: radial-gradient(ellipse 80% 60% at 50% -20%, rgba(59,130,246,0.25), transparent);
}
.hero-badge {
display: inline-block;
padding: 6px 14px;
border-radius: 999px;
background: rgba(59,130,246,0.15);
color: #93c5fd;
font-size: 0.85rem;
margin-bottom: 20px;
}
.hero h1 {
font-size: clamp(2rem, 5vw, 3.25rem);
line-height: 1.15;
letter-spacing: -0.03em;
margin-bottom: 20px;
}
.hero-lead {
font-size: 1.15rem;
color: var(--muted);
max-width: 560px;
margin-bottom: 32px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
display: inline-flex;
align-items: center;
padding: 12px 24px;
border-radius: 10px;
font-weight: 600;
text-decoration: none;
transition: background 0.2s, transform 0.15s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-secondary {
background: rgba(255,255,255,0.06);
color: var(--text);
border: 1px solid var(--border);
}
.btn-secondary:hover { background: rgba(255,255,255,0.1); }
.section { padding: 72px 0; }
.section-muted { background: var(--surface); }
.section h2 { font-size: 1.75rem; margin-bottom: 32px; letter-spacing: -0.02em; }
.grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
gap: 24px;
}
.card {
padding: 28px;
border-radius: 16px;
background: rgba(255,255,255,0.03);
border: 1px solid var(--border);
}
.card-icon { font-size: 2rem; margin-bottom: 12px; }
.card h3 { margin-bottom: 8px; font-size: 1.1rem; }
.card p { color: var(--muted); font-size: 0.95rem; }
.about {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 48px;
align-items: center;
}
.about p { color: var(--muted); margin-bottom: 20px; }
.checklist { list-style: none; }
.checklist li {
padding: 8px 0 8px 28px;
position: relative;
color: var(--muted);
}
.checklist li::before {
content: "✓";
position: absolute;
left: 0;
color: #34d399;
font-weight: 700;
}
.stats {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 16px;
text-align: center;
}
.stats strong { display: block; font-size: 1.75rem; color: var(--text); }
.stats span { font-size: 0.85rem; color: var(--muted); }
.contact { text-align: center; }
.contact p { font-size: 1.1rem; margin-bottom: 8px; }
.muted { color: var(--muted); font-size: 0.9rem; }
.footer {
padding: 32px 0;
border-top: 1px solid var(--border);
text-align: center;
color: var(--muted);
font-size: 0.85rem;
}
@media (max-width: 768px) {
.nav { display: none; }
.about { grid-template-columns: 1fr; }
.stats { grid-template-columns: 1fr; }
}