production website

This commit is contained in:
Priec
2026-06-02 23:23:48 +02:00
parent 78407ae9e8
commit 0b9df4549e
5 changed files with 33 additions and 13 deletions

20
Caddyfile Normal file
View File

@@ -0,0 +1,20 @@
tui-pages.farmeris.sk {
encode gzip
# website at the root
handle {
root * /app/tui-pages-web
file_server
handle_errors {
rewrite * /404.html
file_server
}
}
# mdbook served under /book (book.toml has site-url = "/book/")
redir /book /book/
handle /book/* {
root * /app/tui-pages-docs
file_server
}
}