added api docs
This commit is contained in:
@@ -37,6 +37,26 @@
|
||||
header Cache-Control "no-cache, no-store, must-revalidate"
|
||||
}
|
||||
|
||||
########################################
|
||||
# API docs (ReDoc)
|
||||
########################################
|
||||
handle /docs {
|
||||
redir * /docs/ 308
|
||||
}
|
||||
|
||||
handle /docs/ {
|
||||
root * {vars.static_root}/docs
|
||||
rewrite * /doc.html
|
||||
file_server
|
||||
header Cache-Control "no-cache"
|
||||
}
|
||||
|
||||
handle_path /docs/* {
|
||||
root * {vars.static_root}/docs
|
||||
file_server
|
||||
header Cache-Control "no-cache"
|
||||
}
|
||||
|
||||
########################################
|
||||
# Static assets
|
||||
########################################
|
||||
|
||||
@@ -48,6 +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 Caddy config (will be mounted from host)
|
||||
# COPY frontend/pweb/caddy/Caddyfile /etc/caddy/Caddyfile
|
||||
|
||||
Reference in New Issue
Block a user