mirror of
https://github.com/ZTatman/myst.git
synced 2026-11-21 04:17:59 +00:00
Replace manual .env configuration with a browser-based setup wizard. New users deploy with `docker compose up` and configure Forgejo OAuth credentials through /setup on first visit. Existing users can reconfigure via the same page (auth-gated post-setup). Key changes: Rename (Myst → Firebreak): - Config fields, env vars, session cookie, templates, docker-compose, README all renamed from Myst to Firebreak Setup wizard (/setup): - New AppSettings single-row DB table stores Forgejo config - Auto-generates Fernet encryption key on first setup - SetupRequiredMiddleware redirects all routes to /setup pre-config - Reconfigure mode pre-fills existing values, requires auth - Landing page links to /setup for recovery if OAuth breaks Settings page (/settings): - PAT registration moved out of dashboard into dedicated page - Token card with registration date, delete, and update actions - Dashboard shows CTA linking to settings when no PAT registered Auth updates: - Routes use AppSettings from DB instead of env-based Settings - OAuth callback redirects new users to /settings for PAT setup - Forgejo API errors no longer leak upstream response bodies - Decrypt failures return actionable 503 instead of unhandled 500 Code quality: - Extracted templating.py to eliminate circular import hacks - AppSettings.get_fernet() caches Fernet cipher instance - User.has_pat property replaces scattered None checks - lookup_session promoted to public API - Dead code removed, return type annotations added - PAT input fields use type="password" - CSRF gap documented in agents.md for future addressing Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
55 lines
2.8 KiB
HTML
55 lines
2.8 KiB
HTML
{% extends "base.html" %}
|
|
{% block title %}Firebreak — protect your code from scraping{% endblock %}
|
|
{% block body_class %}landing-page{% endblock %}
|
|
{% block main_class %}{% endblock %}
|
|
{% block content %}
|
|
<section class="relative flex min-h-dvh w-full items-center justify-center overflow-hidden bg-[#17191c] px-6 py-20 text-center text-[#f7f2e8]">
|
|
<video class="absolute inset-0 h-full w-full object-cover"
|
|
autoplay
|
|
muted
|
|
loop
|
|
playsinline
|
|
preload="metadata"
|
|
poster="/static/img/firebreak-hero-poster.jpg"
|
|
aria-hidden="true">
|
|
<source src="/static/video/firebreak-hero.mp4" type="video/mp4" />
|
|
</video>
|
|
<div class="absolute inset-0 bg-[#17191c]/65"></div>
|
|
<div class="absolute inset-0 bg-[radial-gradient(circle_at_center,transparent_0,transparent_30%,rgb(23_25_28_/0.44)_62%,rgb(23_25_28_/0.92)_100%)]">
|
|
</div>
|
|
<div class="relative z-10 flex w-full max-w-4xl flex-col items-center">
|
|
<img src="/static/img/firebreak-brand.svg"
|
|
alt="Firebreak"
|
|
width="240"
|
|
height="268"
|
|
class="h-auto w-full max-w-36 drop-shadow-[0_14px_34px_rgb(0_0_0_/0.55)] sm:max-w-48 lg:max-w-60" />
|
|
<p class="mt-8 max-w-2xl text-balance text-base font-medium leading-8 tracking-normal text-[#f7f2e8]/90 drop-shadow-[0_4px_18px_rgb(0_0_0_/0.72)] sm:text-lg sm:leading-9">
|
|
<span class="block">Fight Fire with Fire.</span>
|
|
<span class="mt-2 block">Your code. Your rules. Let them look, but don't let them scrape.</span>
|
|
</p>
|
|
<p class="mt-7 max-w-xl rounded-lg border border-[#f7f2e8]/14 bg-[#17191c]/42 px-5 py-4 text-sm leading-6 text-[#f7f2e8]/76 shadow-[0_18px_50px_rgb(0_0_0_/0.24)] backdrop-blur-sm sm:text-[0.9375rem]">
|
|
Firebreak creates temporary, read-only links to private Forgejo repository snapshots.
|
|
Sign in to connect your account, register an access token, and control what can be viewed.
|
|
</p>
|
|
<div class="mt-7 flex flex-wrap items-center justify-center gap-3">
|
|
{% if user %}
|
|
<a href="/dashboard" class="btn btn-primary">Open dashboard</a>
|
|
{% else %}
|
|
<a href="/auth/login/forgejo" class="btn btn-primary">
|
|
<img src="/static/img/forgejo-logo.svg"
|
|
alt=""
|
|
width="16"
|
|
height="16"
|
|
class="size-4 shrink-0 brightness-0 invert"
|
|
aria-hidden="true" />
|
|
<span>Sign in with Forgejo</span>
|
|
</a>
|
|
{% endif %}
|
|
</div>
|
|
<a href="/setup"
|
|
class="mt-5 text-xs text-[#f7f2e8]/30 hover:text-[#f7f2e8]/60 hover:underline decoration-1 underline-offset-4 transition">
|
|
Reconfigure Forgejo connection
|
|
</a>
|
|
</div>
|
|
</section>
|
|
{% endblock %}
|