Files
serverAppConfigs/shared/homepage/admin.html
T
Frank e7eaba4457 Homepage (TDD slice 7): fix the /admin/ path + status.json perms
Two real bugs found on the first production deploy:
- /admin/ 404'd: file_server looked for /srv/homepage/admin/ (a dir), but the
  page is admin.html. Add '@admin rewrite * /admin.html' so the /admin/ path
  serves admin.html.
- The pages used relative refs (style.css, app.js, services.json, status.json),
  which from /admin/ resolved to /admin/... (404). Add <base href="/"> so all
  refs resolve to the site root on both pages.
- status.json was written 0600 (root); the checker now chmods it 0644 so Caddy
  can serve it regardless of its user.
2026-08-23 16:49:33 -07:00

25 lines
662 B
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>frank — admin</title>
<base href="/">
<link rel="stylesheet" href="style.css">
</head>
<body>
<header class="top">
<span class="title">frank@home:~$ admin</span>
<a id="bare-toggle" class="toggle" href="?bare=1">bare</a>
</header>
<div id="summary" class="summary"></div>
<main id="grid" class="grid"></main>
<footer class="foot">
<span>last master deployment: <span id="deployed-at"></span></span>
<a href="/">home</a>
</footer>
<script src="deployed.js"></script>
<script src="app.js"></script>
</body>
</html>