Skip to content

Feat/Redesign default pages#3

Merged
jkyberneees merged 7 commits intomainfrom
feat/redesign-default-pages
Mar 7, 2026
Merged

Feat/Redesign default pages#3
jkyberneees merged 7 commits intomainfrom
feat/redesign-default-pages

Conversation

@jkyberneees
Copy link
Contributor

No description provided.

…ks them

Add internal/defaults package that embeds public/index.html, public/404.html,
and public/style.css into the binary via //go:embed. Update FileHandler to
fall back to these embedded assets when the configured files.root does not
contain the requested file, ensuring sensible default pages are always
available regardless of deployment layout.
Cover five scenarios: embedded index.html served when root is empty,
embedded style.css with correct content-type, embedded 404.html served
by serveNotFound when no custom page is configured, sub-path URLs
correctly bypassing the embed fallback, and custom not_found config
taking priority over the embedded 404.
@jkyberneees jkyberneees merged commit 88d8ba8 into main Mar 7, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant