https://claude-agent.tailf7372d.ts.net/punte — acelasi tipar ca /echo de pe moltbot: procesul ramane legat de 127.0.0.1, tailscaled il proxeaza si pune HTTPS. Montarea sub prefix a cerut doua schimbari: - toate URL-urile din pagini sunt acum relative, fiindca --set-path TAIE prefixul inainte de a proxa (serverul vede /api/status, browserul cere /punte/api/status). DASHBOARD_PREFIX ramane necesar doar pentru redirectul de login, si e acceptat si intact pe intrare, ca sa mearga si curl direct pe localhost. - adresa fara slash final (/punte) primeste 301 catre /punte/: altfel URL-urile relative s-ar rezolva la radacina hostului, unde proxy-ul nu trimite nimic incoace, si panoul ar arata gol fara nicio eroare vizibila. ops/install.sh configureaza serve-ul daca sudo permite; altfel spune comanda. Sase teste noi pentru montarea sub prefix (31 in total pe dashboard). Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B29CApsP1JkSdjYaGaHpE7
44 lines
1.4 KiB
HTML
44 lines
1.4 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="ro" data-theme="dark">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<title>Autentificare — Punte Discord</title>
|
|
<link rel="stylesheet" href="static/tokens.css">
|
|
<link rel="stylesheet" href="static/app.css">
|
|
</head>
|
|
<body>
|
|
<div class="login">
|
|
<form id="f" autocomplete="off">
|
|
<h1>Punte Discord → Claude Code</h1>
|
|
<p>Token din <span class="mono">~/.claude-discord/env</span> (<span class="mono">DASHBOARD_TOKEN</span>).</p>
|
|
<input type="password" id="token" placeholder="token" autofocus required>
|
|
<div class="error-msg" id="err"></div>
|
|
<button class="primary" type="submit">Intră</button>
|
|
</form>
|
|
</div>
|
|
<script>
|
|
(function () {
|
|
var saved = localStorage.getItem('theme');
|
|
if (saved) document.documentElement.setAttribute('data-theme', saved);
|
|
})();
|
|
document.getElementById('f').addEventListener('submit', async function (e) {
|
|
e.preventDefault();
|
|
var err = document.getElementById('err');
|
|
err.textContent = '';
|
|
try {
|
|
var r = await fetch('api/auth/login', {
|
|
method: 'POST',
|
|
headers: { 'Content-Type': 'application/json' },
|
|
body: JSON.stringify({ token: document.getElementById('token').value })
|
|
});
|
|
if (r.ok) { location.href = './'; return; }
|
|
err.textContent = 'Token invalid.';
|
|
} catch (ex) {
|
|
err.textContent = 'Serverul nu răspunde.';
|
|
}
|
|
});
|
|
</script>
|
|
</body>
|
|
</html>
|