aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'README.md')
-rw-r--r--README.md12
1 files changed, 7 insertions, 5 deletions
diff --git a/README.md b/README.md
index 9c32133..3e0542e 100644
--- a/README.md
+++ b/README.md
@@ -23,8 +23,9 @@ make seed # (another terminal) demo data: superadmin admin/admin, blogger al
Then open:
-- Root blog (the superadmin's): http://blogspace.localhost:8080 — "Log in" link in its footer
-- Dashboard: http://blogspace.localhost:8080/login (log in as `admin` or `alice`)
+- Root blog (the superadmin's): http://blogspace.localhost:8080
+- Dashboard: http://blogspace.localhost:8080/webadmin (log in as `admin` or `alice`).
+ `/webadmin` on any blog (e.g. http://alice.blogspace.localhost:8080/webadmin) redirects here too.
- Alice's blog: http://alice.blogspace.localhost:8080
Chrome and Firefox resolve any `*.localhost` name to your machine, so no DNS or
@@ -103,14 +104,15 @@ internal/web/ host router, handlers, templates, static CSS, theme
### How requests are routed
-`Host == BASE_DOMAIN` (or `www.`) → management site (`/login`, `/dashboard`, `/b/<sub>/…`, `/admin/`)
+`Host == BASE_DOMAIN` (or `www.`) → management site (`/webadmin`, `/dashboard`, `/b/<sub>/…`, `/admin/`)
**plus** the root blog's public pages on every other path.
-`Host == <sub>.BASE_DOMAIN` → that blog's public pages (`/`, `/<page>`, `/<page>/<post>`, `/feed.xml`, `/media/<id>`).
+`Host == <sub>.BASE_DOMAIN` → that blog's public pages (`/`, `/<page>`, `/<page>/<post>`, `/feed.xml`, `/media/<id>`),
+plus `/webadmin`, which redirects to the login page on the base domain.
Anything else → 404.
The root blog is a normal `blogs` row with subdomain `www`; it is created on first
start for the first superadmin and managed at `/b/www/`. Page slugs that would be
-shadowed by management routes (`login`, `admin`, `b`, …) are rejected for every blog.
+shadowed by management routes (`webadmin`, `admin`, `b`, …) are rejected for every blog.
### Auth notes