From 151663121fb13e61e9d45e957482b4d4289f60d4 Mon Sep 17 00:00:00 2001 From: jinndi Date: Tue, 14 Oct 2025 12:31:16 +0300 Subject: [PATCH] fix: #934 (#954) * Docker: Use relative paths instead of absolute ones to ensure proper namespace handling when working behind a reverse proxy. * Fix: Progress Swap Memory percent * Fix #934 --------- Co-authored-by: DaanSelen <80752476+DaanSelen@users.noreply.github.com> --- docker/Dockerfile | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index 5c7b185b..b71137ec 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -133,11 +133,13 @@ DNS = ${global_dns}" > /configs/wg0.conf.template \ # Replacement of paths with relative ones for namespace handling when using a reverse proxy RUN set -ex && \ find ${WGDASH}/src/static/dist -type f \( -name "*.html" -o -name "*.js" \) \ - -exec sed -i 's|/static/dist|./static/dist|g' {} + && \ + -exec sed -i 's|/static/dist|./static/dist|g' {} \; && \ find ${WGDASH}/src/static/dist -type f -name "*.css" \ - -exec sed -i 's|/static/dist/WGDashboardClient/assets/|./|g' {} + && \ - find ${WGDASH}/src/static/dist -type f -name "*.css" \ - -exec sed -i 's|/static/dist/WGDashboardAdmin/assets/|./|g' {} + + -exec sed -i \ + -e 's|/static/dist/WGDashboardAdmin/assets/|./|g' \ + -e 's|/static/dist/WGDashboardAdmin/img/|../img/|g' \ + -e 's|/static/dist/WGDashboardClient/assets/|./|g' \ + -e 's|/static/dist/WGDashboardClient/img/|../img/|g' {} \; # Set a healthcheck to determine the container its health HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \