feat: add base_path support for mounting under a URL prefix
Wraps the router in axum's `nest` when BOOK_BASE_PATH is set, prepends
the prefix to form actions and asset URLs, and exposes a {{base}}
template placeholder. basePath option added to the NixOS module.
This commit is contained in:
parent
b784f4dd9c
commit
6ca40e2321
9 changed files with 251 additions and 14 deletions
|
|
@ -15,6 +15,8 @@
|
|||
entries - Approved guestbook entries, newest first.
|
||||
style - Custom CSS from BOOK_STYLE or BOOK_STYLE_FILE, wrapped in
|
||||
a <style> tag. Uses built-in default.css when neither is set.
|
||||
base - URL prefix the guestbook is mounted at (BOOK_BASE_PATH).
|
||||
Empty when serving at the domain root.
|
||||
|
||||
See default.css for available CSS classes on rendered elements.
|
||||
-->
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue