Merge pull request 'fixed caddyfile' (#552) from SEND059 into main
All checks were successful
ci/woodpecker/push/billing_documents Pipeline was successful
ci/woodpecker/push/bff Pipeline was successful
ci/woodpecker/push/billing_fees Pipeline was successful
ci/woodpecker/push/discovery Pipeline was successful
ci/woodpecker/push/fx_ingestor Pipeline was successful
ci/woodpecker/push/frontend Pipeline was successful
ci/woodpecker/push/fx_oracle Pipeline was successful
ci/woodpecker/push/gateway_mntx Pipeline was successful
ci/woodpecker/push/gateway_chain Pipeline was successful
ci/woodpecker/push/gateway_tgsettle Pipeline was successful
ci/woodpecker/push/gateway_tron Pipeline was successful
ci/woodpecker/push/ledger Pipeline was successful
ci/woodpecker/push/notification Pipeline was successful
ci/woodpecker/push/payments_methods Pipeline was successful
ci/woodpecker/push/payments_orchestrator Pipeline was successful
ci/woodpecker/push/payments_quotation Pipeline was successful

Reviewed-on: #552
This commit was merged in pull request #552.
This commit is contained in:
2026-02-25 20:59:00 +00:00
2 changed files with 26 additions and 1 deletions

View File

@@ -45,7 +45,7 @@ WORKDIR /usr/share/pweb
COPY frontend/pweb/entrypoint.sh /entrypoint.sh COPY frontend/pweb/entrypoint.sh /entrypoint.sh
COPY frontend/pweb/caddy/Caddyfile /etc/caddy/Caddyfile COPY frontend/pweb/caddy/Caddyfile /etc/caddy/Caddyfile
COPY --from=web_builder /home/flutteruser/app/pweb/build/web /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
RUN chmod +x /entrypoint.sh RUN chmod +x /entrypoint.sh

View File

@@ -12,6 +12,7 @@
######################################## ########################################
(sendico_site) { (sendico_site) {
vars static_root /usr/share/pweb vars static_root /usr/share/pweb
vars docs_root /usr/share/docs
encode zstd gzip encode zstd gzip
@@ -72,6 +73,30 @@
respond "forbidden" 403 respond "forbidden" 403
} }
########################################
# API docs (ReDoc)
########################################
handle /docs {
redir * /docs/ 308
}
handle /docs/ {
root * {vars.docs_root}
rewrite * /doc.html
file_server
header Cache-Control "no-cache, no-store, must-revalidate"
header Pragma "no-cache"
header Expires "0"
}
handle_path /docs/* {
root * {vars.docs_root}
file_server
header Cache-Control "no-cache, no-store, must-revalidate"
header Pragma "no-cache"
header Expires "0"
}
######################################## ########################################
# Static assets with tailored caching # Static assets with tailored caching
######################################## ########################################