small fixes
This commit is contained in:
@@ -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"
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user