From e7d6a54907d7ff59ba0969d151535edc57b79d17 Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Wed, 3 Feb 2021 11:30:10 +0100 Subject: [PATCH] :bug: Fix static file handling on docker images. --- docker/images/files/nginx.conf | 4 ++-- manage.sh | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/docker/images/files/nginx.conf b/docker/images/files/nginx.conf index 9432440ed..1f034c2a3 100644 --- a/docker/images/files/nginx.conf +++ b/docker/images/files/nginx.conf @@ -107,7 +107,7 @@ http { } location /assets { - proxy_pass http://127.0.0.1:6060/assets; + proxy_pass http://penpot-backend:6060/assets; recursive_error_pages on; proxy_intercept_errors on; error_page 301 302 307 = @handle_redirect; @@ -115,7 +115,7 @@ http { location /internal/assets { internal; - alias /var/www/assets; + alias /opt/data/assets; add_header x-internal-redirect "$upstream_http_x_accel_redirect"; } } diff --git a/manage.sh b/manage.sh index ef7b9d2e6..9b8067949 100755 --- a/manage.sh +++ b/manage.sh @@ -137,8 +137,7 @@ function build-image { set -x pushd ./docker/images; docker buildx build --platform linux/amd64 -t $docker_image:$tag -f Dockerfile.$image .; - docker tag $docker_image:$tag $docker_image:$version; - + # docker tag $docker_image:$tag $docker_image:$version; # docker buildx build --platform linux/arm64 -t $docker_image:$version-arm64 .; popd; }