* 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>
This commit is contained in:
jinndi
2025-10-14 12:31:16 +03:00
committed by GitHub
parent 1faabd37af
commit 151663121f

View File

@@ -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 # Replacement of paths with relative ones for namespace handling when using a reverse proxy
RUN set -ex && \ RUN set -ex && \
find ${WGDASH}/src/static/dist -type f \( -name "*.html" -o -name "*.js" \) \ 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" \ find ${WGDASH}/src/static/dist -type f -name "*.css" \
-exec sed -i 's|/static/dist/WGDashboardClient/assets/|./|g' {} + && \ -exec sed -i \
find ${WGDASH}/src/static/dist -type f -name "*.css" \ -e 's|/static/dist/WGDashboardAdmin/assets/|./|g' \
-exec sed -i '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 # Set a healthcheck to determine the container its health
HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \ HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \