wolf-host / docs.html
mohammed978's picture
Wolf Host panel (gateway architecture, obfuscated sources)
73c1400 verified
Raw History Blame Contribute Delete
6.23 kB
<!doctype html>
<html lang="ar" dir="rtl">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width,initial-scale=1" />
<link rel="icon" type="image/png" href="/logo.png" />
<title>Wolf Host — التوثيق</title>
<style>
:root{
--bg0:#05060a;--bg1:#070a12;
--glass:rgba(255,255,255,.06);
--border:rgba(255,255,255,.10);
--muted:rgba(255,255,255,.65);
--text:rgba(255,255,255,.92);
--accent:#00d4ff;--accent2:#7b61ff;
--danger:#ff4d4d;--ok:#33ff99;--warn:#ffd166;
--shadow:0 18px 60px rgba(0,0,0,.55);
--radius:18px;
}
*{box-sizing:border-box}
body{
margin:0;color:var(--text);
font-family:ui-sans-serif,system-ui,-apple-system,"Segoe UI",Tahoma,Arial;
background:
radial-gradient(1200px 600px at 90% 10%, rgba(0,212,255,.22), transparent 60%),
radial-gradient(900px 500px at 10% 20%, rgba(123,97,255,.20), transparent 55%),
linear-gradient(180deg, var(--bg1), var(--bg0));
min-height:100%;
}
.topbar{position:sticky;top:0;z-index:20;backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);background:rgba(0,0,0,.35);border-bottom:1px solid var(--border)}
.topbar-inner{max-width:1000px;margin:0 auto;padding:14px 18px;display:flex;gap:12px;align-items:center;justify-content:space-between}
.brand{display:flex;align-items:center;gap:12px;font-weight:900;letter-spacing:.6px}
.brand .logo{width:38px;height:38px;border-radius:12px;object-fit:cover;border:1px solid rgba(255,255,255,.14);cursor:pointer}
.brand .title{color:var(--accent);font-size:15px}
.btn{border:1px solid var(--border);background:rgba(255,255,255,.06);color:var(--text);padding:10px 14px;border-radius:12px;cursor:pointer;font-weight:800;font-size:12px;text-decoration:none;display:inline-block}
.btn:hover{background:rgba(255,255,255,.09)}
.btn-primary{background:linear-gradient(135deg, rgba(0,212,255,.95), rgba(123,97,255,.85));color:#00131c;border:0}
.wrap{max-width:1000px;margin:26px auto 80px;padding:0 18px}
h1{font-size:26px;margin:0 0 6px}
p{color:var(--muted);line-height:1.9;font-size:14px}
pre{background:rgba(0,0,0,.5);border:1px solid var(--border);border-radius:14px;padding:18px 20px;overflow-x:auto;direction:ltr;text-align:left;font-size:12.5px;color:#d7f6ff;white-space:pre-wrap;line-height:1.7}
code{background:rgba(0,212,255,.08);border:1px solid rgba(0,212,255,.18);padding:2px 7px;border-radius:8px;font-size:12.5px;color:#bfefff;direction:ltr;display:inline-block}
#toast{position:fixed;left:50%;bottom:26px;transform:translateX(-50%) translateY(20px);opacity:0;pointer-events:none;background:rgba(10,16,26,.94);border:1px solid rgba(0,212,255,.4);color:var(--text);padding:12px 18px;border-radius:14px;font-size:13px;font-weight:800;z-index:100;transition:opacity .25s,transform .25s}
#toast.show{opacity:1;transform:translateX(-50%) translateY(0)}
</style>
</head>
<body>
<div class="topbar">
<div class="topbar-inner">
<div class="brand">
<img class="logo" src="/logo.png" alt="Wolf Host" onclick="location.href='/'">
<div>
<div class="title">Wolf Host</div>
<div style="font-size:11px;color:var(--muted);font-weight:700">لوحة الاستضافة — التوثيق</div>
</div>
</div>
<a class="btn" href="/">← العودة للوحة</a>
</div>
</div>
<div class="wrap">
<h1>📖 التوثيق كـ Prompt</h1>
<p>انسخ هذا النص واستخدمه كبرومبت في أي نموذج لتفهم المنصة بالكامل. رابط المنصة: <code>https://3mh-host.pages.dev/</code></p>
<button class="btn btn-primary" onclick="navigator.clipboard.writeText(document.getElementById('prompt').innerText).then(()=>{var t=document.getElementById('toast');t.classList.add('show');setTimeout(()=>t.classList.remove('show'),1800)})">📋 نسخ التوثيق</button>
<pre id="prompt">You are looking at Wolf Host, a multi-user web hosting panel.
Platform URL: https://3mh-host.pages.dev/
Dashboard pages (login required): / = your servers, /admin = admin panel, /docs = this documentation, /login = sign in.
Server types: python, webapp, api, php. webapp/api/php each get a subdomain or the /web/&lt;sub&gt;/ path. php runs a full PHP runtime (built-in PHP server, startup file = router); the others use the Python runtime.
Telegram bots: a server with a subdomain can enable TELEGRAM WEBHOOK from its Console sidebar — the panel finds the bot token in the server files and calls setWebhook automatically, re-registers it on every start/restart, and removes it on stop/delete. While webhook mode is ON the bot must not use getUpdates polling (Telegram refuses both at once).
Workflow: create a server (+ New Server), upload files (File Manager), set the startup file, press START, watch the live Console (CPU/RAM/IP). requirements.txt is auto-installed at start.
Public API (/api/v1): create an API key from the admin panel, then call with header X-Api-Key: &lt;PANEL_API_KEY&gt;
GET /api/v1/health
GET /api/v1/servers
POST /api/v1/servers {name, type?, subdomain?, startup_file?}
GET /api/v1/server/&lt;key&gt;
POST /api/v1/server/&lt;key&gt;/action {act: start|stop|restart}
POST /api/v1/server/&lt;key&gt;/set-startup {file}
POST /api/v1/server/&lt;key&gt;/files {path, content_base64} (or {content} = utf-8 text)
GET /api/v1/server/&lt;key&gt;/files?path=rel list
GET /api/v1/server/&lt;key&gt;/file?path=rel read one file
POST /api/v1/server/&lt;key&gt;/upload multipart form: files[] + relpaths[]
GET /api/v1/server/&lt;key&gt;/log
&lt;key&gt; = owner::folder (or plain folder + X-Panel-User header)
type = python | webapp | api | php, default: python
Security: every connection is authenticated through the panel gateway, registration is closed by default, security headers are strict, and requests are rate-limited. After a reboot the platform automatically restores every server and restarts the ones that were Running.</pre>
</div>
<div id="toast">✓ تم نسخ التوثيق</div>
</body>
</html>