Skip to content

Default index.html for server root #276

Open

Description

@melvincarvalho

The server root (/) needs a proper default page. Currently it's a placeholder.

The page should adapt to server mode:

Multi-user server — intro text, signup/login buttons, branding
Single-user pod — personal homepage, link to profile/WebID
Dev/testing — server info, version, enabled features

Considerations:

  • Most valuable URL in the pod — needs careful thought
  • Part of first-time setup and onboarding
  • Should be low barrier (as discussed with ewingson)
  • Template should be customizable per server but have a good default
  • Could detect mode from config (--single-user, --idp, etc.)

Activity

  1. melvincarvalho commented on Apr 22, 2026

    @melvincarvalho
    ContributorAuthor

    Proposed design (small, non-breaking)

    Files shipped with JSS

    • src/ui/server-root.html — default landing page template
    • (re-used) existing ACL generator — writes the root ACL

    Behaviour on server start

    If DATA_ROOT/index.html does not exist, seed it:

    1. Write DATA_ROOT/index.html from the template, with server-specific values interpolated (version, mode, enabled features, create-account link if IDP is on)
    2. Write DATA_ROOT/.acl with public read only — no public write

    If DATA_ROOT/index.html already exists, do nothing. Operator's file wins.

    Ownership

    For v1, the server root is public-read only. No write access from the web. Operators edit the file directly on disk (like nginx/Apache landing pages). This avoids the "who owns the multi-user root?" question entirely. A later flag like --admin-webid can relax this if needed.

    Landing page variants

    Template detects mode at render time:

    • Multi-user + IDP — "Create a pod" + "Sign in" buttons (/.account/new, /idp/auth)
    • Single-user — simple "This is $NAME's pod" + link to profile
    • Dev/testing — version, enabled features, helpful links

    Why it helps

    • New JSS deployers get a landing page for free (solidweb.app had to build one from scratch)
    • Existing deployments with a custom index.html are unaffected (skip-if-exists)
    • No new config flags required in v1
    • No new runtime dependency — pure HTML template with string interpolation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions