Files
nixos-core/docs/usability.html
T

98 lines
3.9 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Usability & Operations | Hardened Hub</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<main>
<header>
<h1>🖱️ Usability & Operational Notes</h1>
<p>A guide for interacting with the Hardened Hub once deployed.</p>
</header>
<nav>
<h4>Topics</h4>
<ul>
<li><a href="#auth">Authentication</a></li>
<li><a href="#nav">Navigation</a></li>
<li><a href="#mgmt">Management</a></li>
<li><a href="#add">Adding Apps</a></li>
<li><a href="#ollama">Ollama API</a></li>
</ul>
</nav>
<section id="auth">
<h2>🔑 Authentication (SSO)</h2>
<p>Most services are protected by <strong>Authelia</strong>.</p>
<ol>
<li>Access a protected service (e.g., <code>gitea.*</code>).</li>
<li>You will be redirected to the Auth Portal (<code>auth.*</code>).</li>
<li>Log in with your credentials.</li>
<li>Once authenticated, you have global access to all SSO-enabled services.</li>
</ol>
</section>
<section id="nav">
<h2>🧭 Navigating the Hub</h2>
<p>The <strong>Homepage</strong> dashboard is your central entry point:</p>
<ul>
<li><strong>Access URL:</strong> <a href="https://arch-services.mywire.org">https://arch-services.mywire.org</a></li>
<li><strong>Widgets:</strong> View real-time Docker container statuses, system resources, and service links.</li>
</ul>
<div class="layer-box">
<h4>Local Access (Fast Lane)</h4>
<p>To avoid traversing the public internet when you are on the same network as the server, we use a <strong>Public Domain + Local IP</strong> strategy (see <a href="adr-001-remove-localhost-routers.md">ADR 001</a>).</p>
<p>Add the following to your machine's <code>/etc/hosts</code> file:</p>
<pre><code>127.0.0.1 traefik.arch-services.mywire.org auth.arch-services.mywire.org jellyfin.arch-services.mywire.org gitea.arch-services.mywire.org excalidraw.arch-services.mywire.org homepage.arch-services.mywire.org mermaid.arch-services.mywire.org ollama.arch-services.mywire.org learning.arch-services.mywire.org logs.arch-services.mywire.org portainer.arch-services.mywire.org arch-services.mywire.org</code></pre>
<p><em>Note: This ensures valid SSL and working SSO cookies for local sessions.</em></p>
</div>
</section>
<section id="mgmt">
<h2>🛠️ Service Management</h2>
<h3>Deployment Scripts</h3>
<pre><code># Start everything
./up.sh
# Start ONLY the Control Plane
./up.sh --infra-only
# Stop all services
./down.sh</code></pre>
</section>
<section id="add">
<h2>➕ Adding a New Application</h2>
<ol>
<li>Create <code>apps/your-app/docker-compose.yml</code>.</li>
<li>Connect to <code>proxy-net</code>.</li>
<li>Add Traefik labels for routing and Authelia protection.</li>
<li>Update <code>apps/homepage/config/services.yaml</code>.</li>
</ol>
</section>
<section id="ollama">
<h2>🤖 Ollama API & Automation</h2>
<p>Uses a hybrid security model for browser and CLI access.</p>
<div class="layer-box">
<h4>API Key / Trusted Payload</h4>
<p><strong>Header:</strong> <code>X-Ollama-Key: sk-ollama-hardened-hub-2026</code></p>
<pre><code>curl https://ollama.arch-services.mywire.org/api/generate \
-H "X-Ollama-Key: sk-ollama-hardened-hub-2026" \
-d '{"model": "llama3", "prompt": "hi"}'</code></pre>
</div>
</section>
<footer>
<p>(c) 2026 | <a href="https://roadtotech.me">Kiskaadee</a></p>
</footer>
</main>
</body>
</html>