small fixes

This commit is contained in:
Arseni
2026-02-25 01:01:28 +03:00
parent fa54088b25
commit d70d9e84c9
3 changed files with 4 additions and 29 deletions

View File

@@ -8,6 +8,7 @@
:80 {
vars static_root /usr/share/pweb
vars docs_root /usr/share/docs
encode zstd gzip
@@ -45,14 +46,14 @@
}
handle /docs/ {
root * {vars.static_root}/docs
root * {vars.docs_root}
rewrite * /doc.html
file_server
header Cache-Control "no-cache"
}
handle_path /docs/* {
root * {vars.static_root}/docs
root * {vars.docs_root}
file_server
header Cache-Control "no-cache"
}

View File

@@ -48,7 +48,7 @@ FROM caddy:alpine AS runtime
WORKDIR /usr/share/pweb
COPY --from=web_builder /home/flutteruser/app/pweb/build/web /usr/share/pweb
COPY interface /usr/share/pweb/docs
COPY interface /usr/share/docs
# Copy Caddy config (will be mounted from host)
# COPY frontend/pweb/caddy/Caddyfile /etc/caddy/Caddyfile